Closed
Bug 1252221
Opened 8 years ago
Closed 8 years ago
Don't allow ScriptExecutorRunnable::WorkerRun to leave an exception on the JSContext when global creation fails
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
(Whiteboard: btpp-active)
Attachments
(1 file, 1 obsolete file)
From my analysis for bug 1072144: -- Can leave a pending exception on aCx if GetOrCreateGlobalScope fails. We do return false, but that leaves the exception sitting on aCx, because our PostRun does not report exceptions on the JSContext. XXXbz we should probably just steal this exception onto the ErrorResult. That would mean we just report it to console and do NetworkError in terms of error events, I think. That seems alright.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8724916 -
Flags: review?(khuey)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•8 years ago
|
||
Comment on attachment 8724916 [details] [diff] [review] When GetOrCreateGlobalScope fails while trying to run a ScriptExecutorRunnable::WorkerRun, move the exception to our ErrorResult instead of leaving it on the JSContext Er, I'm not sure this is the right way to handle this. Need to think about it a bit more.
Attachment #8724916 -
Flags: review?(khuey)
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8724938 -
Flags: review?(khuey)
Assignee | ||
Updated•8 years ago
|
Attachment #8724916 -
Attachment is obsolete: true
Attachment #8724938 -
Flags: review?(khuey) → review+
Updated•8 years ago
|
Whiteboard: btpp-active
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7895ac3242bc
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•