DEBUG_DEVTOOLS_ALLOCATIONS is broken since DevTools shared the system principal compartment
Categories
(DevTools :: Framework, defect, P3)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(3 files)
Bug 1517210 broke DEBUG_DEVTOOLS_ALLOCATIONS completly. It throws as it creates its Debugger instance in the same compartment than DevTools.
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Now that there is a shared head.js, the import-globals-from is done from there.
Assignee | ||
Comment 2•6 years ago
|
||
In bug 1517210, DevTools started sharing the same compartment than JSMs.
So we can no longer use a Debugger instance bound to jsdebugger.jsm as it
would run in the same compartment than DevTools code we want to inspect
from the allocation tracker.
Instead, we instantiate the Debugger from a custom Sandbox loaded
in a unique and distinct compartment.
Depends on D26077
Assignee | ||
Comment 3•6 years ago
|
||
ChromeUtils.import no longer pollute the global scope,
so we can switch to it and remove this ancient helper.
Depends on D26078
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bb332aeab405
https://hg.mozilla.org/mozilla-central/rev/3ce71471f486
https://hg.mozilla.org/mozilla-central/rev/0c5e505e3799
Updated•6 years ago
|
Description
•