Closed
Bug 1107097
Opened 10 years ago
Closed 8 years ago
Don't try to parse error pages
Categories
(Toolkit :: Reader Mode, defect, P5)
Toolkit
Reader Mode
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: mfinkle, Unassigned, Mentored)
References
Details
(Whiteboard: [lang=js])
We shouldn't attempt to reader-ize Error Pages.
Updated•10 years ago
|
Comment 1•10 years ago
|
||
Did you file this because you saw this happen, or because you think it might happen? Looking at our _shouldCheckUri logic, it seems like we don't parse "about:" pages, and about:neterror would be one of those (I must have missed this before when I thought we were parsing about:reader pages): http://mxr.mozilla.org/mozilla-central/soure/mobile/android/chrome/content/Reader.js#257
Flags: needinfo?(mark.finkle)
Reporter | ||
Comment 2•10 years ago
|
||
I think snorp saw it. I did not. looking at the code: http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/Reader.js#189 Does browser.currentURI return the intended URI or the about:neterror URL? I don't remember offhand. I thought browser.contentDocument.documentURI got the "about:neterror" URL.
Flags: needinfo?(mark.finkle)
Updated•10 years ago
|
Product: Firefox for Android → Toolkit
Comment 3•9 years ago
|
||
Removing the dependency on bug 1102450, since this isn't about the Readability library itself.
Summary: Don't send Error Pages to Readilility → Don't try to parse error pages
Updated•9 years ago
|
Mentor: margaret.leibovic
Whiteboard: [lang=js]
Updated•9 years ago
|
Whiteboard: [lang=js] → [lang=js][Reader:P4]
Updated•9 years ago
|
Priority: -- → P4
Whiteboard: [lang=js][Reader:P4] → [lang=js]
Comment 4•9 years ago
|
||
See also bug 1134810 - may be able to fix both bugs with the same change.
Comment 5•9 years ago
|
||
At the moment I'm not getting the reader button offered on any feeds I've tried, but that might just be luck. Seems like it would still be fair to explicitly suppress it on things like this where we really to know that reader view isn't the right thing to offer. But also bumping to P5, because a RSS-only bug is rather minor.
OS: Android → All
Priority: P4 → P5
Hardware: ARM → All
Comment 6•8 years ago
|
||
I don't think we currently would propose to readerize any error pages because of document.documentURI indeed being about:neterror?whatever. As for feeds (which aren't quite the same...), I haven't been able to find any that we give a reader mode option for - neither on main news sites nor on blogs. In this case document.documentURI isn't about:feeds (though that is indeed the document that is being loaded, sort of). I think it's unlikely that's possible, though, because AFAICT we don't let HTML markup be rendered, and we just generate some <div>s instead, which won't trigger the isProbablyReaderable code (it only checks <p> and <pre> nodes). So going to resolve as incomplete, and if we end up with a testcase (perhaps after we change behaviour for isProbablyReaderable or whatever) where this happens, we can create a new bug with a testcase and/or concrete STR.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•