-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] Pasting extremely-long data URI in the address bar will hang Fenix #1824
Comments
This seems to be a duplicate of #1681 |
From looking at this, #1681 is a REGEX / a "schema" that should always be "denied" ( also from A-C) which we already have rules set up for "about" ( which would work if you type in about:networking#networkID but not about:networking). As for the Nasa Website bug ( nasa Website #39953) the issue stems from Android Component redirecting a Data URI ( as pointed out in that issue, the href is assigned a base64 string) which 1) creates an intent and then 2) tries to start an activity with an image in the bundle which creates a TransactionTooLargeException. For the last raised issue, please refer to #5217 |
The root cause of this issue is from the fact that we don't truncate the URL which we use to do in Fennec ( from browser.js). I believe this is more something the Toolbar component should handle instead of the Fenix UI. For more information regarding this bug ( trace file, possible solution, and reproduction of my own test case) please refer to #5249 |
@MarcLeclair Can this issue be closed or is there additional work needed to close it? |
OK, tested and verified this is fixed now on master after patches linked above landed. |
Hey @MarcLeclair, I was solving issue #28094 where I am supposed to write tests for a function that shortens URI to I need a long URI to write my test, can you please guide me on how to obtain it? |
Hey @poseidon2060 , I would suggest to just encode a large picture to |
Thankyou that worked 😄 |
Steps to reproduce
Expected behavior
In Fennec and Focus+GV, the JSON data is loaded in the browser or you are given the open to open in a JSON Viewer app.
Actual behavior
Fenix hangs while trying to load the JSON data.
If I kill the Fenix process and launch it again, Fenix will still hang. Perhaps the Fenix home screen is trying to show the JSON data in the list of recent sessions? I had to uninstall and reinstall Fenix to make it stop hanging.
Device information
I originally filed this bug against GV in Bugzilla: "Loading about:telemetry's Raw JSON data will hang Fenix, even after restarting the app". But bholley's conclusion was that:
https://bugzilla.mozilla.org/show_bug.cgi?id=1542410
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: