2002-10-10 21:54:02 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
# -*- Mode: HTML -*-
|
2002-10-10 22:03:58 +00:00
|
|
|
#
|
2002-10-10 21:54:02 +00:00
|
|
|
# The contents of this file are subject to the Netscape Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/NPL/
|
2002-10-10 22:03:58 +00:00
|
|
|
#
|
2002-10-10 21:54:02 +00:00
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
2002-10-10 22:03:58 +00:00
|
|
|
#
|
2002-10-10 21:54:02 +00:00
|
|
|
# The Original Code is Mozilla Communicator client code, released
|
|
|
|
# March 31, 1998.
|
2002-10-10 22:03:58 +00:00
|
|
|
#
|
2002-10-10 21:54:02 +00:00
|
|
|
# The Initial Developer of the Original Code is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
2002-10-10 22:03:58 +00:00
|
|
|
#
|
2003-11-21 00:38:54 +00:00
|
|
|
# Contributor(s):
|
2003-02-23 21:49:19 +00:00
|
|
|
# Blake Ross <blaker@netscape.com>
|
2003-08-11 08:18:49 +00:00
|
|
|
# David Hyatt <hyatt@mozilla.org>
|
2003-02-23 21:49:19 +00:00
|
|
|
# Joe Hewitt <hewitt@netscape.com>
|
|
|
|
# Pierre Chanial <chanial@noos.fr>
|
2002-10-10 21:54:02 +00:00
|
|
|
# Dean Tessman <dean_tessman@hotmail.com>
|
2002-08-04 02:53:09 +00:00
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
2002-09-28 06:25:03 +00:00
|
|
|
<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
|
2002-08-04 02:53:09 +00:00
|
|
|
|
2003-08-11 08:41:34 +00:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
<?xul-overlay href="chrome://browser/content/macBrowserOverlay.xul"?>
|
|
|
|
#endif
|
|
|
|
|
2003-08-11 08:03:52 +00:00
|
|
|
# All DTD information is stored in a separate file so that it can be shared by
|
|
|
|
# hiddenWindow.xul.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-doctype.inc
|
2002-08-04 02:53:09 +00:00
|
|
|
|
|
|
|
<window id="main-window"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
onload="Startup()" onunload="Shutdown()"
|
|
|
|
contenttitlesetting="true"
|
2002-08-10 03:08:14 +00:00
|
|
|
title="&mainWindow.title;"
|
2003-08-12 02:47:14 +00:00
|
|
|
titlemodifier="&mainWindow.title;"
|
|
|
|
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
|
2002-08-04 02:53:09 +00:00
|
|
|
windowtype="navigator:browser"
|
|
|
|
width="610" height="450"
|
|
|
|
screenX="4" screenY="4"
|
|
|
|
persist="screenX screenY width height sizemode">
|
|
|
|
|
2003-08-11 08:41:34 +00:00
|
|
|
#ifndef XP_MACOSX
|
2003-08-11 08:03:52 +00:00
|
|
|
# All JS files that browser.xul wishes to include *must* go into the browser-scripts.inc file
|
|
|
|
# so that they can be shared by hiddenWindow.xul.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-scripts.inc
|
2002-10-13 22:23:34 +00:00
|
|
|
|
2003-08-11 08:12:19 +00:00
|
|
|
# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
|
|
|
|
# browser-sets.inc file for sharing with hiddenWindow.xul.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-sets.inc
|
2003-08-11 08:41:34 +00:00
|
|
|
#endif
|
2002-09-25 01:50:57 +00:00
|
|
|
|
2002-10-08 07:16:51 +00:00
|
|
|
<popupset id="mainPopupSet">
|
|
|
|
<popup id="backMenu" position="after_start" onpopupshowing="return BrowserBackMenu(event);" oncommand="gotoHistoryIndex(event);"/>
|
|
|
|
<popup id="forwardMenu" position="after_start" onpopupshowing="return BrowserForwardMenu(event);" oncommand="gotoHistoryIndex(event);"/>
|
|
|
|
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
|
|
|
|
|
|
|
|
<popup id="SearchBarPopup" position="after_start"
|
|
|
|
datasources="rdf:internetsearch" ref="NC:SearchEngineRoot"
|
2003-08-08 07:44:06 +00:00
|
|
|
oncommand="return SearchBarPopupCommand(event);"
|
|
|
|
onpopupshowing="SearchBarPopupShowing(event);">
|
2003-10-22 08:45:54 +00:00
|
|
|
<menuitem id="__PhoenixFindInPage" class="menuitem-iconic"
|
2003-08-07 09:00:28 +00:00
|
|
|
label="&findOnSearchBarCmd.label;"/>
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuseparator/>
|
|
|
|
<template>
|
|
|
|
<menuitem type="checkbox"
|
|
|
|
uri="..." value="..."
|
|
|
|
src="rdf:http://home.netscape.com/NC-rdf#Icon"
|
|
|
|
label="rdf:http://home.netscape.com/NC-rdf#Name"/>
|
|
|
|
</template>
|
|
|
|
</popup>
|
|
|
|
|
|
|
|
<popup type="autocomplete" id="PopupAutoComplete"/>
|
|
|
|
|
2003-08-09 14:47:31 +00:00
|
|
|
<popup id="toolbar-context-menu"
|
|
|
|
onpopupshowing="updateToolbarStates(this); onViewToolbarsPopupShowing(event);">
|
|
|
|
<menuseparator/>
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuitem command="cmd_CustomizeToolbars"
|
|
|
|
label="&viewCustomizeToolbar.label;"
|
|
|
|
accesskey="&viewCustomizeToolbar.accesskey;"/>
|
|
|
|
</popup>
|
|
|
|
|
|
|
|
<popup id="contentAreaContextMenu"
|
2003-08-03 19:05:06 +00:00
|
|
|
onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
|
|
|
|
onpopuphiding="if (event.target == this) gContextMenu = null;">
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuitem id="context-openlink"
|
|
|
|
label="&openLinkCmd.label;"
|
|
|
|
accesskey="&openLinkCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.openLink();"/>
|
|
|
|
<menuitem id="context-openlinkintab"
|
|
|
|
label="&openLinkCmdInTab.label;"
|
|
|
|
accesskey="&openLinkCmdInTab.accesskey;"
|
|
|
|
oncommand="gContextMenu.openLinkInTab();"/>
|
|
|
|
<menuseparator id="context-sep-open"/>
|
|
|
|
<menuitem id="context-bookmarklink"
|
|
|
|
label="&bookmarkLinkCmd.label;"
|
|
|
|
accesskey="&bookmarkLinkCmd.accesskey;"
|
|
|
|
oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
|
2003-08-27 18:35:19 +00:00
|
|
|
gContextMenu.linkText());"/>
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuitem id="context-savelink"
|
|
|
|
label="&saveLinkCmd.label;"
|
|
|
|
accesskey="&saveLinkCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.saveLink();"/>
|
2003-08-08 21:23:34 +00:00
|
|
|
#ifndef XP_UNIX
|
|
|
|
<menuitem id="context-sendlink"
|
|
|
|
label="&sendLinkCmd.label;"
|
|
|
|
accesskey="&sendLinkCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.sendLink();"/>
|
|
|
|
#endif
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuitem id="context-copyemail"
|
|
|
|
label="©EmailCmd.label;"
|
|
|
|
accesskey="©EmailCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.copyEmail();"/>
|
|
|
|
<menuitem id="context-copylink"
|
|
|
|
label="©LinkCmd.label;"
|
|
|
|
accesskey="©LinkCmd.accesskey;"
|
|
|
|
command="cmd_copyLink"/>
|
|
|
|
<menuseparator id="context-sep-copylink"/>
|
|
|
|
<menuitem id="context-viewimage"
|
|
|
|
label="&viewImageCmd.label;"
|
|
|
|
accesskey="&viewImageCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.viewImage();"/>
|
|
|
|
<menuitem id="context-copyimage"
|
|
|
|
label="©ImageCmd.label;"
|
|
|
|
accesskey="©ImageCmd.accesskey;"
|
|
|
|
command="cmd_copyImageLocation"/>
|
|
|
|
<menuseparator id="context-sep-copyimage"/>
|
|
|
|
<menuitem id="context-saveimage"
|
|
|
|
label="&saveImageCmd.label;"
|
|
|
|
accesskey="&saveImageCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.saveImage();"/>
|
2003-08-08 21:23:34 +00:00
|
|
|
#ifndef XP_UNIX
|
|
|
|
<menuitem id="context-sendimage"
|
|
|
|
label="&sendImageCmd.label;"
|
|
|
|
accesskey="&sendImageCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.sendImage();"/>
|
|
|
|
#endif
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuitem id="context-setWallpaper"
|
|
|
|
label="&setWallpaperCmd.label;"
|
|
|
|
accesskey="&setWallpaperCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.setWallpaper();"/>
|
2002-10-10 01:47:29 +00:00
|
|
|
|
2002-10-13 16:46:31 +00:00
|
|
|
<!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
|
2003-07-28 14:52:41 +00:00
|
|
|
<menuitem id="context-blockimage" class="menuitem-iconic"
|
2002-10-10 01:47:29 +00:00
|
|
|
oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuitem id="context-back"
|
|
|
|
label="&backCmd.label;"
|
|
|
|
accesskey="&backCmd.accesskey;"
|
|
|
|
command="Browser:Back"/>
|
|
|
|
<menuitem id="context-forward"
|
|
|
|
label="&forwardCmd.label;"
|
|
|
|
accesskey="&forwardCmd.accesskey;"
|
|
|
|
command="Browser:Forward"/>
|
|
|
|
<menuitem id="context-reload"
|
|
|
|
label="&reloadCmd.label;"
|
|
|
|
accesskey="&reloadCmd.accesskey;"
|
|
|
|
oncommand="BrowserReload();"/>
|
|
|
|
<menuitem id="context-stop"
|
|
|
|
label="&stopCmd.label;"
|
|
|
|
accesskey="&stopCmd.accesskey;"
|
|
|
|
command="Browser:Stop"/>
|
|
|
|
<menuseparator id="context-sep-stop"/>
|
|
|
|
<menuitem id="context-bookmarkpage"
|
|
|
|
label="&bookmarkPageCmd.label;"
|
|
|
|
accesskey="&bookmarkPageCmd.accesskey;"
|
|
|
|
oncommand="addBookmarkAs(document.getElementById('content'));"/>
|
|
|
|
<menuitem id="context-savepage"
|
|
|
|
label="&savePageCmd.label;"
|
|
|
|
accesskey="&savePageCmd.accesskey;"
|
|
|
|
oncommand="saveDocument(window._content.document);"/>
|
2003-08-08 21:23:34 +00:00
|
|
|
#ifndef XP_UNIX
|
|
|
|
<menuitem id="context-sendpage"
|
|
|
|
label="&sendPageCmd.label;"
|
|
|
|
accesskey="&sendPageCmd.accesskey;"
|
|
|
|
command="Browser:SendLink"/>
|
|
|
|
#endif
|
2002-10-10 21:54:02 +00:00
|
|
|
<menuseparator id="context-sep-viewbgimage"/>
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuitem id="context-viewbgimage"
|
|
|
|
label="&viewBGImageCmd.label;"
|
|
|
|
accesskey="&viewBGImageCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.viewBGImage();"/>
|
|
|
|
<menuitem id="context-undo"
|
|
|
|
label="&undoCmd.label;"
|
|
|
|
accesskey="&undoCmd.accesskey;"
|
|
|
|
command="cmd_undo"/>
|
|
|
|
<menuseparator id="context-sep-undo"/>
|
|
|
|
<menuitem id="context-cut"
|
|
|
|
label="&cutCmd.label;"
|
|
|
|
accesskey="&cutCmd.accesskey;"
|
|
|
|
command="cmd_cut"/>
|
|
|
|
<menuitem id="context-copy"
|
|
|
|
label="©Cmd.label;"
|
|
|
|
accesskey="©Cmd.accesskey;"
|
|
|
|
command="cmd_copy"/>
|
|
|
|
<menuitem id="context-paste"
|
|
|
|
label="&pasteCmd.label;"
|
|
|
|
accesskey="&pasteCmd.accesskey;"
|
|
|
|
command="cmd_paste"/>
|
|
|
|
<menuitem id="context-delete"
|
|
|
|
label="&deleteCmd.label;"
|
|
|
|
accesskey="&deleteCmd.accesskey;"
|
|
|
|
command="cmd_delete"/>
|
|
|
|
<menuseparator id="context-sep-paste"/>
|
|
|
|
<menuitem id="context-selectall"
|
|
|
|
label="&selectAllCmd.label;"
|
|
|
|
accesskey="&selectAllCmd.accesskey;"
|
|
|
|
command="cmd_selectAll"/>
|
|
|
|
<menuseparator id="context-sep-selectall"/>
|
|
|
|
<menuitem id="context-searchselect"
|
|
|
|
accesskey="&search.accesskey;"
|
2002-11-16 17:14:12 +00:00
|
|
|
oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true);"/>
|
2002-10-08 07:16:51 +00:00
|
|
|
<menuseparator id="frame-sep"/>
|
|
|
|
<menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem label="&showOnlyThisFrameCmd.label;"
|
|
|
|
accesskey="&showOnlyThisFrameCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.showOnlyThisFrame();"/>
|
|
|
|
<menuitem label="&openFrameCmd.label;"
|
|
|
|
accesskey="&openFrameCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.openFrame();"/>
|
|
|
|
<menuitem label="&openFrameCmdInTab.label;"
|
|
|
|
accesskey="&openFrameCmdInTab.accesskey;"
|
|
|
|
oncommand="gContextMenu.openFrameInTab();"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&reloadFrameCmd.label;"
|
|
|
|
accesskey="&reloadFrameCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.reloadFrame();"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&bookmarkFrameCmd.label;"
|
|
|
|
accesskey="&bookmarkFrameCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.addBookmarkForFrame();"/>
|
|
|
|
<menuitem label="&saveFrameCmd.label;"
|
|
|
|
accesskey="&saveFrameCmd.accesskey;"
|
|
|
|
oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&viewFrameSourceCmd.label;"
|
|
|
|
accesskey="&viewFrameSourceCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.viewFrameSource();"/>
|
|
|
|
<menuitem label="&viewFrameInfoCmd.label;"
|
|
|
|
accesskey="&viewFrameInfoCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.viewFrameInfo();"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menuseparator id="context-sep-properties"/>
|
|
|
|
<menuitem id="context-viewpartialsource-selection"
|
|
|
|
label="&viewPartialSourceForSelectionCmd.label;"
|
|
|
|
accesskey="&viewPartialSourceCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.viewPartialSource('selection');"/>
|
|
|
|
<menuitem id="context-viewpartialsource-mathml"
|
|
|
|
label="&viewPartialSourceForMathMLCmd.label;"
|
|
|
|
accesskey="&viewPartialSourceCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.viewPartialSource('mathml');"/>
|
|
|
|
<menuitem id="context-viewsource"
|
|
|
|
label="&viewPageSourceCmd.label;"
|
|
|
|
accesskey="&viewPageSourceCmd.accesskey;"
|
|
|
|
oncommand="BrowserViewSourceOfDocument(_content.document);"/>
|
|
|
|
<menuitem id="context-viewinfo"
|
|
|
|
label="&viewPageInfoCmd.label;"
|
|
|
|
accesskey="&viewPageInfoCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.viewInfo();"/>
|
|
|
|
<menuitem id="context-metadata"
|
|
|
|
label="&metadataCmd.label;"
|
|
|
|
accesskey="&metadataCmd.accesskey;"
|
|
|
|
oncommand="gContextMenu.showMetadata();"/>
|
|
|
|
</popup>
|
|
|
|
</popupset>
|
2002-08-04 02:53:09 +00:00
|
|
|
|
2003-08-11 08:41:34 +00:00
|
|
|
#ifndef XP_MACOSX
|
2003-08-11 08:18:49 +00:00
|
|
|
# The hacky hidden tree used by the Go menu to build items.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-gotreehack.inc
|
2003-08-11 08:41:34 +00:00
|
|
|
#endif
|
2002-10-06 22:54:24 +00:00
|
|
|
|
2003-02-23 21:49:19 +00:00
|
|
|
<!-- bookmarks context menu -->
|
|
|
|
<popupset>
|
|
|
|
<menupopup id="bookmarks-context-menu"
|
2003-04-21 20:11:58 +00:00
|
|
|
onpopupshowing="return BookmarksMenu.createContextMenu(event);"
|
2003-02-23 21:49:19 +00:00
|
|
|
onpopuphidden ="BookmarksMenu.destroyContextMenu(event);"/>
|
|
|
|
</popupset>
|
|
|
|
|
2003-02-26 16:37:46 +00:00
|
|
|
<!-- bookmarks toolbar tooltip -->
|
|
|
|
<tooltip id="btTooltip" noautohide="true"
|
|
|
|
onpopupshowing="return BookmarksToolbar.fillInBTTooltip(document.tooltipNode)">
|
|
|
|
<vbox id="btTooltipTextBox" flex="1">
|
|
|
|
<label id="btTitleText" />
|
|
|
|
<label id="btUrlText" />
|
|
|
|
</vbox>
|
|
|
|
</tooltip>
|
|
|
|
|
2002-09-29 22:31:50 +00:00
|
|
|
<toolbox id="navigator-toolbox" class="toolbox-top" mode="icons" iconsize="small">
|
2002-08-04 02:53:09 +00:00
|
|
|
<!-- Menu -->
|
2002-10-20 08:05:30 +00:00
|
|
|
<toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
|
2003-07-06 22:00:35 +00:00
|
|
|
#ifdef XP_MACOSX
|
2003-07-07 00:17:16 +00:00
|
|
|
defaultset="menubar-items"
|
2003-07-06 22:00:35 +00:00
|
|
|
#else
|
|
|
|
defaultset="menubar-items,spring,throbber-box"
|
|
|
|
#endif
|
2003-07-27 14:47:58 +00:00
|
|
|
mode="icons" iconsize="small" context="toolbar-context-menu">
|
2002-10-20 08:05:30 +00:00
|
|
|
<toolbaritem id="menubar-items" align="center">
|
2002-10-06 21:11:50 +00:00
|
|
|
|
2003-08-11 08:41:34 +00:00
|
|
|
#ifndef XP_MACOSX
|
2003-08-11 08:18:49 +00:00
|
|
|
# The entire main menubar is placed into browser-menubar.inc, so that it can be shared by
|
|
|
|
# hiddenWindow.xul.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-menubar.inc
|
2003-08-11 08:41:34 +00:00
|
|
|
#endif
|
2003-08-05 10:16:09 +00:00
|
|
|
|
2003-08-11 08:18:49 +00:00
|
|
|
</toolbaritem>
|
2002-10-20 08:05:30 +00:00
|
|
|
</toolbar>
|
|
|
|
|
2002-09-28 06:25:03 +00:00
|
|
|
<toolbarpalette id="BrowserToolbarPalette">
|
2002-09-27 04:06:56 +00:00
|
|
|
<toolbarbutton id="back-button" type="menu-button" class="toolbarbutton-1"
|
|
|
|
label="&backCmd.label;"
|
|
|
|
command="Browser:Back"
|
|
|
|
context="backMenu"
|
|
|
|
tooltiptext="&backButton.tooltip;">
|
|
|
|
<menupopup context="" onpopupshowing="BrowserBackMenu(event);"
|
|
|
|
oncommand="gotoHistoryIndex(event); event.preventBubble();"/>
|
|
|
|
</toolbarbutton>
|
|
|
|
|
|
|
|
<toolbarbutton id="forward-button" type="menu-button" class="toolbarbutton-1"
|
|
|
|
label="&forwardCmd.label;"
|
|
|
|
command="Browser:Forward"
|
|
|
|
context="forwardMenu"
|
|
|
|
tooltiptext="&forwardButton.tooltip;">
|
|
|
|
<menupopup context="" oncommand="gotoHistoryIndex(event); event.preventBubble()"
|
|
|
|
onpopupshowing="BrowserForwardMenu(event);"/>
|
|
|
|
</toolbarbutton>
|
|
|
|
|
|
|
|
<toolbarbutton id="reload-button" class="toolbarbutton-1"
|
|
|
|
label="&reloadCmd.label;"
|
|
|
|
oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload();"
|
|
|
|
tooltiptext="&reloadButton.tooltip;"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="stop-button" class="toolbarbutton-1"
|
|
|
|
label="&stopCmd.label;"
|
|
|
|
command="Browser:Stop"
|
|
|
|
tooltiptext="&stopButton.tooltip;"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="home-button" class="toolbarbutton-1"
|
|
|
|
label="&homeButton.label;"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
|
|
|
|
oncommand="BrowserHome();"/>
|
|
|
|
|
2002-10-13 05:49:54 +00:00
|
|
|
<toolbaritem id="urlbar-container" align="center" flex="1000"
|
2002-09-28 15:11:50 +00:00
|
|
|
title="&locationItem.title;" class="chromeclass-location">
|
2002-09-27 04:06:56 +00:00
|
|
|
<textbox id="urlbar" flex="1"
|
2003-07-06 06:36:30 +00:00
|
|
|
type="autocomplete" accesskey="&urlbar.accesskey;"
|
2002-09-28 15:11:50 +00:00
|
|
|
autocompletesearch="history"
|
|
|
|
autocompletepopup="PopupAutoComplete"
|
|
|
|
tabscrolling="true"
|
|
|
|
showcommentcolumn="true"
|
|
|
|
enablehistory="true"
|
|
|
|
oninput="window.XULBrowserWindow.userTyped.value=true;"
|
|
|
|
ontextentered="return handleURLBarCommand(param);"
|
|
|
|
ontextreverted="return handleURLBarRevert();"
|
2002-09-29 23:18:47 +00:00
|
|
|
onfocus="URLBarFocusHandler(event, this);"
|
|
|
|
onmousedown="URLBarMouseDownHandler(event, this);"
|
2003-08-24 04:04:43 +00:00
|
|
|
onclick="URLBarClickHandler(event, this);">
|
2002-09-27 04:06:56 +00:00
|
|
|
<deck id="page-proxy-deck">
|
|
|
|
<image id="page-proxy-button"
|
|
|
|
ondraggesture="PageProxyDragGesture(event);"
|
|
|
|
tooltiptext="&proxyIcon.tooltip;"/>
|
2002-10-04 07:38:44 +00:00
|
|
|
<image id="page-proxy-favicon"
|
2002-09-27 04:06:56 +00:00
|
|
|
ondraggesture="PageProxyDragGesture(event);"
|
|
|
|
onload="this.parentNode.selectedIndex = 1;
|
|
|
|
event.stopPropagation();
|
|
|
|
event.preventBubble();
|
|
|
|
HandleBookmarkIcon(this.src, true);"
|
2002-10-20 08:38:11 +00:00
|
|
|
onerror="gBrowser.addToMissedIconCache(this.src); HandleBookmarkIcon(this.src, false);
|
|
|
|
this.parentNode.selectedIndex = 0;"
|
2002-09-27 04:06:56 +00:00
|
|
|
tooltiptext="&proxyIcon.tooltip;"/>
|
|
|
|
</deck>
|
|
|
|
</textbox>
|
|
|
|
</toolbaritem>
|
|
|
|
|
2002-09-28 15:11:50 +00:00
|
|
|
<toolbaritem id="search-container" align="center"
|
|
|
|
title="&searchItem.title;" class="chromeclass-location">
|
2002-09-29 20:06:57 +00:00
|
|
|
<textbox id="search-bar" type="autocomplete" flex="1"
|
|
|
|
autocompletepopup="PopupAutoComplete"
|
|
|
|
autocompletesearch="form-history"
|
|
|
|
tabscrolling="true"
|
2002-09-29 23:18:47 +00:00
|
|
|
onfocus="URLBarFocusHandler(event, this);"
|
|
|
|
onmousedown="URLBarMouseDownHandler(event, this);"
|
|
|
|
onclick="URLBarClickHandler(event, this);"
|
2003-10-22 08:45:54 +00:00
|
|
|
persist="searchengine,autocompletesearchparam">
|
|
|
|
<image id="search-proxy-button" popup="SearchBarPopup" persist="src"/>
|
2002-09-29 20:06:57 +00:00
|
|
|
</textbox>
|
2002-09-27 04:06:56 +00:00
|
|
|
</toolbaritem>
|
2002-08-05 06:36:06 +00:00
|
|
|
|
2002-09-27 04:06:56 +00:00
|
|
|
<toolbaritem id="go-container" align="center" class="chromeclass-location">
|
|
|
|
<button id="go-button" class="button-toolbar"
|
|
|
|
label="&goButton.label;"
|
2003-08-24 15:00:07 +00:00
|
|
|
oncommand="handleURLBarCommand(event);"
|
2002-09-27 04:06:56 +00:00
|
|
|
ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"
|
|
|
|
tooltiptext="&goButton.tooltip;"/>
|
|
|
|
</toolbaritem>
|
|
|
|
|
|
|
|
<toolbarbutton id="print-button" class="toolbarbutton-1"
|
2003-11-05 20:45:34 +00:00
|
|
|
label="&printButton.label;" command="cmd_print"
|
|
|
|
tooltiptext="&printButton.tooltip;"/>
|
2002-09-27 04:06:56 +00:00
|
|
|
|
2003-08-09 07:56:31 +00:00
|
|
|
<toolbaritem id="throbber-box" title="&throbberItem.title;" align="center" pack="center">
|
2002-09-27 04:06:56 +00:00
|
|
|
<button id="navigator-throbber" oncommand="goClickThrobber('browser.throbber.url')"
|
|
|
|
tooltiptext="&throbber.tooltip;"/>
|
|
|
|
</toolbaritem>
|
2002-08-04 02:53:09 +00:00
|
|
|
|
2003-08-11 01:59:35 +00:00
|
|
|
<toolbaritem id="personal-bookmarks" title="&bookmarksItem.title;" flex="1">
|
2003-02-23 21:49:19 +00:00
|
|
|
<stack id="bookmarks-stack" flex="1" style="min-width:0px; width:0px;">
|
|
|
|
<hbox id="bookmarks-ptf" class="bookmarks-toolbar-items" contextmenu="bookmarks-context-menu"
|
|
|
|
flex="1" style="min-width:0px; width:0px;margin-left: 3px;"
|
|
|
|
datasources="rdf:bookmarks rdf:files rdf:localsearch"
|
2003-10-08 08:17:23 +00:00
|
|
|
template="bookmarks-template" flags="dont-test-empty"
|
2003-02-23 21:49:19 +00:00
|
|
|
rdf:type="http://home.netscape.com/NC-rdf#Folder"
|
2003-02-24 22:11:11 +00:00
|
|
|
onpopupshowing="BookmarksMenu.showOpenInTabsMenuItem(event.target)"
|
|
|
|
onpopuphidden="BookmarksMenu.hideOpenInTabsMenuItem(event.target)"
|
2003-04-22 02:55:55 +00:00
|
|
|
oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
|
2003-04-21 20:11:58 +00:00
|
|
|
onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
|
2003-02-23 21:49:19 +00:00
|
|
|
ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
|
|
|
|
ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
|
|
|
|
</hbox>
|
|
|
|
<hbox class="bookmarks-toolbar-overflow-items" mousethrough="always">
|
|
|
|
<hbox mousethrough="always" id="overflow-padder"/>
|
|
|
|
<toolbarbutton id="bookmarks-chevron" type="menu" class="chevron"
|
|
|
|
mousethrough="never" collapsed="true"
|
|
|
|
datasources="rdf:bookmarks rdf:files rdf:localsearch"
|
2003-10-08 08:17:23 +00:00
|
|
|
template="bookmarks-template" flags="dont-test-empty"
|
2003-02-24 22:11:11 +00:00
|
|
|
onpopupshowing="BookmarksMenu.showOpenInTabsMenuItem(event.target)"
|
|
|
|
onpopuphidden="BookmarksMenu.hideOpenInTabsMenuItem(event.target)"
|
2003-04-22 02:55:55 +00:00
|
|
|
oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
|
2003-04-21 20:11:58 +00:00
|
|
|
onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
|
2003-02-23 21:49:19 +00:00
|
|
|
ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.preventBubble()"
|
|
|
|
ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.preventBubble()"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.preventBubble()"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.preventBubble()">
|
2003-02-25 04:45:31 +00:00
|
|
|
<menupopup contextmenu="bookmarks-context-menu"
|
|
|
|
onpopupshowing="if (event.target == this) BookmarksToolbar.updateOverflowMenu(this);"/>
|
2003-02-23 21:49:19 +00:00
|
|
|
</toolbarbutton>
|
|
|
|
</hbox>
|
|
|
|
<toolbarbutton class="bookmark-item bookmarks-toolbar-customize" mousethrough="never"
|
2003-08-19 13:37:20 +00:00
|
|
|
label="&bookmarksToolbarItem.label;"/>
|
2003-02-23 21:49:19 +00:00
|
|
|
</stack>
|
2002-09-28 22:55:58 +00:00
|
|
|
</toolbaritem>
|
|
|
|
|
2002-09-30 01:58:19 +00:00
|
|
|
<toolbarbutton id="downloads-button" class="toolbarbutton-1"
|
|
|
|
observes="viewDownloadsSidebar"
|
2002-09-28 22:55:58 +00:00
|
|
|
tooltiptext="&downloadsButton.tooltip;"/>
|
|
|
|
|
2002-09-30 01:58:19 +00:00
|
|
|
<toolbarbutton id="history-button" class="toolbarbutton-1"
|
|
|
|
observes="viewHistorySidebar"
|
2002-09-28 22:55:58 +00:00
|
|
|
tooltiptext="&historyButton.tooltip;"/>
|
2003-08-02 01:35:40 +00:00
|
|
|
|
2002-09-30 01:58:19 +00:00
|
|
|
<toolbarbutton id="bookmarks-button" class="toolbarbutton-1"
|
|
|
|
observes="viewBookmarksSidebar"
|
2002-09-28 22:55:58 +00:00
|
|
|
tooltiptext="&bookmarksButton.tooltip;"/>
|
2002-09-29 22:02:37 +00:00
|
|
|
|
|
|
|
<toolbarbutton id="new-tab-button" class="toolbarbutton-1"
|
|
|
|
label="&tabCmd.label;"
|
|
|
|
command="cmd_newNavigatorTab"
|
|
|
|
tooltiptext="&newTabButton.tooltip;"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="new-window-button" class="toolbarbutton-1"
|
|
|
|
label="&newNavigatorCmd.label;"
|
|
|
|
command="key_newNavigator"
|
|
|
|
tooltiptext="&newWindowButton.tooltip;"/>
|
|
|
|
|
2003-07-05 19:16:15 +00:00
|
|
|
<toolbarbutton id="cut-button" class="toolbarbutton-1"
|
|
|
|
label="&cutCmd.label;"
|
|
|
|
command="cmd_cut"
|
|
|
|
tooltiptext="&cutButton.tooltip;"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="copy-button" class="toolbarbutton-1"
|
|
|
|
label="©Cmd.label;"
|
|
|
|
command="cmd_copy"
|
|
|
|
tooltiptext="©Button.tooltip;"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="paste-button" class="toolbarbutton-1"
|
|
|
|
label="&pasteCmd.label;"
|
|
|
|
command="cmd_paste"
|
|
|
|
tooltiptext="&pasteButton.tooltip;"/>
|
|
|
|
|
2002-09-27 04:06:56 +00:00
|
|
|
</toolbarpalette>
|
|
|
|
|
|
|
|
<toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
|
|
|
|
toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
|
2002-09-29 22:31:50 +00:00
|
|
|
fullscreentoolbar="true" mode="icons" iconsize="small"
|
|
|
|
customizable="true"
|
2002-10-29 00:13:49 +00:00
|
|
|
defaultset="back-button,forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,window-controls"
|
2002-09-27 04:06:56 +00:00
|
|
|
context="toolbar-context-menu">
|
2002-10-27 23:19:06 +00:00
|
|
|
<hbox id="window-controls" hidden="true" fullscreencontrol="true">
|
2002-08-04 02:53:09 +00:00
|
|
|
<toolbarbutton id="minimize-button" class="toolbarbutton-1"
|
|
|
|
oncommand="window.minimize();"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="restore-button" class="toolbarbutton-1"
|
|
|
|
oncommand="BrowserFullScreen();"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="close-button" class="toolbarbutton-1"
|
|
|
|
oncommand="window.close();"/>
|
|
|
|
</hbox>
|
|
|
|
</toolbar>
|
2002-09-27 04:06:56 +00:00
|
|
|
|
|
|
|
<toolbarset id="customToolbars" context="toolbar-context-menu"/>
|
2002-08-04 02:53:09 +00:00
|
|
|
|
2002-09-30 19:57:54 +00:00
|
|
|
<toolbar id="PersonalToolbar" class="chromeclass-directories" iconsize="small"
|
2003-02-24 19:07:21 +00:00
|
|
|
customizable="true" defaultset="personal-bookmarks" mode="icons"
|
2003-07-27 14:47:58 +00:00
|
|
|
toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
|
|
|
|
context="toolbar-context-menu"/>
|
2002-09-27 04:06:56 +00:00
|
|
|
|
2002-08-04 02:53:09 +00:00
|
|
|
</toolbox>
|
2002-09-28 22:55:58 +00:00
|
|
|
|
2003-02-27 17:17:00 +00:00
|
|
|
<hbox flex="1" id="browser">
|
2003-08-06 06:41:11 +00:00
|
|
|
<vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
|
2002-09-30 03:22:13 +00:00
|
|
|
<sidebarheader align="center">
|
2003-08-04 07:20:01 +00:00
|
|
|
<label id="sidebar-title" persist="value" flex="1" crop="end"/>
|
2003-08-04 03:40:27 +00:00
|
|
|
<image id="sidebar-throbber"/>
|
2002-09-30 04:04:48 +00:00
|
|
|
<toolbarbutton class="tabs-closebutton" oncommand="toggleSidebar();"/>
|
2002-09-30 03:22:13 +00:00
|
|
|
</sidebarheader>
|
2003-07-24 11:01:40 +00:00
|
|
|
<browser id="sidebar" flex="1" autoscroll="false"
|
2002-09-28 22:55:58 +00:00
|
|
|
style="min-width: 150px; width: 200px; max-width: 400px;"/>
|
|
|
|
</vbox>
|
2002-08-04 02:53:09 +00:00
|
|
|
|
2002-09-28 22:55:58 +00:00
|
|
|
<splitter id="sidebar-splitter" hidden="true"/>
|
2003-02-27 17:17:00 +00:00
|
|
|
<vbox id="appcontent" flex="1">
|
|
|
|
<tabbrowser id="content" disablehistory="true"
|
|
|
|
flex="1" contenttooltip="aHTMLTooltip"
|
|
|
|
contentcontextmenu="contentAreaContextMenu"
|
|
|
|
onnewtab="BrowserOpenTab();"
|
|
|
|
autocompletepopup="PopupAutoComplete"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
|
2003-08-02 07:48:07 +00:00
|
|
|
onclick="return contentAreaClick(event, false);"/>
|
2003-02-27 17:17:00 +00:00
|
|
|
</vbox>
|
2002-09-28 22:55:58 +00:00
|
|
|
</hbox>
|
2002-08-10 03:49:30 +00:00
|
|
|
<statusbar class="chromeclass-status" id="status-bar"
|
2002-08-04 02:53:09 +00:00
|
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
|
2002-08-14 00:22:12 +00:00
|
|
|
<statusbarpanel id="security-button" class="statusbarpanel-iconic"
|
2002-10-08 01:54:15 +00:00
|
|
|
onclick="displayPageInfo()"/>
|
2003-08-12 14:43:09 +00:00
|
|
|
<statusbarpanel id="page-report-button" class="statusbarpanel-iconic" tooltiptext="&pageReportIcon.tooltip;"
|
2003-08-10 08:04:58 +00:00
|
|
|
onclick="displayPageReport();"/>
|
2003-08-12 14:43:09 +00:00
|
|
|
<statusbarpanel id="page-theme-button" type="menu" class="statusbarpanel-menu-iconic" tooltiptext="&pageThemeIcon.tooltip;">
|
2003-08-10 08:04:58 +00:00
|
|
|
<menupopup onpopupshowing="stylesheetFillPopup(this);"
|
|
|
|
oncommand="stylesheetSwitchAll(window._content, event.target.getAttribute('data'));">
|
|
|
|
<menuitem label="&pageThemeNoTheme.label;" accesskey="&pageThemeNoTheme.accesskey;" type="radio" data="_nostyle"/>
|
|
|
|
<menuitem label="&pageThemePersistentOnly.label;" accesskey="&pageThemePersistentOnly.accesskey;" type="radio" checked="true"/>
|
|
|
|
<menuseparator/>
|
|
|
|
</menupopup>
|
|
|
|
</statusbarpanel>
|
|
|
|
|
2002-08-25 02:37:10 +00:00
|
|
|
<statusbarpanel id="statusbar-display" flex="1"/>
|
2002-10-09 09:19:04 +00:00
|
|
|
<statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
|
2002-08-04 02:53:09 +00:00
|
|
|
<progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
|
|
|
|
</statusbarpanel>
|
2002-08-08 01:55:38 +00:00
|
|
|
</statusbar>
|
2002-08-04 02:53:09 +00:00
|
|
|
</window>
|
2002-10-10 21:54:02 +00:00
|
|
|
|