Closed Bug 1292903 Opened 8 years ago Closed 8 years ago

Categories

(Firefox for Android Graveyard :: General, defect, P1)

All
Android
defect

Tracking

(firefox48 affected, firefox49 ?, fennec51+, firefox50 affected, firefox51 verified)

RESOLVED FIXED
Firefox 51
Tracking Status
firefox48 --- affected
firefox49 --- ?
fennec 51+ ---
firefox50 --- affected
firefox51 --- verified

People

(Reporter: jrmuizel, Assigned: ahunt)

Details

Attachments

(2 files)

tracking-fennec: --- → ?
OS: Unspecified → Android
Priority: -- → P1
Hardware: Unspecified → All
@ahunt: Can you take a look? I assume that stripAboutReaderURL() doesn't work correctly if some parts of an about:reader URL are missing.
Flags: needinfo?(ahunt)
Hey.  Just for some context, this is one of those irritating sites that covers the article text with a CSS blank box if one has JS enabled (which I've been increasingly doing on mobile due to 3rd party advertiser tracking, hostile 3rd party code, and to save bandwidth/battery).

So I thought I'd try typing in the about:reader url manually since there's no way to force it on for a website.

I need to look into addons to see if there's an addon to force reader mode, or possibly just force off CSS for a website.   Given this article is perfectly readable in w3m, I'm guessing forcing CSS off would do the trick.
er... if one has JS *disabled* ☺
Wow, we definitely shouldn't crash in this case, I'll try to fix this.

JFYI the expected syntax is about:reader?url=URL.
Assignee: nobody → ahunt
Flags: needinfo?(ahunt)
Comment on attachment 8779418 [details]
Bug 1292903 - Use stripAboutReaderUrl in ToolbarDisplayLayout to avoid crashing on malformed about:reader URLs

https://reviewboard.mozilla.org/r/70418/#review67686

::: mobile/android/base/java/org/mozilla/gecko/reader/ReaderModeUtils.java:15
(Diff revision 1)
>  import android.net.Uri;
>  
>  public class ReaderModeUtils {
>      private static final String LOGTAG = "ReaderModeUtils";
>  
>      public static String getUrlFromAboutReader(String aboutReaderUrl) {

It looks like this is exactly what stripAboutReaderUrl() is doing. Maybe we should just call this one from ToolbarDisplayLayout?
Attachment #8779418 - Flags: review?(s.kaspari)
Comment on attachment 8779418 [details]
Bug 1292903 - Use stripAboutReaderUrl in ToolbarDisplayLayout to avoid crashing on malformed about:reader URLs

https://reviewboard.mozilla.org/r/70418/#review68070
Attachment #8779418 - Flags: review?(s.kaspari) → review+
Comment on attachment 8779793 [details]
Bug 1292903 - Add comment explaining getUrlFromAboutReader

https://reviewboard.mozilla.org/r/70724/#review68072
Attachment #8779793 - Flags: review?(s.kaspari) → review+
tracking-fennec: ? → 51+
Pushed by ahunt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ad9a908a7489
Use stripAboutReaderUrl in ToolbarDisplayLayout to avoid crashing on malformed about:reader URLs r=sebastian
https://hg.mozilla.org/integration/autoland/rev/808e3ed40d6c
Add comment explaining getUrlFromAboutReader r=sebastian
Verified as fixed using:
Device: One A2001 (Android 5.1.1)
Build: Firefox for Android 51.0a1 (2016-08-18)
I can reproduce the crash on latest Aurora and Firefox for Android 48.0.
On Firefox for Android 49 Beta 4, after adding about:reader to the link, Firefox becomes unresponsive, but does not crash:http://i.imgur.com/gEDoHCK.png 
As you can see, the three dot menu is hidden. Tapping the URL Bar does nothing.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: