Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 3556: Fx4 'Add-on Bar' always displays on restart with fbug ena…
…bled (partial fix) http://code.google.com/p/fbug/source/detail?r=8786
- Loading branch information
1 parent
180eacc
commit 4abc0bc
Showing
7 changed files
with
134 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
34 changes: 34 additions & 0 deletions
34
extension/content/firebug/start-button/startButtonOverlay.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* See license.txt for terms of usage */ | ||
|
||
FBL.ns(function() { with (FBL) { | ||
|
||
// ********************************************************************************************* // | ||
// Constants | ||
|
||
var popup = $("fbStatusContextMenu"); | ||
var firebugButton = $("firebug-button"); | ||
|
||
// ********************************************************************************************* // | ||
// Module Implementation | ||
|
||
Firebug.StartButton = extend(Firebug.Module, | ||
{ | ||
initializeUI: function() | ||
{ | ||
Firebug.Module.initializeUI.apply(this, arguments); | ||
|
||
firebugButton.appendChild(popup.cloneNode(true)); | ||
}, | ||
|
||
shutdown: function() | ||
{ | ||
}, | ||
}); | ||
|
||
// ********************************************************************************************* // | ||
// Registration | ||
|
||
Firebug.registerModule(Firebug.StartButton); | ||
|
||
// ********************************************************************************************* // | ||
}}); |
75 changes: 75 additions & 0 deletions
75
extension/content/firebug/start-button/startButtonOverlay.xul
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0"?> | ||
|
||
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||
<script type="application/x-javascript" src="chrome://firebug/content/start-button/startButtonOverlay.js"/> | ||
|
||
<popupset id="mainPopupSet"> | ||
|
||
<!-- Popup menu shared by the Status bar icon and Firebug button (the toolbar button | ||
available in Customizable Toolbar dialog, see below) --> | ||
<menupopup id="fbStatusContextMenu" | ||
onpopupshowing="FirebugChrome.onOptionsShowing(this)"> | ||
<menuitem | ||
id="menu_detachFirebugContext" | ||
label="firebug.DetachFirebug" | ||
command="cmd_toggleDetachFirebug" | ||
type="checkbox" key="key_detachFirebug"/> | ||
<menuseparator/> | ||
<menuitem | ||
id="menu_ClearConsole" | ||
label="firebug.ClearConsole" | ||
command="cmd_clearConsole" | ||
key="key_clearConsole"/> | ||
<menuseparator/> | ||
<menuitem | ||
id="menu_enablePanels" | ||
label="firebug.menu.Enable All Panels" | ||
command="cmd_enablePanels"/> | ||
<menuitem | ||
id="menu_disablePanels" | ||
label="firebug.menu.Disable All Panels" | ||
command="cmd_disablePanels"/> | ||
<menuseparator/> | ||
<menuitem | ||
id="menu_AllOn" | ||
type="checkbox" | ||
label="On for all web pages" | ||
command="cmd_allOn"/> | ||
<menuitem | ||
id="menu_clearActivationList" | ||
label="firebug.menu.Clear Activation List" | ||
command="cmd_clearActivationList"/> | ||
</menupopup> | ||
</popupset> | ||
|
||
<!-- Buttons for Firefox Customize Toolbar dialog --> | ||
<toolbarpalette id="BrowserToolbarPalette"> | ||
|
||
<!-- DOM Inspector --> | ||
<toolbarbutton id="inspector-button" label="firebug.Inspect" | ||
class="toolbarbutton-1 chromeclass-toolbar-additional" | ||
observes="cmd_toggleInspecting" tooltiptext="firebug.InspectElement"/> | ||
|
||
<!-- Firebug button --> | ||
<toolbarbutton id="firebug-button" label="firebug.Firebug" | ||
class="toolbarbutton-1 chromeclass-toolbar-additional" | ||
observes="cmd_toggleFirebug" tooltiptext="firebug.ShowFirebug" | ||
type="menu-button" contextmenu="fbStatusContextMenu"> | ||
<!-- menu fbStatusContextMenu is cloned here --> | ||
</toolbarbutton> | ||
</toolbarpalette> | ||
|
||
<!-- Extend Firefox status bar --> | ||
<statusbar id="status-bar"> | ||
<statusbarpanel id="fbStatusBar" context="fbStatusContextMenu" role="button" | ||
aria-labelledby="fbStatusPrefix fbStatusText" aria-describedby="fbStatusIcon" | ||
onmouseup="Firebug.onClickStatusIcon(Firebug.currentContext, event);" | ||
tooltiptext="Firebug"> | ||
<image id="fbStatusIcon" /> | ||
<label id="fbStatusPrefix" collapsed="true" /> | ||
<label id="fbStatusText" | ||
onmouseup="Firebug.onClickStatusText(Firebug.currentContext, event);" /> | ||
</statusbarpanel> | ||
</statusbar> | ||
|
||
</overlay> |
This file contains 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