Created
December 22, 2012 01:49
-
-
Save anonymous/4356982 to your computer and use it in GitHub Desktop.
Developer tools window to debug toolbox open in current tab.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Running this scratchpad will open a Developer Tools window that's debugging | |
* the currently selected tab's toolbox. | |
*/ | |
Cu.import("resource:///modules/devtools/Target.jsm"); | |
let target = TargetFactory.forTab(gBrowser.selectedTab); | |
let toolboxToDebug = gDevTools.getToolbox(target); | |
let tbTarget = TargetFactory.forWindow(toolboxToDebug.frame.contentWindow); | |
let toolbox = gDevTools.showToolbox(tbTarget, "styleeditor", "window"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment