Fix Xray waivers to deal with multiple globals per compartment
Categories
(Core :: XPConnect, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
Right now XrayWaiver (note: not XrayWaiverWrapper) wrappers are same-compartment and same-realm with their target. The latter is relied on to have them act with the target's principals.
In the multiple-realms-per-compartment world, we could make them same-realm with the target, but that involves a bit of nasty work on FixWaiverAfterTransplant. Or we can just allow them to be same-compartment but not same-realm (due to transplants), and enter the target's realm before calling on to it. Bobby prefers the latter option.
![]() |
Assignee | |
Comment 1•6 years ago
|
||
In the new setup, they are still same-compartment with their target, but may
not be same-realm (due to transplants).
We could make them be same-realm by adjusting FixWaiverAfterTransplant, but
this is conceptually simpler.
Updated•6 years ago
|
Comment 4•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6c7ae3e0b592
https://hg.mozilla.org/mozilla-central/rev/4c37ccc879d7
Description
•