Open Bug 1547145 Opened 6 years ago Updated 2 years ago

Pass JSContext explicitly when opening XHRs in worker threads

Categories

(Core :: DOM: Workers, defect, P3)

defect

Tracking

()

People

(Reporter: bhackett1024, Unassigned)

References

(Blocks 1 open bug)

Details

Bug 1392408 adds some uses of the current context in the Open() method on an XMLHttpRequest, which are currently resolved using nsContentUtils::GetCurrentJSContext(). It would be better if the JSContext was passed around by callers and passed in as null in the cases when Open() is called when proxying a worker XHR to the main thread and there is no JS on the stack. See the discussion in part 4 of bug 1392408.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.