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)

defect
Not set
normal

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: nobody → bzbarsky
Status: NEW → ASSIGNED
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)
Attachment #8724916 - Attachment is obsolete: true
Whiteboard: btpp-active
https://hg.mozilla.org/mozilla-central/rev/7895ac3242bc
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: