Closed Bug 1540694 Opened 6 years ago Closed 6 years ago

DEBUG_DEVTOOLS_ALLOCATIONS is broken since DevTools shared the system principal compartment

Categories

(DevTools :: Framework, defect, P3)

defect

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
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.

Priority: -- → P3

Now that there is a shared head.js, the import-globals-from is done from there.

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

ChromeUtils.import no longer pollute the global scope,
so we can switch to it and remove this ancient helper.

Depends on D26078

Blocks: 1543023
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb332aeab405 Remove unecessary import-globals-from. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/3ce71471f486 Fix DEBUG_DEVTOOLS_ALLOCATIONS now that DevTools share the unique system compartment. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/0c5e505e3799 Removed scopedCuImport usages. r=jdescottes
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Assignee: nobody → poirot.alex
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: