Closed
Bug 784055
Opened 12 years ago
Closed 12 years ago
Remove code dealing with offsetWidth in Readability.js
Categories
(Firefox for Android Graveyard :: Reader View, defect)
Tracking
(firefox16 verified, firefox17 verified, firefox18 verified)
VERIFIED
FIXED
Firefox 17
People
(Reporter: lucasr, Assigned: lucasr)
Details
Attachments
(1 file)
3.62 KB,
patch
|
bnicholson
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
We don't run readability.js on top of a live DOM tree anymore. This means all the runtime dimension bits are undefined while running the readability check in the worker thread.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #653405 -
Flags: review?(bnicholson)
Comment 2•12 years ago
|
||
Comment on attachment 653405 [details] [diff] [review] Remove all code dealing with offsetWidth in Readability.js I assume that since we don't support _fixImageFloats(), this could cause floated images to look bad in some cases. If we run into this, maybe we could fake support for offsetWidth if we pass in the viewport width to the worker/DOMParser, then attach the width to the document.
Attachment #653405 -
Flags: review?(bnicholson) → review+
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Brian Nicholson (:bnicholson) from comment #2) > Comment on attachment 653405 [details] [diff] [review] > Remove all code dealing with offsetWidth in Readability.js > > I assume that since we don't support _fixImageFloats(), this could cause > floated images to look bad in some cases. If we run into this, maybe we > could fake support for offsetWidth if we pass in the viewport width to the > worker/DOMParser, then attach the width to the document. I've added all the intelligence to handle block images and floats to the reader itself given our use of web workers to parse pages.
Assignee | ||
Comment 4•12 years ago
|
||
Pushed: https://hg.mozilla.org/integration/mozilla-inbound/rev/359d21e0b88a
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/359d21e0b88a
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Assignee | ||
Comment 6•12 years ago
|
||
Comment on attachment 653405 [details] [diff] [review] Remove all code dealing with offsetWidth in Readability.js [Approval Request Comment] User impact if declined: Remove overhead from readability check. Testing completed (on m-c, etc.): Landed on m-c, no regressions. Risk to taking this patch (and alternatives if risky): Low, this patch is removing no-op code from readability.js. String or UUID changes made by this patch: None.
Attachment #653405 -
Flags: approval-mozilla-aurora?
Updated•12 years ago
|
Attachment #653405 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 7•12 years ago
|
||
Pushed to mozilla-aurora: https://hg.mozilla.org/releases/mozilla-aurora/rev/d0e7a18fd101
Updated•12 years ago
|
status-firefox16:
--- → fixed
Comment 8•12 years ago
|
||
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
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•