XHR in workers should use the load group from WorkerPrivate::GetLoadGroup()

RESOLVED FIXED in mozilla37

Status

()

Core
DOM: Workers
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: bkelly, Assigned: bkelly)

Tracking

unspecified
mozilla37
x86_64
Windows 8.1
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
In bug 1107516 we began tracking load group separately in WorkerPrivate.  This lets us use the correct load group in SharedWorker, ServiceWorker, and child workers.

Currently XHR gets its load group from the workers current window.  This means that the load group will again not be set properly for these non-window workers.

The XHR Init() method should take a load group to use as a separate parameter.
(Assignee)

Comment 1

4 years ago
Created attachment 8545439 [details] [diff] [review]
Make workers specify the XHR load group to use during the request. (v0)

Specify the worker's load group when initializing the XHR.
Attachment #8545439 - Flags: review?(jonas)
https://hg.mozilla.org/mozilla-central/rev/b0b1ccb01cfc
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.