home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / browser.jar / content / browser / browser.xul < prev    next >
Extensible Markup Language  |  2002-11-16  |  52KB  |  927 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  4. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  5.  
  6. <!DOCTYPE window [
  7. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  8. %brandDTD;
  9. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  10. %browserDTD;
  11. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  12. %globalRegionDTD;
  13. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charset.dtd" >
  14. %charsetDTD;
  15. ]>
  16.  
  17. <window id="main-window"
  18.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  19.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  20.         onload="Startup()" onunload="Shutdown()"
  21.         contenttitlesetting="true"
  22.         title="&mainWindow.title;"
  23.         titlemodifier="&mainWindow.titlemodifier;"
  24.         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  25.         windowtype="navigator:browser"
  26.         width="610" height="450"
  27.         screenX="4" screenY="4"
  28.         persist="screenX screenY width height sizemode"> 
  29.  
  30.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  31.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  32.   <script type="application/x-javascript" src="chrome://global/content/findUtils.js"/>
  33.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  34.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  35.   <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  36.   <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  37.   <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  38.  
  39.   <stringbundleset id="stringbundleset">
  40.     <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  41.     <stringbundle id="bundle_browser_region" src="chrome://navigator-region/locale/region.properties"/>
  42.     <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  43.   </stringbundleset>
  44.  
  45.   <commandset commandupdater="true"
  46.               events="focus"
  47.               oncommandupdate="goUpdateGlobalEditMenuItems()"/>
  48.   <commandset commandupdater="true"
  49.               events="select"
  50.               oncommandupdate="goUpdateSelectEditMenuItems()"/>
  51.   <commandset commandupdater="true"
  52.               events="undo"
  53.               oncommandupdate="goUpdateUndoEditMenuItems()"/>
  54.   <commandset commandupdater="true"
  55.               events="clipboard"
  56.               oncommandupdate="goUpdatePasteMenuItems()"/>
  57.   
  58.   <commandset id="mainCommandSet">
  59.     <command id="cmd_newNavigator"
  60.              oncommand="OpenBrowserWindow()"/>
  61.     <command id="cmd_bm_open"                      oncommand="goDoCommand('cmd_bm_open');"/>
  62.     <command id="cmd_bm_openinnewwindow"           oncommand="goDoCommand('cmd_bm_openinnewwindow');"/>
  63.     <command id="cmd_bm_openinnewtab"              oncommand="goDoCommand('cmd_bm_openinnewtab');"/>
  64.     <command id="cmd_bm_expandfolder"              oncommand="goDoCommand('cmd_bm_expandfolder');"/>
  65.     <command id="cmd_bm_openfolder"                oncommand="goDoCommand('cmd_bm_openfolder');"/>
  66.     <command id="cmd_bm_managefolder"              oncommand="goDoCommand('cmd_bm_managefolder');"/>
  67.     <command id="cmd_bm_newfolder"                 oncommand="goDoCommand('cmd_bm_newfolder');"/>
  68.     <command id="cmd_bm_newbookmark"               oncommand="goDoCommand('cmd_bm_newbookmark');"/>
  69.     <command id="cmd_bm_newseparator"              oncommand="goDoCommand('cmd_bm_newseparator');"/>
  70.     <command id="cmd_bm_find"                      oncommand="goDoCommand('cmd_bm_find');"/>
  71.     <command id="cmd_bm_properties"                oncommand="goDoCommand('cmd_bm_properties');"/>
  72.     <command id="cmd_bm_rename"                    oncommand="goDoCommand('cmd_bm_rename');"/>
  73.     <command id="cmd_bm_moveBookmark"              oncommand="goDoCommand('cmd_bm_moveBookmark');"/>
  74.     <command id="cmd_bm_cut"                       oncommand="goDoCommand('cmd_bm_cut');"/>
  75.     <command id="cmd_bm_copy"                      oncommand="goDoCommand('cmd_bm_copy');"/>
  76.     <command id="cmd_bm_paste"                     oncommand="goDoCommand('cmd_bm_paste');"/>
  77.     <command id="cmd_bm_delete"                    oncommand="goDoCommand('cmd_bm_delete');"/>
  78.  
  79.     <command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
  80.     <command id="Browser:OpenFile"  oncommand="BrowserOpenFileWindow();"/>
  81.     <command id="Browser:SavePage" oncommand="saveDocument(window._content.document);"/>
  82.     <command id="Browser:Print" oncommand="BrowserPrint();"/>
  83.     <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
  84.     <command id="cmd_closeWindow" oncommand="BrowserCloseWindow()"/>
  85.     <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
  86.   
  87.     <command id="cmd_copyLink"
  88.              oncommand="goDoCommand('cmd_copyLink')"
  89.              disabled="false"/>
  90.     <command id="cmd_copyImageLocation"
  91.              oncommand="goDoCommand('cmd_copyImageLocation')"
  92.              disabled="false"/>
  93.     <command id="cmd_copyImageContents"
  94.              oncommand="goDoCommand('cmd_copyImageContents')"
  95.              disabled="false"/>
  96.     <command id="cmd_undo" 
  97.              oncommand="goDoCommand('cmd_undo')"
  98.              disabled="true"/>
  99.     <command id="cmd_redo" 
  100.              oncommand="goDoCommand('cmd_redo')"
  101.              disabled="true"/>
  102.     <command id="cmd_cut" 
  103.              oncommand="goDoCommand('cmd_cut')"
  104.              disabled="true"/>
  105.     <command id="cmd_copy" 
  106.              oncommand="goDoCommand('cmd_copy')"
  107.              disabled="true"/>
  108.     <command id="cmd_paste" 
  109.              oncommand="goDoCommand('cmd_paste')"
  110.              disabled="true"/>
  111.     <command id="cmd_delete"
  112.              oncommand="goDoCommand('cmd_delete')"
  113.              valueDefault="&deleteCmd.label;"
  114.              disabled="true"/>
  115.     <command id="cmd_selectAll"
  116.              oncommand="goDoCommand('cmd_selectAll')"
  117.              disabled="true"/>
  118.  
  119.     <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(_content.document);"/>
  120.     <command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
  121.     <command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
  122.     <command id="Browser:Find" oncommand="BrowserFind();"/>
  123.     <command id="Browser:FindAgain" oncommand="BrowserFindAgain(false);"/>
  124.     <command id="Browser:AddBookmarkAs" oncommand="addBookmarkAs(document.getElementById('content'));"/>
  125.     <command id="Browser:Home"    oncommand="BrowserHome();"/>
  126.     <command id="Browser:Back"    oncommand="BrowserBack();" disabled="true"/>
  127.     <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
  128.     <command id="Browser:Stop"    oncommand="BrowserStop();" disabled="true"/>
  129.     <command id="cmd_textZoomReduce"  oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  130.     <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  131.     <command id="Browser:OpenLocation" oncommand="openLocation();"/>
  132.   </commandset>
  133.  
  134.   <broadcasterset id="mainBroadcasterSet">
  135.     <broadcaster id="viewDownloadsSidebar" autoCheck="false" label="&downloadsButton.label;"
  136.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/downloads/downloadPanel.xul"
  137.                  sidebartitle="¤tDownloads.label;"
  138.                  oncommand="toggleSidebar('viewDownloadsSidebar');"/>
  139.  
  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.     <broadcaster id="viewHistorySidebar" autoCheck="false" label="&historyButton.label;"
  145.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/history/history-panel.xul"
  146.                  oncommand="toggleSidebar('viewHistorySidebar');"/>
  147.   </broadcasterset>
  148.  
  149.   <keyset id="mainKeyset">
  150.     <key id="key_newNavigator"
  151.          key="&newNavigatorCmd.key;"
  152.          command="cmd_newNavigator"
  153.          modifiers="accel"/>
  154.     <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
  155.     <key id="focusURLBar"      key="&openCmd.commandkey;" command="Browser:OpenLocation"
  156.          modifiers="accel"/>
  157.     <key id="focusURLBar2"      key="&openCmd2.commandkey;" command="Browser:OpenLocation"
  158.          modifiers="alt"/>
  159.     <key id="focusSearchBar"     key="&searchFocus.commandkey;" oncommand="focusSearchBar();" modifiers="accel"/>
  160.     <key id="openFileKb"         key="&openFileCmd.commandkey;" command="Browser:OpenFile"  modifiers="accel"/>
  161.     <key id="key_savePage"       key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
  162.     <key id="printKb"            key="&printCmd.commandkey;" command="Browser:Print"  modifiers="accel"/>
  163.     <key id="key_close"  key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
  164.     <key id="key_closeWindow"  key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
  165.     <key id="key_undo"
  166.          key="&undoCmd.key;"
  167.          modifiers="accel"/>
  168.     <key id="key_redo"
  169.          key="&redoCmd.key;"
  170.          modifiers="accel"/>
  171.     <key id="key_cut"
  172.          key="&cutCmd.key;"
  173.          modifiers="accel"/>
  174.     <key id="key_copy"
  175.          key="©Cmd.key;"
  176.          modifiers="accel"/>
  177.     <key id="key_paste"
  178.          key="&pasteCmd.key;"
  179.          modifiers="accel"/>
  180.     <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  181.     <key keycode="&findAgainCmd.commandkey2;" command="Browser:FindAgain"/>
  182.     <key keycode="&findPrevCmd.commandkey2;"  oncommand="BrowserFindAgain(true);" modifiers="shift"/>
  183.  
  184.     <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
  185.     <key id="goBackKb"  keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
  186.     <key id="goForwardKb"  keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
  187.  
  188.     <key keycode="VK_F5" oncommand="BrowserReload();"/>
  189.     <key keycode="VK_F5" modifiers="control" oncommand="BrowserReloadSkipCache();"/>
  190.  
  191.     <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
  192.  
  193.     <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
  194.     <key id="key_reload"  key="&reloadCmd.commandkey;" oncommand="BrowserReload();" modifiers="accel"/>
  195.     <key key="&reloadCmd.commandkey;" oncommand="BrowserReloadSkipCache();" modifiers="accel,shift"/>
  196.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
  197.     <key id="key_viewInfo"   key="&pageInfoCmd.commandkey;"   command="View:PageInfo"   modifiers="accel"/>
  198.     <key id="key_find"              key="&findOnCmd.commandkey;" command="Browser:Find" modifiers="accel"/>
  199.     <key id="key_findAgain"         key="&findAgainCmd.commandkey;" command="Browser:FindAgain" modifiers="accel"/>
  200.     <key id="addBookmarkAsKb" key="&addCurPageAsCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
  201.     <key id="viewBookmarksSidebarKb" key="&manBookmarksCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  202.     <key id="key_stop" keycode="VK_ESCAPE" command="Browser:Stop"/>
  203.     <key id="key_gotoHistory"  key="&history.commandKey;"  command="viewHistorySidebar" modifiers="accel"/>
  204.     <key id="key_textZoomReduce"  key="&textZoomReduceCmd.commandkey;"   command="cmd_textZoomReduce"  modifiers="accel"/>
  205.     <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"  command="cmd_textZoomEnlarge" modifiers="accel"/>
  206.     <key                          key="&textZoomEnlargeCmd.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  207.     <key                          key="&textZoomResetCmd.commandkey;"    oncommand="ZoomManager.prototype.getInstance().reset();"   modifiers="accel"/>
  208.     <key id="key_openDownloadsSidebar" key="&openDownloadsSidebar.commandkey;" command="viewDownloadsSidebar" modifiers="accel"/>
  209.   </keyset>
  210.   
  211.   <popupset id="mainPopupSet">
  212.     <popup id="backMenu" position="after_start" onpopupshowing="return BrowserBackMenu(event);" oncommand="gotoHistoryIndex(event);"/>
  213.     <popup id="forwardMenu" position="after_start" onpopupshowing="return BrowserForwardMenu(event);" oncommand="gotoHistoryIndex(event);"/>
  214.     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
  215.  
  216.     <popup id="SearchBarPopup" position="after_start"
  217.            datasources="rdf:internetsearch" ref="NC:SearchEngineRoot" 
  218.            oncommand="return SearchBarPopupCommand(event);"
  219.            onpopupshowing="return SearchBarPopupShowing(event);">
  220.       <menuitem id="miSearchModeFind" type="checkbox"
  221.                 label="&findOnSearchBarCmd.label;" accesskey="&findOnCmd.accesskey;"/>
  222.       <menuseparator/>
  223.  
  224.       <template>
  225.         <menuitem type="checkbox"
  226.                   uri="..." value="..."
  227.                   src="rdf:http://home.netscape.com/NC-rdf#Icon"
  228.                   label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  229.       </template>
  230.     </popup>
  231.  
  232.     <popup type="autocomplete" id="PopupAutoComplete"/>
  233.  
  234.     <popup id="toolbar-context-menu">
  235.       <menuitem command="cmd_CustomizeToolbars"
  236.                 label="&viewCustomizeToolbar.label;"
  237.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  238.     </popup>
  239.  
  240.     <popup id="contentAreaContextMenu"
  241.            onpopupshowing="gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
  242.            onpopuphiding="gContextMenu = null;">
  243.       <menuitem id="context-openlink"
  244.                 label="&openLinkCmd.label;"
  245.                 accesskey="&openLinkCmd.accesskey;"
  246.                 oncommand="gContextMenu.openLink();"/>
  247.       <menuitem id="context-openlinkintab"
  248.                 label="&openLinkCmdInTab.label;"
  249.                 accesskey="&openLinkCmdInTab.accesskey;"
  250.                 oncommand="gContextMenu.openLinkInTab();"/>
  251.       <menuseparator id="context-sep-open"/>
  252.       <menuitem id="context-bookmarklink"
  253.                 label="&bookmarkLinkCmd.label;"
  254.                 accesskey="&bookmarkLinkCmd.accesskey;"
  255.                 oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
  256.                                                       gContextMenu.linkText(), 
  257.                                                       undefined, true);"/>
  258.       <menuitem id="context-savelink"
  259.                 label="&saveLinkCmd.label;"
  260.                 accesskey="&saveLinkCmd.accesskey;"
  261.                 oncommand="gContextMenu.saveLink();"/>
  262.       <menuitem id="context-copyemail"
  263.                 label="©EmailCmd.label;"
  264.                 accesskey="©EmailCmd.accesskey;"
  265.                 oncommand="gContextMenu.copyEmail();"/>
  266.       <menuitem id="context-copylink"
  267.                 label="©LinkCmd.label;"
  268.                 accesskey="©LinkCmd.accesskey;"
  269.                 command="cmd_copyLink"/>
  270.       <menuseparator id="context-sep-copylink"/>
  271.       <menuitem id="context-viewimage"
  272.                 label="&viewImageCmd.label;"
  273.                 accesskey="&viewImageCmd.accesskey;"
  274.                 oncommand="gContextMenu.viewImage();"/>
  275.       <menuitem id="context-copyimage"
  276.                 label="©ImageCmd.label;"
  277.                 accesskey="©ImageCmd.accesskey;"
  278.                 command="cmd_copyImageLocation"/>
  279.       <menuseparator id="context-sep-copyimage"/>
  280.       <menuitem id="context-saveimage"
  281.                 label="&saveImageCmd.label;"
  282.                 accesskey="&saveImageCmd.accesskey;"
  283.                 oncommand="gContextMenu.saveImage();"/>
  284.       <menuitem id="context-setWallpaper"
  285.                 label="&setWallpaperCmd.label;"
  286.                 accesskey="&setWallpaperCmd.accesskey;"
  287.                 oncommand="gContextMenu.setWallpaper();"/>
  288.  
  289. <!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
  290.       <menuitem id="context-blockimage"
  291.                 label="&blockImageCmd.label;" class="menuitem-iconic"
  292.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
  293.       <menuitem id="context-back"
  294.                 label="&backCmd.label;"
  295.                 accesskey="&backCmd.accesskey;"
  296.                 command="Browser:Back"/>
  297.       <menuitem id="context-forward"
  298.                 label="&forwardCmd.label;"
  299.                 accesskey="&forwardCmd.accesskey;"
  300.                 command="Browser:Forward"/>
  301.       <menuitem id="context-reload"
  302.                 label="&reloadCmd.label;"
  303.                 accesskey="&reloadCmd.accesskey;"
  304.                 oncommand="BrowserReload();"/>
  305.       <menuitem id="context-stop"
  306.                 label="&stopCmd.label;"
  307.                 accesskey="&stopCmd.accesskey;"
  308.                 command="Browser:Stop"/>
  309.       <menuseparator id="context-sep-stop"/>
  310.       <menuitem id="context-bookmarkpage"
  311.                 label="&bookmarkPageCmd.label;"
  312.                 accesskey="&bookmarkPageCmd.accesskey;"
  313.                 oncommand="addBookmarkAs(document.getElementById('content'));"/>
  314.       <menuitem id="context-savepage"
  315.                 label="&savePageCmd.label;"
  316.                 accesskey="&savePageCmd.accesskey;"
  317.                 oncommand="saveDocument(window._content.document);"/>
  318.       <menuseparator id="context-sep-viewbgimage"/>  
  319.       <menuitem id="context-viewbgimage"
  320.                 label="&viewBGImageCmd.label;"
  321.                 accesskey="&viewBGImageCmd.accesskey;"
  322.                 oncommand="gContextMenu.viewBGImage();"/>
  323.       <menuitem id="context-undo"
  324.                 label="&undoCmd.label;"
  325.                 accesskey="&undoCmd.accesskey;"
  326.                 command="cmd_undo"/>
  327.       <menuseparator id="context-sep-undo"/>
  328.       <menuitem id="context-cut"
  329.                 label="&cutCmd.label;"
  330.                 accesskey="&cutCmd.accesskey;"
  331.                 command="cmd_cut"/>
  332.       <menuitem id="context-copy"
  333.                 label="©Cmd.label;"
  334.                 accesskey="©Cmd.accesskey;"
  335.                 command="cmd_copy"/>
  336.       <menuitem id="context-paste"
  337.                 label="&pasteCmd.label;"
  338.                 accesskey="&pasteCmd.accesskey;"
  339.                 command="cmd_paste"/>
  340.       <menuitem id="context-delete"
  341.                 label="&deleteCmd.label;"
  342.                 accesskey="&deleteCmd.accesskey;"
  343.                 command="cmd_delete"/>
  344.       <menuseparator id="context-sep-paste"/>
  345.       <menuitem id="context-selectall"
  346.                 label="&selectAllCmd.label;"
  347.                 accesskey="&selectAllCmd.accesskey;"
  348.                 command="cmd_selectAll"/>      
  349.       <menuseparator id="context-sep-selectall"/>
  350.       <menuitem id="context-searchselect"
  351.                 accesskey="&search.accesskey;"
  352.                 oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true);"/>
  353.       <menuseparator id="frame-sep"/>
  354.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  355.         <menupopup>
  356.           <menuitem label="&showOnlyThisFrameCmd.label;"
  357.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  358.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  359.           <menuitem label="&openFrameCmd.label;"
  360.                     accesskey="&openFrameCmd.accesskey;"
  361.                     oncommand="gContextMenu.openFrame();"/>
  362.           <menuitem label="&openFrameCmdInTab.label;"
  363.                     accesskey="&openFrameCmdInTab.accesskey;"
  364.                     oncommand="gContextMenu.openFrameInTab();"/>
  365.           <menuseparator/>
  366.           <menuitem label="&reloadFrameCmd.label;"
  367.                     accesskey="&reloadFrameCmd.accesskey;"
  368.                     oncommand="gContextMenu.reloadFrame();"/>
  369.           <menuseparator/>
  370.           <menuitem label="&bookmarkFrameCmd.label;"
  371.                     accesskey="&bookmarkFrameCmd.accesskey;"
  372.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  373.           <menuitem label="&saveFrameCmd.label;"
  374.                     accesskey="&saveFrameCmd.accesskey;"
  375.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  376.           <menuseparator/>
  377.           <menuitem label="&viewFrameSourceCmd.label;"
  378.                     accesskey="&viewFrameSourceCmd.accesskey;"
  379.                     oncommand="gContextMenu.viewFrameSource();"/>
  380.           <menuitem label="&viewFrameInfoCmd.label;"
  381.                     accesskey="&viewFrameInfoCmd.accesskey;"
  382.                     oncommand="gContextMenu.viewFrameInfo();"/>        
  383.         </menupopup>
  384.       </menu>
  385.       <menuseparator id="context-sep-properties"/>
  386.       <menuitem id="context-viewpartialsource-selection"
  387.                 label="&viewPartialSourceForSelectionCmd.label;"
  388.                 accesskey="&viewPartialSourceCmd.accesskey;"
  389.                 oncommand="gContextMenu.viewPartialSource('selection');"/>
  390.       <menuitem id="context-viewpartialsource-mathml"
  391.                 label="&viewPartialSourceForMathMLCmd.label;"
  392.                 accesskey="&viewPartialSourceCmd.accesskey;"
  393.                 oncommand="gContextMenu.viewPartialSource('mathml');"/>
  394.       <menuitem id="context-viewsource"
  395.                 label="&viewPageSourceCmd.label;"
  396.                 accesskey="&viewPageSourceCmd.accesskey;"
  397.                 oncommand="BrowserViewSourceOfDocument(_content.document);"/>
  398.       <menuitem id="context-viewinfo"
  399.                 label="&viewPageInfoCmd.label;"
  400.                 accesskey="&viewPageInfoCmd.accesskey;"
  401.                 oncommand="gContextMenu.viewInfo();"/>
  402.       <menuitem id="context-metadata"
  403.                 label="&metadataCmd.label;"
  404.                 accesskey="&metadataCmd.accesskey;"
  405.                 oncommand="gContextMenu.showMetadata();"/>
  406.     </popup>
  407.   </popupset>
  408.  
  409.   <!-- Total hack. Used by the Go menu to build up items. -->
  410.   <tree id="hiddenHistoryTree" hidden="true" collapsed="true" datasources="rdf:null"
  411.         flags="dont-build-content"
  412.         hidecolumnpicker="true">
  413.     <template>
  414.       <rule>
  415.         <treechildren>
  416.           <treeitem uri="rdf:*" rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  417.             <treerow>
  418.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  419.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Date" hidden="true"/>
  420.             </treerow>
  421.           </treeitem>
  422.         </treechildren>
  423.       </rule>
  424.     </template>
  425.     <treecols id="hiddenHistoryTreeCols">
  426.       <treecol flex="1" id="Name"
  427.                hideheader="true" primary="true"/>
  428.       <treecol id="Date" hidden="true" hideheader="true"
  429.                sort="rdf:http://home.netscape.com/NC-rdf#Date" sortActive="true" sortDirection="descending"/>
  430.     </treecols>
  431.   </tree>
  432.  
  433.   <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons" iconsize="small">
  434.     <!-- Menu -->
  435.       <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
  436.                defaultset="menubar-items" mode="icons" iconsize="small">
  437.         <toolbaritem id="menubar-items" align="center">
  438.           <menubar id="main-menubar" style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
  439.             <menu label="&fileMenu.label;"
  440.                   accesskey="&fileMenu.accesskey;">
  441.               <menupopup id="menu_FilePopup" onpopupshowing="getContentAreaFrameCount();">
  442.                 <menuitem label="&newNavigatorCmd.label;"
  443.                           accesskey="&newNavigatorCmd.accesskey;"
  444.                           key="key_newNavigator"
  445.                           command="cmd_newNavigator"/>
  446.                 <menuitem command="cmd_newNavigatorTab" key="key_newNavigatorTab"
  447.                           label="&tabCmd.label;" accesskey="&tabCmd.accesskey;"/>
  448.                 <menuitem label="&openFileCmd.label;" accesskey="&openFileCmd.accesskey;" key="openFileKb" command="Browser:OpenFile"/>
  449.                 <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close"/>
  450.                 <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;"/>
  451.                 <menuseparator/>
  452.                 <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"/>
  453.                 <menuitem id="menu_saveFrame" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" oncommand="saveFrameDocument();" hidden="true"/>
  454.                 <menuseparator/>
  455.                 <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" oncommand="BrowserPrintSetup();"/>
  456.                 <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" oncommand="BrowserPrintPreview();"/>
  457.                 <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="Browser:Print"/>
  458.                 <menuseparator/>
  459.                 <menuitem label="&quitApplicationCmd.label;" id="menu_FileQuitItem"
  460.                           accesskey="&quitApplicationCmd.accesskey;" oncommand="goQuitApplication();"/>
  461.               </menupopup>
  462.             </menu>
  463.   
  464.             <menu label="&editMenu.label;"
  465.                   accesskey="&editMenu.accesskey;">
  466.               <menupopup id="menu_EditPopup">
  467.                 <menuitem label="&undoCmd.label;"
  468.                           key="key_undo"
  469.                           accesskey="&undoCmd.accesskey;"
  470.                           command="cmd_undo"/>
  471.                 <menuitem label="&redoCmd.label;"
  472.                           key="key_redo"
  473.                           accesskey="&redoCmd.accesskey;"
  474.                           command="cmd_redo"/>
  475.                 <menuseparator/>
  476.                 <menuitem label="&cutCmd.label;"
  477.                           key="key_cut"
  478.                           accesskey="&cutCmd.accesskey;"
  479.                           command="cmd_cut"/>
  480.                 <menuitem label="©Cmd.label;"
  481.                           key="key_copy"
  482.                           accesskey="©Cmd.accesskey;"
  483.                           command="cmd_copy"/>
  484.                 <menuitem label="&pasteCmd.label;"
  485.                           key="key_paste"
  486.                           accesskey="&pasteCmd.accesskey;"
  487.                           command="cmd_paste"/>
  488.                 <menuitem label="&deleteCmd.label;"
  489.                           key="key_delete"
  490.                           accesskey="&deleteCmd.accesskey;"
  491.                           command="cmd_delete"/>
  492.                 <menuseparator/>
  493.                 <menuitem label="&selectAllCmd.label;"
  494.                           key="key_selectAll"
  495.                           accesskey="&selectAllCmd.accesskey;"
  496.                           command="cmd_selectAll"/>
  497.                 <menuseparator/>
  498.                 <menuitem label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="Browser:Find"/>
  499.                 <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="Browser:FindAgain"/>
  500.               </menupopup>
  501.             </menu>
  502.   
  503.             <menu label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  504.               <menupopup id="menu_viewPopup">
  505.                 <menu label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
  506.                       onpopupshowing="onViewToolbarsPopupShowing(event);">
  507.                   <menupopup onpopupshowing="updateToolbarStates(this);"> 
  508.                     <menuseparator/>
  509.                       <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
  510.                                 command="cmd_CustomizeToolbars"/>             
  511.                   </menupopup>
  512.                 </menu>
  513.                 <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" oncommand="goToggleToolbar('status-bar','toggle_taskbar');" checked="true" />
  514.                 <menu label="&viewSidebarMenu.label;"
  515.                       accesskey="&viewSidebarMenu.accesskey;">
  516.                   <menupopup id="viewSidebarMenu">
  517.                     <menuitem key="key_openDownloadsSidebar" observes="viewDownloadsSidebar"/>
  518.                     <menuitem key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar"/>
  519.                     <menuitem key="key_gotoHistory" observes="viewHistorySidebar"/>
  520.                   </menupopup>
  521.                 </menu>            
  522.                 <menuseparator/>
  523.                 <menuitem label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" key="key_stop"/>
  524.                 <menuitem accesskey="&reloadCmd.accesskey;" key="key_reload" label="&reloadCmd.label;" oncommand="BrowserReload();"/>
  525.                 <menuseparator/>
  526.                 <menuitem key="key_textZoomEnlarge" label="&textZoomEnlargeCmd.label;" accesskey="&textZoomEnlargeCmd.accesskey;"
  527.                           command="cmd_textZoomEnlarge"/>
  528.                 <menuitem key="key_textZoomReduce"  label="&textZoomReduceCmd.label;"  accesskey="&textZoomReduceCmd.accesskey;"
  529.                           command="cmd_textZoomReduce"/>
  530.                 <menu label="&charsetMenu.label;" accesskey="&charsetMenu.accesskey;"
  531.                       datasources="rdf:charset-menu" ref="NC:BrowserCharsetMenuRoot"
  532.                       oncommand="MultiplexHandler(event)" onpopupshowing="CreateMenu('browser');UpdateMenus(event)" onpopupshown="CreateMenu('more-menu');">
  533.                     <template>
  534.                         <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  535.                             <menupopup>
  536.                             <menuseparator uri="..." />
  537.                             </menupopup>
  538.                         </rule>
  539.                         <rule>
  540.                             <menupopup>
  541.                             <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  542.                             </menupopup>
  543.                         </rule>
  544.                     </template>
  545.       
  546.                     <menupopup>
  547.                     <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
  548.                         <template>
  549.                             <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
  550.                                 <menupopup>
  551.                                 <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  552.                                 </menupopup>
  553.                             </rule>
  554.                         </template>
  555.                         <menupopup>
  556.                         </menupopup>
  557.                     </menu>
  558.                     <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
  559.                         <template>
  560.                             <rule>
  561.                                 <menupopup>
  562.                                 <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  563.                                 </menupopup>
  564.                             </rule>
  565.                         </template>
  566.                         <menupopup>
  567.                             <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  568.                                 <template>
  569.                                     <rule>
  570.                                         <menupopup>
  571.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  572.                                         </menupopup>
  573.                                     </rule>
  574.                                 </template>
  575.                                 <menupopup>
  576.                                 </menupopup>
  577.                             </menu>
  578.                             <menu label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  579.                                 <template>
  580.                                     <rule>
  581.                                         <menupopup>
  582.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  583.                                         </menupopup>
  584.                                     </rule>
  585.                                 </template>
  586.                                 <menupopup>
  587.                                 </menupopup>
  588.                             </menu>
  589.                             <menu label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  590.                                 <template>
  591.                                     <rule>
  592.                                         <menupopup>
  593.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  594.                                         </menupopup>
  595.                                     </rule>
  596.                                 </template>
  597.                                 <menupopup>
  598.                                 </menupopup>
  599.                             </menu>
  600.                             <menu label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  601.                                 <template>
  602.                                     <rule>
  603.                                         <menupopup>
  604.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  605.                                         </menupopup>
  606.                                     </rule>
  607.                                 </template>
  608.                                 <menupopup>
  609.                                 </menupopup>
  610.                             </menu>
  611.                             <menu label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  612.                                 <template>
  613.                                     <rule>
  614.                                         <menupopup>
  615.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  616.                                         </menupopup>
  617.                                     </rule>
  618.                                 </template>
  619.                                 <menupopup>
  620.                                 </menupopup>
  621.                             </menu>
  622.                             <menuseparator />
  623.                         </menupopup>
  624.                     </menu>
  625.                     <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://communicator/content/pref/pref-charset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
  626.                     </menupopup>
  627.                 </menu>
  628.                 <menuseparator/>
  629.                 <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
  630.                   <menuitem accesskey="&fullScreenCmd.accesskey;"
  631.                             label="&fullScreenCmd.label;" key="key_fullScreen"
  632.                             command="View:FullScreen"/>
  633.               </menupopup>
  634.             </menu>
  635.   
  636.             <menu label="&goMenu.label;" accesskey="&goMenu.accesskey;" oncommand="var url = event.target.getAttribute('url'); if (url) openTopWin(url);">
  637.               <menupopup id="goPopup" onpopupshowing="updateGoMenu(this);" onpopuphiding="onGoMenuHidden();">
  638.                 <menuitem label="&backCmd.label;"    accesskey="&backCmd.accesskey;"    key="goBackKb"    command="Browser:Back"/>
  639.                 <menuitem label="&forwardCmd.label;" accesskey="&forwardCmd.accesskey;" key="goForwardKb" command="Browser:Forward"/>
  640.                 <menuitem label="&goHomeCmd.label;"    accesskey="&goHomeCmd.accesskey;"    command="Browser:Home" key="goHome"/>
  641.                 <menuseparator id="startHistorySeparator"/>
  642.                 <menuseparator hidden="true" id="endHistorySeparator"/>
  643.                 <menuitem accesskey="&historyCmd.accesskey;" command="viewHistorySidebar" key="key_gotoHistory"/>
  644.               </menupopup>
  645.             </menu>
  646.  
  647.             <menu id="bookmarks-menu" label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;" 
  648.                   datasources="rdf:bookmarks rdf:files rdf:localsearch rdf:internetsearch" 
  649.                   ref="NC:BookmarksRoot" flags="dont-test-empty"
  650.                   onpopupshowing="document.getElementById('bookmarks-toolbar').showOpenInTabsMenuItem(event.originalTarget)"
  651.                   onpopuphidden="document.getElementById('bookmarks-toolbar').hideOpenInTabsMenuItem(event.originalTarget)"
  652.                   oncommand="BookmarksUtils.loadBookmarkBrowser(event, event.originalTarget, this.database)"
  653.                   onclick="BookmarksUtils.loadBookmarkBrowserMiddleClick(event, this.database)"
  654.                   ondraggesture="nsDragAndDrop.startDrag(event, personalToolbarDNDObserver)"
  655.                   ondragdrop="nsDragAndDrop.drop(event, personalToolbarDNDObserver); event.preventBubble()"
  656.                   ondragenter="nsDragAndDrop.dragEnter(event, personalToolbarDNDObserver); event.preventBubble()"
  657.                   ondragexit="nsDragAndDrop.dragExit(event, personalToolbarDNDObserver); event.preventBubble()"
  658.                   ondragover="nsDragAndDrop.dragOver(event, personalToolbarDNDObserver); event.preventBubble()">
  659.               <template xmlns:nc="http://home.netscape.com/NC-rdf#">
  660.                 <rule iscontainer="true" isempty="true"
  661.                       rdf:type="http://home.netscape.com/NC-rdf#Folder">
  662.                   <menupopup>
  663.                     <menu class="menu-iconic bookmark-item" uri="rdf:*" 
  664.                           type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  665.                           label="rdf:http://home.netscape.com/NC-rdf#Name">
  666.                       <menupopup>
  667.                         <menuitem label="&emptyItem.label;" disabled="true"/>
  668.                       </menupopup>
  669.                     </menu>
  670.                   </menupopup>
  671.                 </rule>
  672.                 <rule iscontainer="true">
  673.                   <menupopup>
  674.                     <menu class="menu-iconic bookmark-item" uri="rdf:*"
  675.                           label="rdf:http://home.netscape.com/NC-rdf#Name"
  676.                           type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  677.                       <menupopup />
  678.                     </menu>
  679.                   </menupopup>
  680.                 </rule>
  681.                 <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  682.                   <menupopup> 
  683.                     <menuseparator uri="rdf:*" />
  684.                   </menupopup>
  685.                 </rule>
  686.                 <rule>
  687.                   <menupopup>
  688.                     <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  689.                               label="rdf:http://home.netscape.com/NC-rdf#Name" 
  690.                               image="rdf:http://home.netscape.com/NC-rdf#Icon"
  691.                               status="rdf:http://home.netscape.com/WEB-rdf#status"/>
  692.                   </menupopup>
  693.                 </rule>
  694.               </template>
  695.               <menupopup>
  696.                 <menuitem key="addBookmarkAsKb"
  697.                           label="&addCurPageAsCmd.label;"
  698.                           accesskey="&addCurPageAsCmd.accesskey;"
  699.                           command="Browser:AddBookmarkAs"/>
  700.                 <menuitem key="manBookmarkKb" 
  701.                           label="&manBookmarksCmd.label;"
  702.                           accesskey="&manBookmarksCmd.accesskey;"    
  703.                           oncommand="toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');"/>
  704.                 <menuseparator/>
  705.               </menupopup>
  706.             </menu>
  707.         
  708.           <menu label="&tasksMenu.label;" accesskey="&tasksMenu.accesskey;">
  709.             <menupopup id="menu_ToolsPopup">
  710.               <menuitem id="javascriptConsole" label="&javaScriptConsoleCmd.label;" accesskey="&javaScriptConsoleCmd.accesskey;" oncommand="toJavaScriptConsole();"/>
  711.               <menuitem accesskey="&pageInfoCmd.accesskey;"   label="&pageInfoCmd.label;"   key="key_viewInfo"   command="View:PageInfo"/>          
  712.               <menuseparator id="prefSep"/>
  713.               <menuitem label="&preferencesCmd.label;"
  714.                         accesskey="&preferencesCmd.accesskey;"
  715.                         oncommand="goPreferences('navigator', 'chrome://browser/content/pref/pref-navigator.xul', 'navigator')"/>
  716.             </menupopup>
  717.           </menu>
  718.     
  719.           <menu label="&helpMenu.label;"
  720.                 accesskey="&helpMenu.accesskey;">
  721.             <menupopup id="menu_HelpPopup">
  722.               <menuitem accesskey="&releaseCmd.accesskey;"
  723.                         label="&releaseCmd.label;"
  724.                         oncommand="openTopWin('&releaseURL;');"/>
  725.               <menuseparator/>
  726.               <menuitem accesskey="&aboutCmd.accesskey;"
  727.                         label="&aboutCmd.label;"
  728.                         oncommand="openAboutDialog();"/>
  729.             </menupopup>
  730.           </menu>
  731.         </menubar>
  732.       </toolbaritem>
  733.     </toolbar>
  734.  
  735.     <toolbarpalette id="BrowserToolbarPalette">
  736.       <toolbarbutton id="back-button" type="menu-button" class="toolbarbutton-1"
  737.                       label="&backCmd.label;"
  738.                     command="Browser:Back"
  739.                       context="backMenu"
  740.                       tooltiptext="&backButton.tooltip;">
  741.         <menupopup context="" onpopupshowing="BrowserBackMenu(event);"
  742.                     oncommand="gotoHistoryIndex(event); event.preventBubble();"/>
  743.       </toolbarbutton>
  744.     
  745.       <toolbarbutton id="forward-button" type="menu-button" class="toolbarbutton-1"
  746.                       label="&forwardCmd.label;"
  747.                       command="Browser:Forward"
  748.                       context="forwardMenu"
  749.                       tooltiptext="&forwardButton.tooltip;">
  750.         <menupopup context="" oncommand="gotoHistoryIndex(event); event.preventBubble()"
  751.                     onpopupshowing="BrowserForwardMenu(event);"/>
  752.       </toolbarbutton>
  753.     
  754.       <toolbarbutton id="reload-button" class="toolbarbutton-1"
  755.                       label="&reloadCmd.label;"
  756.                       oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload();"  
  757.                       tooltiptext="&reloadButton.tooltip;"/>
  758.                     
  759.       <toolbarbutton id="stop-button" class="toolbarbutton-1"
  760.                       label="&stopCmd.label;"
  761.                       command="Browser:Stop"
  762.                       tooltiptext="&stopButton.tooltip;"/>
  763.  
  764.       <toolbarbutton id="home-button" class="toolbarbutton-1"
  765.                       label="&homeButton.label;"
  766.                       ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  767.                       ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  768.                       ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  769.                       oncommand="BrowserHome();"/>
  770.     
  771.       <toolbaritem id="urlbar-container" align="center" flex="1000"
  772.                    title="&locationItem.title;" class="chromeclass-location">
  773.         <textbox id="urlbar" flex="1"
  774.                  type="autocomplete"
  775.                  autocompletesearch="history" 
  776.                  autocompletepopup="PopupAutoComplete"
  777.                  tabscrolling="true"
  778.                  showcommentcolumn="true"
  779.                  enablehistory="true"
  780.                  oninput="window.XULBrowserWindow.userTyped.value=true;"
  781.                  ontextentered="return handleURLBarCommand(param);"
  782.                  ontextreverted="return handleURLBarRevert();"
  783.                  onfocus="URLBarFocusHandler(event, this);"
  784.                  onmousedown="URLBarMouseDownHandler(event, this);"
  785.                  onclick="URLBarClickHandler(event, this);">
  786.           <deck id="page-proxy-deck">
  787.             <image id="page-proxy-button"
  788.                     ondraggesture="PageProxyDragGesture(event);"
  789.                     tooltiptext="&proxyIcon.tooltip;"/>
  790.             <image id="page-proxy-favicon"
  791.                     ondraggesture="PageProxyDragGesture(event);"
  792.                     onload="this.parentNode.selectedIndex = 1;
  793.                             event.stopPropagation();
  794.                             event.preventBubble();
  795.                             HandleBookmarkIcon(this.src, true);"
  796.                     onerror="gBrowser.addToMissedIconCache(this.src); HandleBookmarkIcon(this.src, false);
  797.                              this.parentNode.selectedIndex = 0;"
  798.                     tooltiptext="&proxyIcon.tooltip;"/>
  799.           </deck>
  800.         </textbox>
  801.       </toolbaritem>
  802.  
  803.       <toolbaritem id="search-container" align="center"
  804.                    title="&searchItem.title;" class="chromeclass-location">
  805.         <textbox id="search-bar" type="autocomplete" flex="1"
  806.                  autocompletepopup="PopupAutoComplete"
  807.                  autocompletesearch="form-history"
  808.                  tabscrolling="true"
  809.                  onfocus="URLBarFocusHandler(event, this);"
  810.                  onmousedown="URLBarMouseDownHandler(event, this);"
  811.                  onclick="URLBarClickHandler(event, this);"
  812.                  ontextentered="return handleSearchBarCommand(param);"
  813.                  persist="searchmode,autocompletesearchparam">
  814.           <image id="search-proxy-button" popup="SearchBarPopup"/>
  815.         </textbox>
  816.       </toolbaritem>
  817.       
  818.       <toolbaritem id="go-container" align="center" class="chromeclass-location">
  819.         <button id="go-button" class="button-toolbar"
  820.                 label="&goButton.label;"
  821.                 oncommand="addToUrlbarHistory(); BrowserLoadURL();"
  822.                 ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
  823.                 ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
  824.                 ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"
  825.                 tooltiptext="&goButton.tooltip;"/> 
  826.       </toolbaritem>
  827.  
  828.       <toolbarbutton id="print-button" class="toolbarbutton-1"
  829.                       label="&printButton.label;"
  830.                       oncommand="BrowserPrint();"
  831.                       tooltiptext="&printButton.tooltip;"/>
  832.  
  833.       <toolbaritem id="throbber-box" align="center" pack="center">
  834.         <button id="navigator-throbber" oncommand="goClickThrobber('browser.throbber.url')"
  835.                 tooltiptext="&throbber.tooltip;"/>
  836.       </toolbaritem>
  837.       
  838.         <toolbaritem id="personal-bookmarks" title="&bookmarksItem.title;" flex="1">
  839.           <bookmarks-toolbar id="bookmarks-toolbar" flex="1"/>
  840.         </toolbaritem>
  841.  
  842.         <toolbarbutton id="downloads-button" class="toolbarbutton-1"
  843.                        observes="viewDownloadsSidebar"
  844.                        tooltiptext="&downloadsButton.tooltip;"/>
  845.  
  846.         <toolbarbutton id="history-button" class="toolbarbutton-1"
  847.                        observes="viewHistorySidebar"
  848.                        tooltiptext="&historyButton.tooltip;"/>
  849.  
  850.         <toolbarbutton id="bookmarks-button" class="toolbarbutton-1"
  851.                        observes="viewBookmarksSidebar"
  852.                        tooltiptext="&bookmarksButton.tooltip;"/>
  853.     
  854.         <toolbarbutton id="new-tab-button" class="toolbarbutton-1"
  855.                        label="&tabCmd.label;"
  856.                        command="cmd_newNavigatorTab"
  857.                        tooltiptext="&newTabButton.tooltip;"/>
  858.  
  859.         <toolbarbutton id="new-window-button" class="toolbarbutton-1"
  860.                        label="&newNavigatorCmd.label;"
  861.                        command="key_newNavigator"
  862.                        tooltiptext="&newWindowButton.tooltip;"/>
  863.  
  864.     </toolbarpalette>
  865.  
  866.     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
  867.              toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
  868.              fullscreentoolbar="true" mode="icons" iconsize="small"
  869.              customizable="true"
  870.              defaultset="back-button,forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,window-controls"
  871.              context="toolbar-context-menu">
  872.       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
  873.         <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  874.                        oncommand="window.minimize();"/>
  875.  
  876.         <toolbarbutton id="restore-button" class="toolbarbutton-1"
  877.                        oncommand="BrowserFullScreen();"/>
  878.  
  879.         <toolbarbutton id="close-button" class="toolbarbutton-1"
  880.                        oncommand="window.close();"/>
  881.       </hbox>
  882.     </toolbar>
  883.  
  884.     <toolbarset id="customToolbars" context="toolbar-context-menu"/>
  885.  
  886.     <toolbar id="PersonalToolbar" class="chromeclass-directories" iconsize="small"
  887.              customizable="true" defaultset="personal-bookmarks" mode="icons"
  888.              toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"/>
  889.     
  890.   </toolbox>
  891.   
  892.   <hbox flex="1" id="contentEnclosure">
  893.     <vbox id="sidebar-box" hidden="true">
  894.       <sidebarheader align="center">
  895.         <label id="sidebar-title"/>
  896.         <spacer flex="1"/>
  897.         <toolbarbutton class="tabs-closebutton" oncommand="toggleSidebar();"/>      
  898.       </sidebarheader>        
  899.       <browser id="sidebar" flex="1"
  900.                style="min-width: 150px; width: 200px; max-width: 400px;"/>
  901.     </vbox>    
  902.     
  903.     <splitter id="sidebar-splitter" hidden="true"/>
  904.     <!-- we only need to handle |ondragdrop| because everything else is
  905.           taken care of by the builtin behavior inside the tabbrowser -->
  906.     <tabbrowser id="content" disablehistory="true"
  907.                 flex="1" contenttooltip="aHTMLTooltip"
  908.                 contentcontextmenu="contentAreaContextMenu"
  909.                 onnewtab="BrowserOpenTab();"
  910.                 autocompletepopup="PopupAutoComplete"
  911.                 ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
  912.                 onclick="return contentAreaClick(event);"/>
  913.   </hbox>
  914.   <statusbar class="chromeclass-status" id="status-bar"
  915.              ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  916.     <statusbarpanel id="security-button" class="statusbarpanel-iconic"
  917.                   onclick="displayPageInfo()"/>
  918.     <statusbarpanel id="page-report-button" class="statusbarpanel-iconic"
  919.                   onclick="displayPageReport();"/>     
  920.     <statusbarpanel id="statusbar-display" flex="1"/>
  921.     <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
  922.       <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  923.     </statusbarpanel>
  924.   </statusbar>
  925. </window>
  926.   
  927.