Closed Bug 1382661 Opened 7 years ago Closed 7 years ago

Stop adding "DeveloperToolbar" to top level window object

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, enhancement, P3)

enhancement

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

a DeveloperToolbar attribute is being set on all browser.xul window object.
It appears to be an issue as these are reported as leaks during mochitest if we load devtools more lazily, like in bug 1359855.

Instead we should retrieve this "per window singleton" via some API on some devtools module.
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Priority: -- → P3
Comment on attachment 8888302 [details]
Bug 1382661 - Stop injecting DeveloperToolbar on top level windows.

https://reviewboard.mozilla.org/r/159254/#review164888

Looks good, r+ with a green try
Attachment #8888302 - Flags: review?(jdescottes) → review+
Comment on attachment 8888302 [details]
Bug 1382661 - Stop injecting DeveloperToolbar on top level windows.

https://reviewboard.mozilla.org/r/159254/#review165036

::: devtools/client/shared/test/browser_toolbar_webconsole_errors_count.js:32
(Diff revision 1)
>    });
>  
>    ignoreAllUncaughtExceptions();
>    addTab(TEST_URI).then(openToolbar);
>  
> +  let toolbar = gDevToolsBrowser.getDeveloperToolbar(window);

Looks like this test is failing locally and on try.

> 21 INFO TEST-UNEXPECTED-FAIL | devtools/client/shared/test/browser_toolbar_webconsole_errors_count.js | 
> This test contains no passes, no fails and no todos. Maybe it threw a silent exception? 
> Make sure you use waitForExplicitFinish() if you need it. -
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ac0b38e56614
Stop injecting DeveloperToolbar on top level windows. r=jdescottes
https://hg.mozilla.org/mozilla-central/rev/ac0b38e56614
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: