Closed Bug 1442226 Opened 7 years ago Closed 7 years ago

Investigate creation of dead objects in E10S mode

Categories

(DevTools :: Console, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: miker, Assigned: miker)

References

Details

If we can find a way to create dead objects in E10S mode we should update browser_console_error_source_click.js and enable it in E10S mode. I have posted the following message on #content and dev-firefox mailing list: "In non-E10S mode it is easy to create a Dead Object for testing purposes: Open the browser console. Cu = Components.utils; Cu.import('resource://gre/modules/Services.jsm'); chromeWindow = Services.wm.getMostRecentWindow('navigator:browser'); doc = chromeWindow.content.document; delete chromeWindow; Close the Window and doc is a Dead Object. Is there any way to create a dead object for testing purposes in E10S mode? Obviously, in E10S mode chromeWindow.content == null"
Has Regression Range: --- → irrelevant
Has STR: --- → irrelevant
This is where I wish we had an edit button... we should update browser_console_dead_objects.js
nchevobbe found a way: `var s = Cu.Sandbox(null); Cu.nukeSandbox(s); s;`
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.