Skip to content

Commit

Permalink
Issue 5623: New pref to disable/enable delayed Firebug load
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Aug 22, 2012
1 parent 0f52bbc commit 4c68782
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extension/content/firebug/firefox/browserOverlay.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1308,6 +1308,13 @@ if (PrefLoader.getPref("allPagesActivation") == "on" || !PrefLoader.getPref("del
{ {
Firebug.GlobalUI.startFirebug(function() Firebug.GlobalUI.startFirebug(function()
{ {
var browser = Firebug.Firefox.getBrowserForWindow(this);
var uri = Firebug.Firefox.getCurrentURI();

// Open Firebug UI (e.g. if the annotations say so, issue 5623)
if (uri && Firebug.TabWatcher.shouldCreateContext(browser, uri.spec, null))
Firebug.toggleBar(true);

FBTrace.sysout("Firebug loaded by default since 'allPagesActivation' is on " + FBTrace.sysout("Firebug loaded by default since 'allPagesActivation' is on " +
"or 'delayLoad' is false"); "or 'delayLoad' is false");
}); });
Expand Down

0 comments on commit 4c68782

Please sign in to comment.