Bug 582664 - Add a Developer menu to the app button. r=dolske, ui-r=limi, a2.0=gavin
authorPatrick Walton <pwalton@mozilla.com>
Fri, 30 Jul 2010 16:48:57 -0700
changeset 48438 65e62e55194e66e269b43290dedb05d4017cc20d
parent 48437 a8dd758e11f15fc0062cd0afbd0ea2473fafda60
child 48439 0cadbd42713e9ec92b61942e0859d471a6f4aa7b
push id14736
push userdbaron@mozilla.com
push dateFri, 30 Jul 2010 23:49:48 +0000
treeherderautoland@f7f9eb6c19d3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske, limi
bugs582664
milestone2.0b3pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 582664 - Add a Developer menu to the app button. r=dolske, ui-r=limi, a2.0=gavin
browser/base/content/browser.xul
browser/locales/en-US/chrome/browser/browser.dtd
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -490,16 +490,32 @@
             <menuitem id="appmenu_showAllHistory"
                       label="&showAllHistoryCmd2.label;"
                       key="showAllHistoryKb"
                       command="Browser:ShowAllHistory"/>
             <menuseparator class="hide-if-empty-places-result"/>
           </menupopup>
         </menu>
         <menuseparator/>
+        <menu id="appmenu_developer"
+              label="&developerMenu.label;">
+          <menupopup>
+            <menuitem id="appmenu_pageSource"
+                      label="&pageSourceCmd.label;"
+                      command="View:PageSource"/>
+            <menuseparator/>
+            <menuitem id="appmenu_pageInspect"
+                      label="&inspectMenu.label;"
+                      command="Tools:Inspect"/>
+            <menuitem id="appmenu_webConsole"
+                      label="&webConsoleCmd.label;"
+                      oncommand="HUDConsoleUI.toggleHUD();"/>
+          </menupopup>
+        </menu>
+        <menuseparator/>
         <menu id="appmenu_customize"
               label="&appMenuCustomize.label;">
           <menupopup id="appmenu_customizeMenu"
                      onpopupshowing="onViewToolbarsPopupShowing(event);">
             <menuseparator/>
             <menuitem command="cmd_ToggleTabsOnTop"
                       type="checkbox"
                       label="&viewTabsOnTop.label;"/>
--- a/browser/locales/en-US/chrome/browser/browser.dtd
+++ b/browser/locales/en-US/chrome/browser/browser.dtd
@@ -252,16 +252,18 @@
 <!ENTITY showAllHistoryCmd.commandkey "H">
 
 <!ENTITY appMenuPrintCmd.label "Print">
 <!ENTITY appMenuCustomize.label "Customize">
 <!ENTITY appMenuToolbarLayout.label "Toolbar Layout…">
 <!ENTITY appMenuSidebars.label "Sidebars">
 <!ENTITY appMenuHelp.label "Help">
 
+<!ENTITY developerMenu.label "Developer">
+
 <!ENTITY openCmd.commandkey           "l">
 <!ENTITY urlbar.placeholder           "Go to a Web Site">
 <!ENTITY urlbar.accesskey             "d">
 <!ENTITY urlbar.switchToTab.label     "Switch to tab:">
 
 <!-- 
   Comment duplicated from browser-sets.inc: