Closed
Bug 1364056
Opened 8 years ago
Closed 8 years ago
Reader view is broken some of the time due to attempting to use dead 'document' references to get a URL
Categories
(Toolkit :: Reader Mode, defect)
Toolkit
Reader Mode
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox53 | --- | unaffected |
firefox54 | --- | fixed |
firefox55 | + | fixed |
People
(Reporter: Usul, Assigned: Gijs)
References
Details
(Keywords: regression)
Attachments
(1 file)
For the last 2 days I've been unable to use the reader view mode. Each time I try (different websites) I get unable to fetch the article from the page (something similar as I'm using the french locale)
Reporter | ||
Updated•8 years ago
|
Summary: Reader view iis borked → Reader view is borked
Comment 2•8 years ago
|
||
Probably locale dependant. Works for me. Android in English with latest Nightly language set to Bulgaria.
Comment 3•8 years ago
|
||
[Tracking Requested - why for this release]: Recent regression in Reader view
I see the issue after I updated to the latest nightly on en-US build on my Nexus 6.
Any article from the nytimes.com and slate.com generated a message "Failed to load article from page."
Using 20170511133403
tracking-firefox55:
--- → ?
Keywords: regressionwindow-wanted
Comment 4•8 years ago
|
||
I was able to reproduce this with Asus ZenPad 8(Android 6.0.1) on articles from nytimes.com.
Regression window:
Last good build: 05-09
First bad build: 05-10
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b21b974d60d3075ae24f6fb1bae75d0f122f28fc&tochange=ce2218406119c36a551e3faea4e192186ee46cc5
Keywords: regressionwindow-wanted
Comment 5•8 years ago
|
||
Thanks Sorina for the regression window. There are a lot of changes in there - ni on Wesley to find someone who can take a closer look at the window.
Flags: needinfo?(whuang)
Comment 6•8 years ago
|
||
Although this is reported for Firefox for Android, this is also impacting Firefox for Desktop.
Here is an example of an article triggering the bug
https://blog.nightly.mozilla.org/2017/04/25/guest-post-india-uses-firefox-nightly-kick-off-on-may-1-2017/
Launching Nightly in the console, we have a en exception thrown in the console when you click on the reader mode icon:
A coding exception was thrown and uncaught in a Task.
Full message: TypeError: can't access dead object
Full stack: this.ReaderMode._readerParse<@resource://gre/modules/ReaderMode.jsm:478:5
TaskImpl_run@resource://gre/modules/Task.jsm:319:42
process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:922:23
walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:806:7
Promise*scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:739:11
schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:770:7
completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:707:7
get _worker/worker.onmessage@resource://gre/modules/PromiseWorker.jsm:231:9
EventHandlerNonNull*get _worker@resource://gre/modules/PromiseWorker.jsm:217:5
postMessage@resource://gre/modules/PromiseWorker.jsm:291:9
TaskImpl_run@resource://gre/modules/Task.jsm:319:42
process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:922:23
walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:806:7
Promise*scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:739:11
schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:770:7
Promise.prototype.then@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:455:5
TaskImpl_handleResultValue@resource://gre/modules/Task.jsm:396:7
TaskImpl_run@resource://gre/modules/Task.jsm:327:15
TaskImpl@resource://gre/modules/Task.jsm:277:3
asyncFunction@resource://gre/modules/Task.jsm:252:14
Task_spawn@resource://gre/modules/Task.jsm:166:12
post@resource://gre/modules/PromiseWorker.jsm:263:12
this.ReaderMode._readerParse<@resource://gre/modules/ReaderMode.jsm:463:23
TaskImpl_run@resource://gre/modules/Task.jsm:319:42
TaskImpl@resource://gre/modules/Task.jsm:277:3
asyncFunction@resource://gre/modules/Task.jsm:252:14
this.ReaderMode.parseDocument<@resource://gre/modules/ReaderMode.jsm:234:18
TaskImpl_run@resource://gre/modules/Task.jsm:319:42
TaskImpl@resource://gre/modules/Task.jsm:277:3
asyncFunction@resource://gre/modules/Task.jsm:252:14
receiveMessage@chrome://browser/content/tab-content.js:277:34
*************************
Note that I can reproduce that with both en-US and fr builds on Desktop so that doesn't seem to be locale dependent
Comment 7•8 years ago
|
||
Looking at all the files mentioned in the exception, only ReaderMode.jsm was modified between the May 9 and 10:
https://hg.mozilla.org/mozilla-central/rev/9a806ddbcfc6
Maybe a clue for investigation
Assignee | ||
Comment 9•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/annotate/9a806ddbcfc6/toolkit/components/reader/ReaderMode.jsm#l478 is the line of the error here. `doc` must be dead by then. We should save the URL bit we want before doing the parse in the worker. I don't have cycles to write a patch before Monday, but if someone else can do it I can probably rubberstamp.
Still pretty confused how this is hitting people in practice despite automated tests working, and manual testing when I wrote these patches...
Assignee | ||
Updated•8 years ago
|
Component: Reader View → Reader Mode
Product: Firefox for Android → Toolkit
Updated•8 years ago
|
Flags: needinfo?(whuang)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Summary: Reader view is borked → Reader view is broken some of the time due to attempting to use dead 'document' references to get a URL
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8867885 -
Flags: review?(evan) → review?(amarchesini)
Comment 13•8 years ago
|
||
mozreview-review |
Comment on attachment 8867885 [details]
Bug 1364056 - don't try to use `doc` reference when it might be dead,
https://reviewboard.mozilla.org/r/139426/#review143096
Looks like my patch :)
Attachment #8867885 -
Flags: review?(amarchesini) → review+
Comment 14•8 years ago
|
||
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/79c28571253b
don't try to use `doc` reference when it might be dead, r=baku
Comment 15•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•8 years ago
|
status-firefox53:
--- → unaffected
status-firefox54:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Comment 16•8 years ago
|
||
bugherder uplift |
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•