Closed Bug 784050 Opened 12 years ago Closed 12 years ago

Remove code to remove stylesheets and style tags from document in readability.js

Categories

(Firefox for Android Graveyard :: Reader View, defect)

All
Android
defect
Not set
normal

Tracking

(firefox16 verified, firefox17 verified, firefox18 verified)

VERIFIED FIXED
Firefox 17
Tracking Status
firefox16 --- verified
firefox17 --- verified
firefox18 --- verified

People

(Reporter: lucasr, Assigned: lucasr)

Details

Attachments

(1 file)

We don't use the original document in reader. No need to care about stylesheets in the original document.
Attachment #653399 - Flags: review?(bnicholson) → review+
I should have only removed the part that removes stylesheets from the document. Some pages add style tags inside the body and is causing problems to the candidate score calculation. I'll put this code back.
https://hg.mozilla.org/mozilla-central/rev/650fedd0f930
https://hg.mozilla.org/mozilla-central/rev/ae40b8512ddf
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Comment on attachment 653399 [details] [diff] [review]
No need to remove stylesheets and style tags in Readability.js

[Approval Request Comment]
User impact if declined: Unnecessary overhead when checking readability of pages.
Testing completed (on m-c, etc.): Landed in m-c, no regressions.
Risk to taking this patch (and alternatives if risky): Very low, just removes unnecessary code.
String or UUID changes made by this patch: None.
Attachment #653399 - Flags: approval-mozilla-aurora?
Attachment #653399 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
The code was cleaned up on the latest Nightly, Aurora and Beta builds. Closing bug as verified fixed.

--
Device: Galaxy Note
OS: Android 4.0.4
Status: RESOLVED → VERIFIED
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: