Closed
Bug 1094485
Opened 11 years ago
Closed 11 years ago
Properly handle exceptions in readerWorker.js
Categories
(Firefox for Android Graveyard :: Reader View, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 36
People
(Reporter: Margaret, Assigned: Margaret)
References
Details
Attachments
(1 file)
|
4.89 KB,
patch
|
bnicholson
:
review+
|
Details | Diff | Splinter Review |
Right now if there's a JS exception in readerWorker.js, we just eat it and never get back to Reader.js with a response. In the case of _downloadAndParseDocument, this means we'll never release a loaded <browser> from memory.
| Assignee | ||
Comment 1•11 years ago
|
||
Adding an onerror handler will make sure that we can handle JS exceptions in the worker.
I looked through the promise chains, and a rejection here will be caught and logged upstream. However, I realized that our getArticle in _addTabToReadingList expects that null will be returned, not an exception thrown, if there's a problem getting the article, so I decided to make getArticle handle the exception itself.
Attachment #8517805 -
Flags: review?(bnicholson)
Comment 2•11 years ago
|
||
Comment on attachment 8517805 [details] [diff] [review]
Properly handle exceptions in readerWorker.js
Review of attachment 8517805 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks for fixing this!
Attachment #8517805 -
Flags: review?(bnicholson) → review+
Comment 3•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Updated•4 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
•