Closed
Bug 869800
Opened 12 years ago
Closed 12 years ago
Remove JS_GetGlobalObject from workers
Categories
(Core :: DOM: Workers, defect)
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(2 files)
(deleted),
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
All of this stuff appears to be happening on the worker cx. I can't quite tell whether there are ever multiple globals/compartments involved for a given cx - it seems like there might be with sub-workers, but I can't quite tell.
Either way though, it seems like all of these would be better off just pulling the global off the current compartment rather than grabbing the default one stashed on the context, especially the aforementioned API is going away.
Assignee | ||
Comment 1•12 years ago
|
||
There are no shared globals/compartments/contexts at all. If we are running with a worker cx then its global object can only be the worker associated with that cx.
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to ben turner [:bent] from comment #2)
> There are no shared globals/compartments/contexts at all. If we are running
> with a worker cx then its global object can only be the worker associated
> with that cx.
In that case, these patches should be totally fine (they pass mochitests, anyway). I'll upload now.
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #746780 -
Flags: review?(bent.mozilla)
Assignee | ||
Comment 5•12 years ago
|
||
This makes workers the first consumer to be weaned off this API. \o/
Attachment #746781 -
Flags: review?(bent.mozilla)
Assignee | ||
Comment 6•12 years ago
|
||
This is green.
Updated•12 years ago
|
Attachment #746780 -
Flags: review?(bent.mozilla) → review+
Updated•12 years ago
|
Attachment #746781 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Thanks for the review ben - I know you're busy. :-)
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/cbebcd9f2531
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/469e647ccbf5
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/cbebcd9f2531
https://hg.mozilla.org/mozilla-central/rev/469e647ccbf5
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•