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