home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / firefox-3.0.14 / chrome / browser.jar / content / browser / browser.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-10-18  |  72.4 KB  |  1,352 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
  5.  
  6. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  7.  
  8. <?xml-stylesheet href="chrome://global/skin/toolbar.css" type="text/css"?>
  9.  
  10. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  11. <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
  12. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  13.  
  14. <!DOCTYPE window [
  15. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  16. %brandDTD;
  17. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  18. %browserDTD;
  19. <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  20. %globalDTD;
  21. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  22. %globalRegionDTD;
  23. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
  24. %charsetDTD;
  25. <!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd" >
  26. %textcontextDTD;
  27. <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
  28. %placesDTD;
  29. <!ENTITY % safebrowsingDTD SYSTEM "chrome://browser/locale/safebrowsing/phishing-afterload-warning-message.dtd">
  30. %safebrowsingDTD;
  31. ]>
  32.  
  33.  
  34. <window id="main-window"
  35.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  36.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.         onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
  38.         contenttitlesetting="true"
  39.         title="&mainWindow.title;"
  40.         titlemodifier="&mainWindow.title;"
  41.         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  42.         windowtype="navigator:browser"
  43.         screenX="4" screenY="4"
  44.         persist="screenX screenY width height sizemode"> 
  45.  
  46.  
  47. <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  48. <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  49. <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  50. <script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
  51. <script type="application/x-javascript" src="chrome://global/content/viewSourceUtils.js"/>
  52. <script type="application/x-javascript" src="chrome://browser/content/nsContextMenu.js"/>
  53.  
  54. <script type="application/x-javascript" src="chrome://browser/content/safebrowsing/sb-loader.js"/>
  55. <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  56.  
  57. <script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
  58.  
  59.  
  60.  
  61.   <stringbundleset id="stringbundleset"> 
  62.     <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
  63.     <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
  64.     <stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/>
  65.   </stringbundleset>
  66.  
  67.   <commandset id="mainCommandSet">
  68.     <command id="cmd_newNavigator"                 oncommand="OpenBrowserWindow()"/>
  69.     <command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" />
  70.     <command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" />
  71.  
  72.     <command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
  73.     <command id="Browser:OpenFile"  oncommand="BrowserOpenFileWindow();"/>
  74.     <command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/>
  75.     <command id="Browser:SaveFrame" oncommand="saveFrameDocument();"/>
  76.  
  77.     <command id="Browser:SendLink"
  78.              oncommand="MailIntegration.sendLinkForWindow(window.content);"/>
  79.  
  80.     <command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/>
  81.     <command id="cmd_print" oncommand="PrintUtils.print();"/>
  82.     <command id="cmd_printPreview" oncommand="PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview);"/>
  83.     <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
  84.     <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
  85.     <command id="cmd_toggleTaskbar" oncommand="goToggleToolbar('status-bar','toggle_taskbar');"/>
  86.     <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
  87.     <command id="cmd_quitApplication" oncommand="goQuitApplication()"/>
  88.  
  89.  
  90.     <commandset id="editMenuCommands"/>
  91.  
  92.     <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/>
  93.     <command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
  94.     <command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
  95.     <command id="cmd_find"
  96.              oncommand="gFindBar.onFindCommand();"
  97.              observes="isImage"/>
  98.     <command id="cmd_findAgain"
  99.              oncommand="gFindBar.onFindAgainCommand(false);"
  100.              observes="isImage"/>
  101.     <command id="cmd_findPrevious"
  102.              oncommand="gFindBar.onFindAgainCommand(true);"
  103.              observes="isImage"/>
  104.     <!-- work-around bug 392512 -->
  105.     <command id="Browser:AddBookmarkAs" 
  106.              oncommand="PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksMenuFolderId);"/>
  107.     <!-- The command is disabled for the hidden window. Otherwise its enabled
  108.          state is handled by the BookmarkAllTabsHandler object. -->
  109.     <command id="Browser:BookmarkAllTabs"
  110.              oncommand="gBookmarkAllTabsHandler.doCommand();"
  111.              disabled="true"/>
  112.     <command id="Browser:Home"    oncommand="BrowserHome();"/>
  113.     <command id="Browser:Back"    oncommand="BrowserBack();" disabled="true"/>
  114.     <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
  115.     <command id="Browser:Stop"    oncommand="BrowserStop();" disabled="true"/>
  116.     <command id="Browser:Reload"  oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/>
  117.     <command id="Browser:ReloadSkipCache"  oncommand="BrowserReloadSkipCache()" disabled="true"/>
  118.     <command id="cmd_fullZoomReduce"  oncommand="FullZoom.reduce()"/>
  119.     <command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/>
  120.     <command id="cmd_fullZoomReset"   oncommand="FullZoom.reset()"/>
  121.     <command id="cmd_fullZoomToggle"  oncommand="ZoomManager.toggleZoom();"/>
  122.     <command id="Browser:OpenLocation" oncommand="openLocation();"/>
  123.  
  124.     <command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/>    
  125.     <command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/>
  126.     <command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/>
  127.     <command id="Tools:Sanitize"
  128.      oncommand="Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null);"/>
  129.     <command id="History:UndoCloseTab" oncommand="undoCloseTab();"/>
  130.   </commandset>
  131.  
  132.   <commandset id="placesCommands">
  133.     <command id="Browser:ShowAllBookmarks"
  134.              oncommand="PlacesCommandHook.showPlacesOrganizer('AllBookmarks');"/>
  135.     <command id="Browser:ShowAllHistory"
  136.              oncommand="PlacesCommandHook.showPlacesOrganizer('History');"/>
  137.   </commandset>
  138.  
  139.   <broadcasterset id="mainBroadcasterSet">
  140.     <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
  141.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
  142.                  oncommand="toggleSidebar('viewBookmarksSidebar');"/>
  143.  
  144.     <!-- for both places and non-places, the sidebar lives at 
  145.          chrome://browser/content/history/history-panel.xul so there are no
  146.          problems when switching between versions -->
  147.     <broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;"
  148.                  type="checkbox" group="sidebar" 
  149.                  sidebarurl="chrome://browser/content/history/history-panel.xul"
  150.                  oncommand="toggleSidebar('viewHistorySidebar');"/>
  151.                  
  152.     <broadcaster id="viewWebPanelsSidebar" autoCheck="false" 
  153.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
  154.                  oncommand="toggleSidebar('viewWebPanelsSidebar');"/>
  155.  
  156.     <!-- popup blocking menu items -->
  157.     <broadcaster id="blockedPopupAllowSite" 
  158.                  accesskey="&allowPopups.accesskey;" 
  159.                  oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
  160.     <broadcaster id="blockedPopupEditSettings" 
  161.                  label="&editPopupSettingsUnix.label;" 
  162.                  accesskey="&editPopupSettings.accesskey;" 
  163.                  oncommand="gPopupBlockerObserver.editPopupSettings();"/>
  164.     <broadcaster id="blockedPopupDontShowMessage" 
  165.                  accesskey="&dontShowMessage.accesskey;" 
  166.                  type="checkbox"
  167.                  oncommand="gPopupBlockerObserver.dontShowMessage();"/>
  168.     <broadcaster id="blockedPopupsSeparator"/>
  169.     <broadcaster id="isImage"/>
  170.     <broadcaster id="isFrameImage"/>
  171.   </broadcasterset>
  172.  
  173.   <keyset id="mainKeyset">
  174.     <key id="key_newNavigator"
  175.          key="&newNavigatorCmd.key;"
  176.          command="cmd_newNavigator"
  177.          modifiers="accel"/>
  178.     <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
  179.     <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
  180.          modifiers="accel"/>
  181.     <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
  182.          modifiers="alt"/>
  183.  
  184.     <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
  185.     <key id="key_search2" key="&searchFocusUnix.commandkey;" command="Tools:Search" modifiers="accel"/>
  186.     <key id="key_openDownloads" key="&downloadsUnix.commandkey;" command="Tools:Downloads" modifiers="accel"/>
  187.     <key id="key_errorConsole" key="&errorConsoleCmd.commandkey;" oncommand="toJavaScriptConsole();" modifiers="accel,shift"/>
  188.     <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile"  modifiers="accel"/>
  189.     <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
  190.     <key id="printKb" key="&printCmd.commandkey;" command="cmd_print"  modifiers="accel"/>
  191.     <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
  192.     <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
  193.     <key id="key_undo"
  194.          key="&undoCmd.key;"
  195.          modifiers="accel"/>
  196.     <key id="key_redo" key="&undoCmd.key;" modifiers="accel,shift"/>
  197.     <key id="key_cut"
  198.          key="&cutCmd.key;"
  199.          modifiers="accel"/>
  200.     <key id="key_copy"
  201.          key="©Cmd.key;"
  202.          modifiers="accel"/>
  203.     <key id="key_paste"
  204.          key="&pasteCmd.key;"
  205.          modifiers="accel"/>
  206.     <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  207.     <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
  208.  
  209.     <key keycode="VK_BACK" command="cmd_handleBackspace"/>
  210.     <key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
  211.     <key id="goBackKb"  keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
  212.     <key id="goForwardKb"  keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
  213.     <key id="goBackKb2" key="&goBackCmd.commandKey;" command="Browser:Back" modifiers="accel"/>
  214.     <key id="goForwardKb2" key="&goForwardCmd.commandKey;" command="Browser:Forward" modifiers="accel"/>
  215.     <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
  216.     <key keycode="VK_F5" command="Browser:Reload"/>
  217.     <key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/>
  218.     <key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/>
  219.     <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
  220.     <key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/>
  221.     <key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/>
  222.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
  223.     <key id="key_viewInfo"   key="&pageInfoCmd.commandkey;"   command="View:PageInfo"   modifiers="accel"/>
  224.     <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  225.     <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  226.     <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  227.     <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  228.     <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  229.  
  230.     <key id="addBookmarkAsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
  231.     <key id="viewBookmarksSidebarKb" key="&bookmarksSidebarCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  232.  
  233.     <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
  234.     
  235.  
  236.     <key id="key_gotoHistory"
  237.          key="&historySidebarCmd.commandKey;"
  238.          modifiers="accel"
  239.          command="viewHistorySidebar"/>
  240.  
  241.     <key id="key_fullZoomReduce"  key="&fullZoomReduceCmd.commandkey;"   command="cmd_fullZoomReduce"  modifiers="accel"/>
  242.     <key                          key="&fullZoomReduceCmd.commandkey2;"  command="cmd_fullZoomReduce"  modifiers="accel"/>
  243.     <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;"  command="cmd_fullZoomEnlarge" modifiers="accel"/>
  244.     <key                          key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
  245.     <key                          key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
  246.     <key id="key_fullZoomReset"   key="&fullZoomResetCmd.commandkey;"    command="cmd_fullZoomReset"   modifiers="accel"/>
  247.     <key                          key="&fullZoomResetCmd.commandkey2;"   command="cmd_fullZoomReset"   modifiers="accel"/>
  248.     
  249.     <key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />
  250.  
  251.     <key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/>
  252.     <key id="key_quitApplication" key="&quitApplicationCmdMac.key;" command="cmd_quitApplication" modifiers="accel"/>
  253.  
  254.     <key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
  255.  
  256.  
  257.    <key id="key_selectTab1" oncommand="BrowserNumberTabSelection(event, 0);" key="1" modifiers="alt"/>
  258.    <key id="key_selectTab2" oncommand="BrowserNumberTabSelection(event, 1);" key="2" modifiers="alt"/>
  259.    <key id="key_selectTab3" oncommand="BrowserNumberTabSelection(event, 2);" key="3" modifiers="alt"/>
  260.    <key id="key_selectTab4" oncommand="BrowserNumberTabSelection(event, 3);" key="4" modifiers="alt"/>
  261.    <key id="key_selectTab5" oncommand="BrowserNumberTabSelection(event, 4);" key="5" modifiers="alt"/>
  262.    <key id="key_selectTab6" oncommand="BrowserNumberTabSelection(event, 5);" key="6" modifiers="alt"/>
  263.    <key id="key_selectTab7" oncommand="BrowserNumberTabSelection(event, 6);" key="7" modifiers="alt"/>
  264.    <key id="key_selectTab8" oncommand="BrowserNumberTabSelection(event, 7);" key="8" modifiers="alt"/>
  265.    <key id="key_selectTab9" oncommand="BrowserNumberTabSelection(event, 8);" key="9" modifiers="alt"/>
  266.  
  267.   </keyset>
  268.  
  269.   <keyset id="baseMenuKeyset" />
  270.  
  271.   <popupset id="mainPopupSet">
  272.     <menupopup id="backForwardMenu"
  273.                chromedir="&locale.dir;"
  274.                onpopupshowing="return FillHistoryMenu(event.target);"
  275.                oncommand="gotoHistoryIndex(event);"
  276.                onclick="checkForMiddleClick(this, event);"/>
  277.     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
  278.  
  279.     <!-- for search and content formfill/pw manager -->
  280.     <panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
  281.  
  282.     <!-- for url bar autocomplete -->
  283.     <panel type="autocomplete-richlistbox" chromedir="&locale.dir;" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
  284.  
  285.     <!-- XXX panel element that has one or more text fields should not be
  286.              top-most panel, for IME users. See bug 433340 comment 100.
  287.              However, we should not use non-topmost panel on Linux. Because
  288.              some Window Managers always append title bar and border to the
  289.              panel. -->
  290.  
  291.     <panel id="editBookmarkPanel"
  292.            orient="vertical"
  293.            ignorekeys="true"
  294.            hidden="true"
  295.            onpopupshown="StarUI.panelShown(event);"
  296.            aria-labelledby="editBookmarkPanelTitle">
  297.       <hbox flex="1" align="top">
  298.         <image id="editBookmarkPanelStarIcon"/>
  299.         <vbox flex="1">
  300.           <label id="editBookmarkPanelTitle" flex="1"/>
  301.           <description id="editBookmarkPanelDescription" flex="1"/>
  302.           <hbox>
  303.             <button id="editBookmarkPanelUndoRemoveButton"
  304.                     hidden="true"
  305.                     oncommand="StarUI.undoRemoveBookmarkCommand();"
  306.                     label="&editBookmark.undo.label;"
  307.                     accesskey="&editBookmark.undo.accessKey;"/>
  308.             <button id="editBookmarkPanelRemoveButton"
  309.                     oncommand="StarUI.removeBookmarkButtonCommand();"
  310.                     label="&editBookmark.removeBookmark.label;"
  311.                     accesskey="&editBookmark.removeBookmark.accessKey;"/>
  312.             <button id="editBookmarkPanelEditButton"
  313.                     oncommand="StarUI.editButtonCommand();"
  314.                     label="&editBookmark.edit.label;"
  315.                     accesskey="&editBookmark.edit.accessKey;"/>
  316.           </hbox>
  317.         </vbox>
  318.       </hbox>
  319.       <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
  320.       <hbox flex="1" id="editBookmarkPanelBottomButtons">
  321.         <spacer flex="1"/>
  322.         <button id="editBookmarkPanelDeleteButton"
  323.                 label="&editBookmark.cancel.label;"
  324.                 oncommand="StarUI.cancelButtonOnCommand();"/>
  325.         <button id="editBookmarkPanelDoneButton"
  326.                 label="&editBookmark.done.label;"
  327.                 default="true"
  328.                 oncommand="StarUI.panel.hidePopup();"/>
  329.       </hbox>
  330.     </panel>
  331.  
  332.     <popup id="toolbar-context-menu"
  333.            onpopupshowing="onViewToolbarsPopupShowing(event);">
  334.       <menuseparator/>
  335.       <menuitem command="cmd_CustomizeToolbars"
  336.                 label="&viewCustomizeToolbar.label;"
  337.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  338.     </popup>
  339.  
  340.     <popup id="blockedPopupOptions" 
  341.            onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  342.       <menuitem observes="blockedPopupAllowSite"/>
  343.       <menuitem observes="blockedPopupEditSettings"/>
  344.       <menuitem observes="blockedPopupDontShowMessage"/>
  345.       <menuseparator observes="blockedPopupsSeparator"/>
  346.     </popup>
  347.  
  348.     <menupopup id="autohide-context"
  349.            onpopupshowing="FullScreen.getAutohide(this.firstChild);">
  350.       <menuitem type="checkbox" label="&fullScreenAutohide.label;"
  351.                 accesskey="&fullScreenAutohide.accesskey;"
  352.                 oncommand="FullScreen.setAutohide();"/>
  353.       <menuseparator/>
  354.       <menuitem label="&fullScreenExit.label;"
  355.                 accesskey="&fullScreenExit.accesskey;"
  356.                 oncommand="BrowserFullScreen();"/>
  357.     </menupopup>
  358.  
  359.     <popup id="contentAreaContextMenu"
  360.            onpopupshowing="if (event.target != this) return true; updateEditUIVisibility(); gContextMenu = new nsContextMenu(this, window.getBrowser()); return gContextMenu.shouldDisplay;"
  361.            onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }">
  362.  
  363.       <menuitem id="spell-no-suggestions"
  364.                 disabled="true"
  365.                 label="&spellNoSuggestions.label;"/>
  366.       <menuitem id="spell-add-to-dictionary"
  367.                 label="&spellAddToDictionary.label;"
  368.                 accesskey="&spellAddToDictionary.accesskey;"
  369.                 oncommand="InlineSpellCheckerUI.addToDictionary();"/>
  370.       <menuseparator id="spell-suggestions-separator"/>
  371.       <menuitem id="context-openlink"
  372.                 label="&openLinkCmd.label;"
  373.                 accesskey="&openLinkCmd.accesskey;"
  374.                 oncommand="gContextMenu.openLink();"/>
  375.       <menuitem id="context-openlinkintab"
  376.                 label="&openLinkCmdInTab.label;"
  377.                 accesskey="&openLinkCmdInTab.accesskey;"
  378.                 oncommand="gContextMenu.openLinkInTab();"/>
  379.       <menuseparator id="context-sep-open"/>
  380.       <menuitem id="context-bookmarklink"
  381.                 label="&bookmarkThisLinkCmd.label;"
  382.                 accesskey="&bookmarkThisLinkCmd.accesskey;"
  383.                 oncommand="gContextMenu.bookmarkLink();"/>
  384.       <menuitem id="context-savelink"
  385.                 label="&saveLinkCmd.label;"
  386.                 accesskey="&saveLinkCmd.accesskey;"
  387.                 oncommand="gContextMenu.saveLink();"/>
  388.       <menuitem id="context-sendlink"
  389.                 label="&sendLinkCmd.label;"
  390.                 accesskey="&sendLinkCmd.accesskey;"
  391.                 oncommand="gContextMenu.sendLink();"/>
  392.       <menuitem id="context-copyemail"
  393.                 label="©EmailCmd.label;"
  394.                 accesskey="©EmailCmd.accesskey;"
  395.                 oncommand="gContextMenu.copyEmail();"/>
  396.       <menuitem id="context-copylink"
  397.                 label="©LinkCmd.label;"
  398.                 accesskey="©LinkCmd.accesskey;"
  399.                 oncommand="goDoCommand('cmd_copyLink');"/>
  400.       <menuseparator id="context-sep-copylink"/>
  401.       <menuitem id="context-showimage"
  402.                 label="&showImageCmd.label;"
  403.                 accesskey="&showImageCmd.accesskey;"
  404.                 oncommand="gContextMenu.showImage();"/>
  405.       <menuitem id="context-viewimage"
  406.                 label="&viewImageCmd.label;"
  407.                 accesskey="&viewImageCmd.accesskey;"
  408.                 oncommand="gContextMenu.viewImage(event);"
  409.                 onclick="checkForMiddleClick(this, event);"/>
  410.       <menuitem id="context-copyimage-contents"
  411.                 label="©ImageContentsCmd.label;"
  412.                 accesskey="©ImageContentsCmd.accesskey;"
  413.                 oncommand="goDoCommand('cmd_copyImageContents');"/>
  414.       <menuitem id="context-copyimage"
  415.                 label="©ImageCmd.label;"
  416.                 accesskey="©ImageCmd.accesskey;"
  417.                 oncommand="goDoCommand('cmd_copyImageLocation');"/>
  418.       <menuseparator id="context-sep-copyimage"/>
  419.       <menuitem id="context-saveimage"
  420.                 label="&saveImageCmd.label;"
  421.                 accesskey="&saveImageCmd.accesskey;"
  422.                 oncommand="gContextMenu.saveImage();"/>
  423.       <menuitem id="context-sendimage"  
  424.                 label="&sendImageCmd.label;" 
  425.                 accesskey="&sendImageCmd.accesskey;" 
  426.                 oncommand="gContextMenu.sendImage();"/>
  427.       <menuitem id="context-setDesktopBackground"
  428.                 label="&setDesktopBackgroundCmd.label;"
  429.                 accesskey="&setDesktopBackgroundCmd.accesskey;"
  430.                 oncommand="gContextMenu.setDesktopBackground();"/>
  431.       <menuitem id="context-blockimage"
  432.                 type="checkbox"
  433.                 accesskey="&blockImageCmd.accesskey;"
  434.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
  435.       <menuitem id="context-back"
  436.                 label="&backCmd.label;"
  437.                 accesskey="&backCmd.accesskey;"
  438.                 chromedir="&locale.dir;"
  439.                 command="Browser:Back"/>
  440.       <menuitem id="context-forward"
  441.                 label="&forwardCmd.label;"
  442.                 accesskey="&forwardCmd.accesskey;"
  443.                 chromedir="&locale.dir;"
  444.                 command="Browser:Forward"/>
  445.       <menuitem id="context-reload"
  446.                 label="&reloadCmd.label;"
  447.                 accesskey="&reloadCmd.accesskey;"
  448.                 command="Browser:Reload"/>
  449.       <menuitem id="context-stop"
  450.                 label="&stopCmd.label;"
  451.                 accesskey="&stopCmd.accesskey;"
  452.                 command="Browser:Stop"/>
  453.       <menuseparator id="context-sep-stop"/>
  454.       <menuitem id="context-bookmarkpage"
  455.                 label="&bookmarkPageCmd2.label;"
  456.                 accesskey="&bookmarkPageCmd2.accesskey;"
  457.                 oncommand="gContextMenu.bookmarkThisPage();"/>
  458.       <menuitem id="context-savepage"
  459.                 label="&savePageCmd.label;"
  460.                 accesskey="&savePageCmd.accesskey2;"
  461.                 oncommand="gContextMenu.savePageAs();"/>
  462.       <menuitem id="context-sendpage"  
  463.                 label="&sendPageCmd.label;" 
  464.                 accesskey="&sendPageCmd.accesskey;" 
  465.                 oncommand="gContextMenu.sendPage();"/>
  466.       <menuseparator id="context-sep-viewbgimage"/>  
  467.       <menuitem id="context-viewbgimage"
  468.                 label="&viewBGImageCmd.label;"
  469.                 accesskey="&viewBGImageCmd.accesskey;"
  470.                 oncommand="gContextMenu.viewBGImage(event);"
  471.                 onclick="checkForMiddleClick(this, event);"/>
  472.       <menuitem id="context-undo"
  473.                 label="&undoCmd.label;"
  474.                 accesskey="&undoCmd.accesskey;"
  475.                 command="cmd_undo"/>
  476.       <menuseparator id="context-sep-undo"/>
  477.       <menuitem id="context-cut"
  478.                 label="&cutCmd.label;"
  479.                 accesskey="&cutCmd.accesskey;"
  480.                 command="cmd_cut"/>
  481.       <menuitem id="context-copy"
  482.                 label="©Cmd.label;"
  483.                 accesskey="©Cmd.accesskey;"
  484.                 command="cmd_copy"/>
  485.       <menuitem id="context-paste"
  486.                 label="&pasteCmd.label;"
  487.                 accesskey="&pasteCmd.accesskey;"
  488.                 command="cmd_paste"/>
  489.       <menuitem id="context-delete"
  490.                 label="&deleteCmd.label;"
  491.                 accesskey="&deleteCmd.accesskey;"
  492.                 command="cmd_delete"/>
  493.       <menuseparator id="context-sep-paste"/>
  494.       <menuitem id="context-selectall"
  495.                 label="&selectAllCmd.label;"
  496.                 accesskey="&selectAllCmd.accesskey;"
  497.                 command="cmd_selectAll"/>      
  498.       <menuseparator id="context-sep-selectall"/>
  499.       <menuitem id="context-keywordfield"
  500.                 label="&keywordfield.label;"
  501.                 accesskey="&keywordfield.accesskey;"
  502.                 oncommand="AddKeywordForSearchField();"/>
  503.       <menuitem id="context-searchselect"
  504.                 accesskey="&search.accesskey;"
  505.                 oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
  506.       <menuseparator id="frame-sep"/>
  507.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  508.         <menupopup>
  509.           <menuitem id="context-showonlythisframe"
  510.                     label="&showOnlyThisFrameCmd.label;"
  511.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  512.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  513.           <menuitem id="context-openframe"
  514.                     label="&openFrameCmd.label;"
  515.                     accesskey="&openFrameCmd.accesskey;"
  516.                     oncommand="gContextMenu.openFrame();"/>
  517.           <menuitem id="context-openframeintab"
  518.                     label="&openFrameCmdInTab.label;"
  519.                     accesskey="&openFrameCmdInTab.accesskey;"
  520.                     oncommand="gContextMenu.openFrameInTab();"/>
  521.           <menuseparator/>
  522.           <menuitem id="context-reloadframe"
  523.                     label="&reloadFrameCmd.label;"
  524.                     accesskey="&reloadFrameCmd.accesskey;"
  525.                     oncommand="gContextMenu.reloadFrame();"/>
  526.           <menuseparator/>
  527.           <menuitem id="context-bookmarkframe"
  528.                     label="&bookmarkThisFrameCmd.label;"
  529.                     accesskey="&bookmarkThisFrameCmd.accesskey;"
  530.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  531.           <menuitem id="context-saveframe"
  532.                     label="&saveFrameCmd.label;"
  533.                     accesskey="&saveFrameCmd.accesskey;"
  534.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  535.           <menuseparator/>
  536.           <menuitem id="context-printframe"
  537.                     label="&printFrameCmd.label;"
  538.                     accesskey="&printFrameCmd.accesskey;"
  539.                     oncommand="gContextMenu.printFrame();"/>
  540.           <menuseparator/>
  541.           <menuitem id="context-viewframesource"
  542.                     label="&viewFrameSourceCmd.label;"
  543.                     accesskey="&viewFrameSourceCmd.accesskey;"
  544.                     oncommand="gContextMenu.viewFrameSource();"
  545.                     observes="isFrameImage"/>
  546.           <menuitem id="context-viewframeinfo"
  547.                     label="&viewFrameInfoCmd.label;"
  548.                     accesskey="&viewFrameInfoCmd.accesskey;"
  549.                     oncommand="gContextMenu.viewFrameInfo();"/>
  550.         </menupopup>
  551.       </menu>
  552.       <menuseparator id="context-sep-properties"/>
  553.       <menuitem id="context-viewpartialsource-selection"
  554.                 label="&viewPartialSourceForSelectionCmd.label;"
  555.                 accesskey="&viewPartialSourceCmd.accesskey;"
  556.                 oncommand="gContextMenu.viewPartialSource('selection');"
  557.                 observes="isImage"/>
  558.       <menuitem id="context-viewpartialsource-mathml"
  559.                 label="&viewPartialSourceForMathMLCmd.label;"
  560.                 accesskey="&viewPartialSourceCmd.accesskey;"
  561.                 oncommand="gContextMenu.viewPartialSource('mathml');"
  562.                 observes="isImage"/>
  563.       <menuitem id="context-viewsource"
  564.                 label="&viewPageSourceCmd.label;"
  565.                 accesskey="&viewPageSourceCmd.accesskey;"
  566.                 oncommand="BrowserViewSourceOfDocument(gContextMenu.browser.contentDocument);"
  567.                 observes="isImage"/>
  568.       <menuitem id="context-viewinfo"
  569.                 label="&viewPageInfoCmd.label;"
  570.                 accesskey="&viewPageInfoCmd.accesskey;"
  571.                 oncommand="gContextMenu.viewInfo();"/>
  572.       <menuitem id="context-metadata"
  573.                 label="&metadataCmd.label;"
  574.                 accesskey="&metadataCmd.accesskey;"
  575.                 oncommand="gContextMenu.showMetadata();"/>
  576.       <menuseparator id="spell-separator"/>
  577.       <menuitem id="spell-check-enabled"
  578.                 label="&spellCheckEnable.label;"
  579.                 type="checkbox"
  580.                 accesskey="&spellCheckEnable.accesskey;"
  581.                 oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
  582.       <menuitem id="spell-add-dictionaries-main"
  583.                 label="&spellAddDictionaries.label;"
  584.                 accesskey="&spellAddDictionaries.accesskey;"
  585.                 oncommand="gContextMenu.addDictionaries();"/>
  586.       <menu id="spell-dictionaries"
  587.             label="&spellDictionaries.label;"
  588.             accesskey="&spellDictionaries.accesskey;">
  589.           <menupopup id="spell-dictionaries-menu">
  590.               <menuseparator id="spell-language-separator"/>
  591.               <menuitem id="spell-add-dictionaries"
  592.                         label="&spellAddDictionaries.label;"
  593.                         accesskey="&spellAddDictionaries.accesskey;"
  594.                         oncommand="gContextMenu.addDictionaries();"/>
  595.           </menupopup>
  596.       </menu>
  597.       <menuseparator hidden="true" id="context-sep-bidi"/>
  598.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  599.                 label="&bidiSwitchTextDirectionItem.label;"
  600.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  601.                 command="cmd_switchTextDirection"/>
  602.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  603.                 label="&bidiSwitchPageDirectionItem.label;"
  604.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  605.                 oncommand="gContextMenu.switchPageDirection();"/>
  606.     </popup>
  607.  
  608.     <popup id="placesContext"/>
  609.  
  610.     <!-- Popup for site identity information -->
  611.     <panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
  612.            onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
  613.            onpopuphidden="focusAndSelectUrlBar();" norestorefocus="true"
  614.            chromedir="&locale.dir;">
  615.       <hbox id="identity-popup-container" align="top">
  616.         <image id="identity-popup-icon"/>
  617.         <vbox id="identity-popup-content-box">
  618.           <label id="identity-popup-connectedToLabel" value="&identity.connectedTo;"/>
  619.           <label id="identity-popup-connectedToLabel2"
  620.                  value="&identity.unverifiedsite2;"/>
  621.           <description id="identity-popup-content-host"/>
  622.           <label id="identity-popup-runByLabel" value="&identity.runBy;"/>
  623.           <description id="identity-popup-content-owner"/>
  624.           <description id="identity-popup-content-supplemental"/>
  625.           <description id="identity-popup-content-verifier"/>
  626.           <hbox id="identity-popup-encryption" flex="1">
  627.             <vbox>
  628.               <image id="identity-popup-encryption-icon"/>
  629.               <spacer flex="1"/>
  630.             </vbox>
  631.             <description id="identity-popup-encryption-label" flex="1"/>
  632.           </hbox>
  633.           <spacer flex="1"/>
  634.           <!-- Footer button to open security page info -->
  635.           <hbox>
  636.             <spacer flex="1"/>
  637.             <button id="identity-popup-more-info-button"
  638.                     label="&identity.moreInfoLinkText;"
  639.                     onblur="getIdentityHandler().hideIdentityPopup();"
  640.                     oncommand="getIdentityHandler().handleMoreInfoClick(event);"/>
  641.           </hbox>
  642.         </vbox>
  643.       </hbox>
  644.     </panel>
  645.  
  646.     <tooltip id="urlTooltip">
  647.       <label crop="center" flex="1"/>
  648.     </tooltip>
  649.   </popupset>
  650.  
  651.   <!-- bookmarks toolbar tooltip -->
  652.   <tooltip id="btTooltip" noautohide="true"
  653.            onpopupshowing="return BookmarksEventHandler.fillInBTTooltip(document.tooltipNode)">
  654.     <vbox id="btTooltipTextBox" flex="1">
  655.       <label id="btTitleText" class="tooltip-label" />
  656.       <label id="btUrlText" class="tooltip-label" />
  657.     </vbox>
  658.   </tooltip>
  659.  
  660.   <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons"
  661.            defaultmode="icons">
  662.     <!-- Menu -->
  663.     <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
  664.              defaultset="menubar-items,spring,throbber-box"
  665.              mode="icons" iconsize="small" defaulticonsize="small"
  666.              context="toolbar-context-menu">
  667.       <toolbaritem id="menubar-items" align="center">
  668.  
  669.        <menubar id="main-menubar"
  670.                 style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
  671.             <menu id="file-menu" label="&fileMenu.label;"
  672.                   accesskey="&fileMenu.accesskey;">
  673.               <menupopup id="menu_FilePopup" onpopupshowing="getContentAreaFrameCount();">
  674.                 <menuitem id="menu_newNavigator"
  675.                           label="&newNavigatorCmd.label;"
  676.                           accesskey="&newNavigatorCmd.accesskey;"
  677.                           key="key_newNavigator"
  678.                           command="cmd_newNavigator"/>
  679.                 <menuitem id="menu_newNavigatorTab"
  680.                           label="&tabCmd.label;"
  681.                           command="cmd_newNavigatorTab"
  682.                           key="key_newNavigatorTab"
  683.                           accesskey="&tabCmd.accesskey;"/>
  684.                 <menuitem id="menu_openLocation"
  685.                           label="&openLocationCmd.label;"
  686.                           command="Browser:OpenLocation"
  687.                           key="focusURLBar"
  688.                           accesskey="&openLocationCmd.accesskey;"/>
  689.                 <menuitem id="menu_openFile"
  690.                           label="&openFileCmd.label;"
  691.                           command="Browser:OpenFile"
  692.                           key="openFileKb"
  693.                           accesskey="&openFileCmd.accesskey;"/>
  694.                 <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;" accesskey="&closeWindow.accesskey;"/>
  695.                 <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close"/>
  696.                 <menuseparator/>
  697.                 <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"/>
  698.                 <menuitem id="menu_saveFrame" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" command="Browser:SaveFrame" hidden="true"/>
  699.                 <menuitem id="menu_sendLink"  label="&sendPageCmd.label;"  accesskey="&sendPageCmd.accesskey;"  command="Browser:SendLink"/>
  700.                 <menuseparator/>
  701.                 <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_pageSetup"/>
  702.                 <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="cmd_printPreview"/>
  703.                 <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="cmd_print"/>
  704.                 <menuseparator/>
  705.                 <menuitem label="&import.label;" accesskey="&import.accesskey;" oncommand="BrowserImport();"/>
  706.                 <menuseparator/>
  707.                 <menuitem id="goOfflineMenuitem"
  708.                           label="&goOfflineCmd.label;" accesskey="&goOfflineCmd.accesskey;" 
  709.                           type="checkbox" oncommand="BrowserOffline.toggleOfflineStatus();"/>
  710.                 <menuitem id="menu_FileQuitItem" 
  711.         label="&quitApplicationCmd.label;"
  712.         accesskey="&quitApplicationCmd.accesskey;"
  713.         key="key_quitApplication"
  714.         command="cmd_quitApplication"/>
  715.               </menupopup>
  716.             </menu>
  717.   
  718.             <menu id="edit-menu" label="&editMenu.label;"
  719.                   accesskey="&editMenu.accesskey;">
  720.               <menupopup id="menu_EditPopup"
  721.                          onpopupshowing="updateEditUIVisibility()"
  722.                          onpopuphidden="updateEditUIVisibility()">
  723.                 <menuitem label="&undoCmd.label;"
  724.                           key="key_undo"
  725.                           accesskey="&undoCmd.accesskey;"
  726.                           command="cmd_undo"/>
  727.                 <menuitem label="&redoCmd.label;"
  728.                           key="key_redo"
  729.                           accesskey="&redoCmd.accesskey;"
  730.                           command="cmd_redo"/>
  731.                 <menuseparator/>
  732.                 <menuitem label="&cutCmd.label;"
  733.                           key="key_cut"
  734.                           accesskey="&cutCmd.accesskey;"
  735.                           command="cmd_cut"/>
  736.                 <menuitem label="©Cmd.label;"
  737.                           key="key_copy"
  738.                           accesskey="©Cmd.accesskey;"
  739.                           command="cmd_copy"/>
  740.                 <menuitem label="&pasteCmd.label;"
  741.                           key="key_paste"
  742.                           accesskey="&pasteCmd.accesskey;"
  743.                           command="cmd_paste"/>
  744.                 <menuitem label="&deleteCmd.label;"
  745.                           key="key_delete"
  746.                           accesskey="&deleteCmd.accesskey;"
  747.                           command="cmd_delete"/>
  748.                 <menuseparator/>
  749.                 <menuitem id="menu_selectAll"
  750.                           label="&selectAllCmd.label;"
  751.                           key="key_selectAll"
  752.                           accesskey="&selectAllCmd.accesskey;"
  753.                           command="cmd_selectAll"/>
  754.                 <menuseparator/>
  755.                 <menuitem id="menu_find" label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="cmd_find"/>
  756.                 <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="cmd_findAgain"/>
  757.                 <menuseparator hidden="true" id="textfieldDirection-separator"/>
  758.                 <menuitem id="textfieldDirection-swap"
  759.                           command="cmd_switchTextDirection"
  760.                           key="key_switchTextDirection"
  761.                           label="&bidiSwitchTextDirectionItem.label;"
  762.                           accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  763.                           hidden="true"/>
  764.                 <menuseparator/>
  765.                 <menuitem id="menu_preferences"
  766.                           label="&preferencesCmdUnix.label;"
  767.                           accesskey="&preferencesCmdUnix.accesskey;"
  768.                           oncommand="openPreferences();"/>
  769.               </menupopup>
  770.             </menu>
  771.   
  772.             <menu id="view-menu" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  773.               <menupopup id="menu_viewPopup">
  774.                 <menu id="viewToolbarsMenu" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
  775.                       onpopupshowing="onViewToolbarsPopupShowing(event);">
  776.                   <menupopup>
  777.                     <menuseparator/>
  778.                       <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
  779.                                 command="cmd_CustomizeToolbars"/>             
  780.                   </menupopup>
  781.                 </menu>
  782.                 <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" command="cmd_toggleTaskbar" checked="true" />
  783.                 <menu id="viewSidebarMenuMenu"
  784.                       label="&viewSidebarMenu.label;"
  785.                       accesskey="&viewSidebarMenu.accesskey;">
  786.                   <menupopup id="viewSidebarMenu">
  787.                     <menuitem key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" accesskey="&bookmarksSidebarCmd.accesskey;"/>
  788.                     <menuitem key="key_gotoHistory" observes="viewHistorySidebar" label="&historyButton.label;" accesskey="&historySidebarCmd.accesskey;"/>
  789.                   </menupopup>
  790.                 </menu>
  791.                 <menuseparator/>
  792.                 <menuitem label="&stopCmd.label;"
  793.                           accesskey="&stopCmd.accesskey;"
  794.                           command="Browser:Stop"
  795.                           key="key_stop"/>
  796.                 <menuitem label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="Browser:Reload" key="key_reload"/>
  797.                 <menuseparator/>
  798.                 <menu id="viewFullZoomMenu" label="&fullZoom.label;" accesskey="&fullZoom.accesskey;" onpopupshowing="FullZoom.updateMenu();">
  799.                   <menupopup>
  800.                     <menuitem key="key_fullZoomEnlarge" label="&fullZoomEnlargeCmd.label;" accesskey="&fullZoomEnlargeCmd.accesskey;"
  801.                               command="cmd_fullZoomEnlarge"/>
  802.                     <menuitem key="key_fullZoomReduce"  label="&fullZoomReduceCmd.label;"  accesskey="&fullZoomReduceCmd.accesskey;"
  803.                               command="cmd_fullZoomReduce"/>
  804.                     <menuseparator/>
  805.                     <menuitem key="key_fullZoomReset" label="&fullZoomResetCmd.label;" accesskey="&fullZoomResetCmd.accesskey;"
  806.                               command="cmd_fullZoomReset"/>
  807.                     <menuseparator/>
  808.                     <menuitem id="toggle_zoom" label="&fullZoomToggleCmd.label;" accesskey="&fullZoomToggleCmd.accesskey;"
  809.                               type="checkbox" command="cmd_fullZoomToggle" checked="false"/>
  810.                   </menupopup>
  811.                 </menu>
  812.                 <menu id="pageStyleMenu" label="&pageStyleMenu.label;" accesskey="&pageStyleMenu.accesskey;" observes="isImage">
  813.                   <menupopup onpopupshowing="stylesheetFillPopup(this);"
  814.                              oncommand="stylesheetSwitchAll(window.content, event.target.getAttribute('data')); setStyleDisabled(false);">
  815.                     <menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
  816.                               oncommand="setStyleDisabled(true); event.stopPropagation();" type="radio"/>
  817.                     <menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"/>
  818.                     <menuseparator/>
  819.                   </menupopup>
  820.                 </menu>
  821.                 <menu id="charsetMenu"
  822.                       label="&charsetMenu.label;"
  823.                       accesskey="&charsetMenu.accesskey;"
  824.                       datasources="rdf:charset-menu"
  825.                       ref="NC:BrowserCharsetMenuRoot"
  826.                       oncommand="MultiplexHandler(event)"
  827.                       onpopupshowing="CreateMenu('browser');UpdateMenus(event)"
  828.                       onpopupshown="CreateMenu('more-menu');"
  829.                       observes="isImage">
  830.                     <template>
  831.                         <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  832.                             <menupopup>
  833.                             <menuseparator uri="..." />
  834.                             </menupopup>
  835.                         </rule>
  836.                         <rule>
  837.                             <menupopup>
  838.                             <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  839.                             </menupopup>
  840.                         </rule>
  841.                     </template>
  842.       
  843.                     <menupopup>
  844.                     <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
  845.                         <template>
  846.                             <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
  847.                                 <menupopup>
  848.                                 <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  849.                                 </menupopup>
  850.                             </rule>
  851.                         </template>
  852.                         <menupopup>
  853.                         </menupopup>
  854.                     </menu>
  855.                     <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
  856.                         <template>
  857.                             <rule>
  858.                                 <menupopup>
  859.                                 <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  860.                                 </menupopup>
  861.                             </rule>
  862.                         </template>
  863.                         <menupopup>
  864.                             <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  865.                                 <template>
  866.                                     <rule>
  867.                                         <menupopup>
  868.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  869.                                         </menupopup>
  870.                                     </rule>
  871.                                 </template>
  872.                                 <menupopup>
  873.                                 </menupopup>
  874.                             </menu>
  875.                             <menu label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  876.                                 <template>
  877.                                     <rule>
  878.                                         <menupopup>
  879.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  880.                                         </menupopup>
  881.                                     </rule>
  882.                                 </template>
  883.                                 <menupopup>
  884.                                 </menupopup>
  885.                             </menu>
  886.                             <menu label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  887.                                 <template>
  888.                                     <rule>
  889.                                         <menupopup>
  890.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  891.                                         </menupopup>
  892.                                     </rule>
  893.                                 </template>
  894.                                 <menupopup>
  895.                                 </menupopup>
  896.                             </menu>
  897.                             <menu label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  898.                                 <template>
  899.                                     <rule>
  900.                                         <menupopup>
  901.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  902.                                         </menupopup>
  903.                                     </rule>
  904.                                 </template>
  905.                                 <menupopup>
  906.                                 </menupopup>
  907.                             </menu>
  908.                             <menu label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  909.                                 <template>
  910.                                     <rule>
  911.                                         <menupopup>
  912.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  913.                                         </menupopup>
  914.                                     </rule>
  915.                                 </template>
  916.                                 <menupopup>
  917.                                 </menupopup>
  918.                             </menu>
  919.                             <menu label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
  920.                                 <template>
  921.                                     <rule>
  922.                                         <menupopup>
  923.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  924.                                         </menupopup>
  925.                                     </rule>
  926.                                 </template>
  927.                                 <menupopup>
  928.                                 </menupopup>
  929.                             </menu>
  930.                             <menuseparator />
  931.                         </menupopup>
  932.                     </menu>
  933.                     <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://global/content/customizeCharset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
  934.                     </menupopup>
  935.                 </menu>
  936.                 <menuseparator/>
  937.                 <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
  938.                 <menuitem accesskey="&fullScreenCmd.accesskey;"
  939.                           label="&fullScreenCmd.label;" key="key_fullScreen"
  940.                           id="fullScreenItem"
  941.                           type="checkbox"
  942.                           command="View:FullScreen"/>
  943.                 <menuseparator hidden="true" id="documentDirection-separator"/>
  944.                 <menuitem hidden="true" id="documentDirection-swap" 
  945.                           label="&bidiSwitchPageDirectionItem.label;"
  946.                           accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  947.                           oncommand="SwitchDocumentDirection(window.content)"/>
  948.               </menupopup>
  949.             </menu>
  950.  
  951.             <menu id="history-menu"
  952.                   oncommand="var node = event.target.node; if (node) { PlacesUIUtils.markPageAsTyped(node.uri); openUILink(node.uri, event, false, true); }"
  953.                   onclick="checkForMiddleClick(this, event);"
  954.                   label="&historyMenu.label;"
  955.                   accesskey="&historyMenu.accesskey;">
  956.               <menupopup id="goPopup"
  957.                          type="places"
  958.                          onpopupshowing="HistoryMenu.onPopupShowing(this);"
  959.                          place="place:type=0&sort=4&maxResults=10">
  960.                 <menuitem id="historyMenuBack"
  961.                           label="&backCmd.label;"
  962.                           key="goBackKb"
  963.                           chromedir="&locale.dir;"
  964.                           oncommand="BrowserBack(event, true)"
  965.                           onclick="checkForMiddleClick(this, event);">
  966.                   <observes element="Browser:Back" attribute="disabled" />
  967.                 </menuitem>
  968.                 <menuitem id="historyMenuForward"
  969.                           label="&forwardCmd.label;"
  970.                           key="goForwardKb"
  971.                           chromedir="&locale.dir;"
  972.                           oncommand="BrowserForward(event, true)"
  973.                           onclick="checkForMiddleClick(this, event);">
  974.                   <observes element="Browser:Forward" attribute="disabled" />
  975.                 </menuitem>
  976.  
  977.                 <menuitem id="historyMenuHome"
  978.                           label="&historyHomeCmd.label;"
  979.                           oncommand="BrowserGoHome(event);"
  980.                           onclick="checkForMiddleClick(this, event);"
  981.                           key="goHome"/>
  982.                 <menuitem label="&showAllHistoryCmd2.label;"
  983.                           key="showAllHistoryKb"
  984.                           command="Browser:ShowAllHistory"/>
  985.                 <menuseparator id="startHistorySeparator" builder="start"/>
  986.                 <menuseparator id="endHistorySeparator" builder="end"/>
  987.                 <menu id="historyUndoMenu" label="&historyUndoMenu.label;" disabled="true">
  988.                   <menupopup id="historyUndoPopup" onpopupshowing="HistoryMenu.populateUndoSubmenu();"/>
  989.                 </menu>
  990.               </menupopup>
  991.             </menu>
  992.  
  993.   <menu id="bookmarksMenu" 
  994.         label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
  995.         ondragenter="PlacesMenuDNDController.onBookmarksMenuDragEnter(event);"
  996.         ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDropHandler);"
  997.         ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);">
  998.     <menupopup id="bookmarksMenuPopup"
  999.                type="places"
  1000.                place="place:folder=BOOKMARKS_MENU&expandQueries=1"
  1001.                context="placesContext"
  1002.                openInTabs="children"
  1003.                oncommand="BookmarksEventHandler.onCommand(event);"
  1004.                onclick="BookmarksEventHandler.onClick(event);"
  1005.                onpopupshowing="BookmarksEventHandler.onPopupShowing(event);">
  1006.       <menuitem label="&bookmarkThisPageCmd.label;"
  1007.                 command="Browser:AddBookmarkAs" key="addBookmarkAsKb"/>
  1008.       <menuitem id="subscribeToPageMenuitem"
  1009.                 label="&subscribeToPageMenuitem.label;"
  1010.                 oncommand="return FeedHandler.subscribeToFeed(null, event);"
  1011.                 onclick="checkForMiddleClick(this, event);"
  1012.                 disabled="true"/>
  1013.       <menu id="subscribeToPageMenupopup"
  1014.             label="&subscribeToPageMenupopup.label;"
  1015.             hidden="true">
  1016.         <menupopup id="subscribeToPageSubmenuMenupopup" 
  1017.                    onpopupshowing="return FeedHandler.buildFeedList(event.target);"
  1018.                    oncommand="return FeedHandler.subscribeToFeed(null, event);"
  1019.                    onclick="checkForMiddleClick(this, event);"/>
  1020.       </menu>
  1021.       <menuitem label="&addCurPagesCmd.label;"
  1022.                 command="Browser:BookmarkAllTabs" key="bookmarkAllTabsKb"/>
  1023.       <menuitem id="bookmarksShowAll"
  1024.                 label="&organizeBookmarks.label;"
  1025.                 command="Browser:ShowAllBookmarks"
  1026.                 key="manBookmarkKb"/>
  1027.       <menuseparator id="organizeBookmarksSeparator"/>
  1028.       <menu id="bookmarksToolbarFolderMenu"
  1029.             class="menu-iconic bookmark-item"
  1030.             container="true">
  1031.         <menupopup id="bookmarksToolbarFolderPopup"
  1032.                    type="places"
  1033.                    context="placesContext"
  1034.                    onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"/>
  1035.       </menu>
  1036.       <menuseparator builder="start"/>
  1037.     </menupopup>
  1038.   </menu>
  1039.  
  1040.             <menu id="tools-menu" label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
  1041.               <menupopup id="menu_ToolsPopup">
  1042.               <menuitem label="&search.label;" accesskey="&search.accesskey;" 
  1043.                         key="key_search" command="Tools:Search"/>
  1044.               <menuseparator id="browserToolsSeparator"/>
  1045.               <menuitem id="menu_openDownloads" label="&downloads.label;"
  1046.                         accesskey="&downloads.accesskey;"
  1047.                         key="key_openDownloads" command="Tools:Downloads"/>
  1048.               <menuitem id="menu_openAddons" label="&addons.label;"
  1049.                         accesskey="&addons.accesskey;" command="Tools:Addons"/>
  1050.               <menuseparator id="devToolsSeparator"/>
  1051.               <menuitem id="javascriptConsole" 
  1052.                         label="&errorConsoleCmd.label;" accesskey="&errorConsoleCmd.accesskey;" 
  1053.                         key="key_errorConsole" oncommand="toJavaScriptConsole();"/>
  1054.               <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"   
  1055.                         key="key_viewInfo" command="View:PageInfo"/>
  1056.               <menuseparator id="sanitizeSeparator"/>
  1057.               <menuitem id="sanitizeItem"
  1058.                         accesskey="&clearPrivateDataCmd.accesskey;"
  1059.                         label="&clearPrivateDataCmd.label;"
  1060.                         key="key_sanitize" command="Tools:Sanitize"/>
  1061.               </menupopup>
  1062.             </menu>
  1063.     
  1064.           <menu id="helpMenu" />
  1065.         </menubar>
  1066.       </toolbaritem>
  1067.     </toolbar>
  1068.  
  1069.     <toolbarpalette id="BrowserToolbarPalette">
  1070.  
  1071.       <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional"
  1072.                    context="backForwardMenu"
  1073.                    onbroadcast="document.getElementById('back-forward-dropmarker').disabled =
  1074.                                   document.getElementById('Browser:Back').hasAttribute('disabled') &&
  1075.                                   document.getElementById('Browser:Forward').hasAttribute('disabled');">
  1076.         <toolbarbutton id="back-button" class="toolbarbutton-1"
  1077.                        chromedir="&locale.dir;"
  1078.                        label="&backCmd.label;"
  1079.                        oncommand="BrowserBack(event)"
  1080.                        onclick="checkForMiddleClick(this, event);"
  1081.                        tooltiptext="&backButton.tooltip;">
  1082.           <observes element="Browser:Back" attribute="disabled"/>
  1083.         </toolbarbutton>
  1084.         <toolbarbutton id="forward-button" class="toolbarbutton-1"
  1085.                        chromedir="&locale.dir;"
  1086.                        label="&forwardCmd.label;"
  1087.                        oncommand="BrowserForward(event)"
  1088.                        onclick="checkForMiddleClick(this, event);"
  1089.                        tooltiptext="&forwardButton.tooltip;">
  1090.           <observes element="Browser:Forward" attribute="disabled"/>
  1091.         </toolbarbutton>
  1092.         <toolbarbutton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"
  1093.                        disabled="true" tooltiptext="&backForwardMenu.tooltip;">
  1094.           <!-- bug 415444: event.stopPropagation is here for the cloned version of
  1095.                this menupopup -->
  1096.           <menupopup context=""
  1097.                      chromedir="&locale.dir;"
  1098.                      position="after_start"
  1099.                      onpopupshowing="return FillHistoryMenu(event.target);"
  1100.                      oncommand="gotoHistoryIndex(event); event.stopPropagation();"
  1101.                      onclick="checkForMiddleClick(this, event);"/>
  1102.         </toolbarbutton>
  1103.       </toolbaritem>
  1104.  
  1105.       <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1106.                      label="&reloadCmd.label;"
  1107.                      command="Browser:Reload"
  1108.                      tooltiptext="&reloadButton.tooltip;"/>
  1109.  
  1110.       <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1111.                      label="&stopCmd.label;"
  1112.                      command="Browser:Stop"
  1113.                      tooltiptext="&stopButton.tooltip;"/>
  1114.  
  1115.       <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1116.                      persist="class"
  1117.                      label="&homeButton.label;"
  1118.                      ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  1119.                      ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  1120.                      ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  1121.                      onclick="BrowserGoHome(event);"/>
  1122.  
  1123.       <toolbaritem id="urlbar-container" align="center" flex="400" persist="width"
  1124.                    title="&locationItem.title;" class="chromeclass-location">
  1125.         <textbox id="urlbar" flex="1"
  1126.                  chromedir="&locale.dir;"
  1127.                  type="autocomplete"
  1128.                  autocompletesearch="history"
  1129.                  autocompletepopup="PopupAutoCompleteRichResult"
  1130.                  completeselectedindex="true"
  1131.                  tabscrolling="true"
  1132.                  showcommentcolumn="true"
  1133.                  showimagecolumn="true"
  1134.                  enablehistory="true"
  1135.                  maxrows="6"
  1136.                  newlines="stripsurroundingwhitespace"
  1137.                  oninput="URLBarOnInput(event);"
  1138.                  ontextentered="return handleURLBarCommand(param);"
  1139.                  ontextreverted="return handleURLBarRevert();"
  1140.                  pageproxystate="invalid"
  1141.                  onsearchbegin="LocationBarHelpers._searchBegin();"
  1142.                  onsearchcomplete="LocationBarHelpers._searchComplete();"
  1143.                  onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
  1144.                  onblur="document.getElementById('identity-box').style.MozUserFocus = 'ignore';">
  1145.           <!-- Use onclick instead of normal popup= syntax since the popup
  1146.                code fires onmousedown, and hence eats our favicon drag events.
  1147.                We only add the identity-box button to the tab order when the location bar
  1148.                has focus, otherwise pressing F6 focuses it instead of the location bar -->
  1149.           <box id="identity-box" role="button"
  1150.                chromedir="&locale.dir;"
  1151.                onclick="getIdentityHandler().handleIdentityButtonEvent(event);"
  1152.                onkeypress="getIdentityHandler().handleIdentityButtonEvent(event);">
  1153.             <hbox align="center">
  1154.               <stack id="page-proxy-stack"
  1155.                      onclick="PageProxyClickHandler(event);">
  1156.                 <image id="urlbar-throbber" busy="false"/>
  1157.                 <image id="page-proxy-favicon" validate="never"
  1158.                        pageproxystate="invalid"
  1159.                        ondraggesture="PageProxyDragGesture(event);"
  1160.                        onerror="this.removeAttribute('src');"/>
  1161.               </stack>
  1162.               <label id="identity-icon-label"/>
  1163.             </hbox>
  1164.           </box>
  1165.           <hbox id="urlbar-icons">
  1166.             <button type="menu"
  1167.                     style="-moz-user-focus: none"
  1168.                     class="plain urlbar-icon"
  1169.                     id="feed-button"
  1170.                     chromedir="&locale.dir;"
  1171.                     onclick="return FeedHandler.onFeedButtonClick(event);">
  1172.               <menupopup position="after_end"
  1173.                          onpopupshowing="return FeedHandler.buildFeedList(this);"
  1174.                          oncommand="return FeedHandler.subscribeToFeed(null, event);"
  1175.                          onclick="checkForMiddleClick(this, event);"/>
  1176.             </button>
  1177.             <image id="safebrowsing-urlbar-icon" tooltiptext="&safeb.urlbaricon.tooltip;"
  1178.                    level="safe"
  1179.                    class="urlbar-icon"
  1180.                    onclick="goDoCommand('safebrowsing-show-warning')"/>
  1181.           <image id="star-button"
  1182.                  class="urlbar-icon"
  1183.                  onclick="PlacesStarButton.onClick(event);"/>
  1184.           <image id="go-button" chromedir="&locale.dir;"
  1185.                  class="urlbar-icon"
  1186.                  tooltiptext="&goEndCap.tooltip;"
  1187.                  onclick="handleURLBarCommand(event);"/>
  1188.           </hbox>
  1189.         </textbox>
  1190.       </toolbaritem>
  1191.  
  1192.       <toolbaritem id="search-container" title="&searchItem.title;"
  1193.                    align="center" class="chromeclass-toolbar-additional"
  1194.                    flex="100" persist="width">
  1195.         <searchbar id="searchbar" flex="1" chromedir="&locale.dir;"
  1196.                    newlines="replacewithspaces"/>
  1197.       </toolbaritem>
  1198.  
  1199.       <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1200.                      label="&printButton.label;" command="cmd_print"
  1201.                      tooltiptext="&printButton.tooltip;"/>
  1202.  
  1203.       <toolbaritem id="throbber-box" title="&throbberItem.title;" align="center" pack="center">
  1204.         <button id="navigator-throbber" disabled="true"/>
  1205.       </toolbaritem>
  1206.  
  1207.       <toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksItem.title;">
  1208.          <hbox id="bookmarksBarContent" flex="1" type="places"
  1209.                context="placesContext" asyncinit="true"
  1210.                onclick="BookmarksEventHandler.onClick(event);"
  1211.                oncommand="BookmarksEventHandler.onCommand(event);"
  1212.                onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
  1213.                tooltip="btTooltip"/>
  1214.       </toolbaritem>
  1215.  
  1216.         <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1217.                        observes="Tools:Downloads"
  1218.                        ondragdrop="nsDragAndDrop.drop(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1219.                        ondragover="nsDragAndDrop.dragOver(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1220.                        ondragenter="nsDragAndDrop.dragEnter(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1221.                        ondragexit="nsDragAndDrop.dragExit(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1222.                        label="&downloads.label;"
  1223.                        tooltiptext="&downloads.tooltip;"/>
  1224.  
  1225.         <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1226.                        observes="viewHistorySidebar" label="&historyButton.label;"
  1227.                        tooltiptext="&historyButton.tooltip;"/>
  1228.  
  1229.         <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1230.                        observes="viewBookmarksSidebar"
  1231.                        tooltiptext="&bookmarksButton.tooltip;"
  1232.                        ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
  1233.                        ondragdrop="nsDragAndDrop.drop(event, bookmarksButtonObserver);"
  1234.                        ondragexit="nsDragAndDrop.dragExit(event, bookmarksButtonObserver);"/>
  1235.  
  1236.         <toolbarbutton id="new-tab-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1237.                        label="&tabCmd.label;"
  1238.                        command="cmd_newNavigatorTab"
  1239.                        tooltiptext="&newTabButton.tooltip;"
  1240.                        ondragover="nsDragAndDrop.dragOver(event, newTabButtonObserver);"
  1241.                        ondragdrop="nsDragAndDrop.drop(event, newTabButtonObserver);"
  1242.                        ondragexit="nsDragAndDrop.dragExit(event, newTabButtonObserver);"/>
  1243.  
  1244.         <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1245.                        label="&newNavigatorCmd.label;"
  1246.                        command="key_newNavigator"
  1247.                        tooltiptext="&newWindowButton.tooltip;"
  1248.                        ondragover="nsDragAndDrop.dragOver(event, newWindowButtonObserver);"
  1249.                        ondragdrop="nsDragAndDrop.drop(event, newWindowButtonObserver);"
  1250.                        ondragexit="nsDragAndDrop.dragExit(event, newWindowButtonObserver);"/>
  1251.  
  1252.         <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1253.                        label="&cutCmd.label;"
  1254.                        command="cmd_cut"
  1255.                        tooltiptext="&cutButton.tooltip;"/>
  1256.  
  1257.         <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1258.                        label="©Cmd.label;"
  1259.                        command="cmd_copy"
  1260.                        tooltiptext="©Button.tooltip;"/>
  1261.  
  1262.         <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1263.                        label="&pasteCmd.label;"
  1264.                        command="cmd_paste"
  1265.                        tooltiptext="&pasteButton.tooltip;"/>
  1266.  
  1267.     </toolbarpalette>
  1268.  
  1269.     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
  1270.              toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
  1271.              fullscreentoolbar="true" mode="icons" iconsize="large"
  1272.              customizable="true"
  1273.              defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,fullscreenflex,window-controls"
  1274.              context="toolbar-context-menu">
  1275.       <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
  1276.       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
  1277.         <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  1278.                        tooltiptext="&fullScreenMinimize.tooltip;"
  1279.                        oncommand="window.minimize();"/>
  1280.  
  1281.         <toolbarbutton id="restore-button" class="toolbarbutton-1"
  1282.                        tooltiptext="&fullScreenRestore.tooltip;"
  1283.                        oncommand="BrowserFullScreen();"/>
  1284.  
  1285.         <toolbarbutton id="close-button" class="toolbarbutton-1"
  1286.                        tooltiptext="&fullScreenClose.tooltip;"
  1287.                        oncommand="BrowserTryToCloseWindow();"/>
  1288.       </hbox>
  1289.     </toolbar>
  1290.  
  1291.     <toolbarset id="customToolbars" context="toolbar-context-menu"/>
  1292.  
  1293.     <toolbar id="PersonalToolbar"
  1294.              mode="icons" iconsize="small" defaulticonsize="small"
  1295.              class="chromeclass-directories"
  1296.              context="toolbar-context-menu"
  1297.              defaultset="personal-bookmarks"
  1298.              toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
  1299.              customizable="true"/>
  1300.   </toolbox>
  1301.  
  1302.   <hbox flex="1" id="browser">
  1303.     <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
  1304.       <sidebarheader align="center">
  1305.         <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
  1306.         <image id="sidebar-throbber"/>
  1307.         <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
  1308.       </sidebarheader>
  1309.       <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
  1310.                 style="min-width: 14em; width: 18em; max-width: 36em;"/>
  1311.     </vbox>
  1312.  
  1313.     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  1314.     <vbox id="appcontent" flex="1">
  1315.       <tabbrowser id="content" disablehistory="true"
  1316.                   flex="1" contenttooltip="aHTMLTooltip"
  1317.                   contentcontextmenu="contentAreaContextMenu"
  1318.                   onnewtab="BrowserOpenTab();"
  1319.                   autocompletepopup="PopupAutoComplete"
  1320.                   ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
  1321.                   onclick="return contentAreaClick(event, false);"/>
  1322.     </vbox>
  1323.   </hbox>
  1324.  
  1325.   <vbox id="browser-bottombox">
  1326.     <findbar browserid="content" id="FindToolbar"/>
  1327.   
  1328.     <statusbar class="chromeclass-status" id="status-bar"
  1329.                ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  1330.       <statusbarpanel id="statusbar-display" label="" flex="1"/>
  1331.       <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
  1332.         <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  1333.       </statusbarpanel>
  1334.       <statusbarpanel id="download-monitor" class="statusbarpanel-iconic-text"
  1335.                       tooltiptext="&downloadMonitor2.tooltip;" hidden="true"
  1336.                       command="Tools:Downloads"/>
  1337.       <statusbarpanel id="security-button" class="statusbarpanel-iconic-text"
  1338.                       ondblclick="if (event.button == 0) displaySecurityInfo();"/>
  1339.       <statusbarpanel id="page-report-button" type="menu"
  1340.                       class="statusbarpanel-menu-iconic"
  1341.                       tooltiptext="&pageReportIcon.tooltip;">
  1342.         <menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  1343.           <menuitem observes="blockedPopupAllowSite"/>
  1344.           <menuitem observes="blockedPopupEditSettings"/>
  1345.           <menuitem observes="blockedPopupDontShowMessage"/>
  1346.           <menuseparator observes="blockedPopupsSeparator"/>
  1347.         </menupopup>
  1348.       </statusbarpanel>
  1349.     </statusbar>
  1350.   </vbox>
  1351. </window>
  1352.