Closed Bug 1125364 Opened 10 years ago Closed 10 years ago

TypeError: content is null in AboutReaderListener

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 38

People

(Reporter: Margaret, Assigned: Margaret)

References

Details

Attachments

(2 files)

Spotted this in the console. ************************* A coding exception was thrown in a Promise resolution callback. See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise Full message: TypeError: content is null Full stack: AboutReaderListener.handleEvent/<@chrome://browser/content/content.js:513:15 Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:870:23 this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:749:7 this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:691:37 *************************
Similarly to bug 1125396, I found this while working on browser-chrome tests. I assume that content is null if the content window was destroyed while we were off parsing the document, so I think this is also a valid error case. (I couldn't figure out how to make dependent review board reviews, so I'm just uploading this the old school way.)
Attachment #8554039 - Flags: review?(jaws)
This logic is also in Fennec! I should see if there's a way we could move this logic into a shared place... maybe in ReaderMode.jsm.
Attachment #8554040 - Flags: review?(mark.finkle)
Attachment #8554040 - Flags: review?(mark.finkle) → review+
Attachment #8554039 - Flags: review?(jaws) → review+
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: