2008-07-22 16:21:15 +04:00
|
|
|
<?xml version="1.0"?> <!-- -*- Mode: HTML; indent-tabs-mode: nil -*- -->
|
|
|
|
|
|
|
|
<!-- ***** BEGIN LICENSE BLOCK *****
|
|
|
|
Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
|
|
|
|
The contents of this file are subject to the Mozilla 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/MPL/
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
The Original Code is Mozilla Communicator client code, released
|
|
|
|
March 31, 1998.
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is
|
|
|
|
Netscape Communications Corporation.
|
|
|
|
Portions created by the Initial Developer are Copyright (C) 1998-2000
|
|
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
Dean Tessman <dean_tessman@hotmail.com>
|
|
|
|
|
|
|
|
Alternatively, the contents of this file may be used under the terms of
|
|
|
|
either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
of those above. If you wish to allow use of your version of this file only
|
|
|
|
under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
use your version of this file under the terms of the MPL, indicate your
|
|
|
|
decision by deleting the provisions above and replace them with the notice
|
|
|
|
and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
the provisions above, a recipient may use your version of this file under
|
|
|
|
the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
|
|
|
|
***** END LICENSE BLOCK ***** -->
|
|
|
|
|
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
|
2010-08-09 00:06:47 +04:00
|
|
|
<?xml-stylesheet href="chrome://communicator/content/places/places.css" type="text/css"?>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
|
|
|
<?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://navigator/content/mailNavigatorOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://navigator/content/linkToolbarOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
|
2010-08-09 00:06:47 +04:00
|
|
|
<?xul-overlay href="chrome://communicator/content/bookmarks/placesOverlay.xul"?>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
|
|
|
|
%brandDTD;
|
|
|
|
<!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
|
|
|
|
%navigatorDTD;
|
|
|
|
]>
|
|
|
|
|
|
|
|
<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()"
|
|
|
|
onclose="return WindowIsClosing();"
|
2009-08-26 00:29:57 +04:00
|
|
|
contenttitlesetting="true"
|
2008-07-22 16:21:15 +04:00
|
|
|
title="&mainWindow.title;"
|
|
|
|
titlemodifier="&mainWindow.titlemodifier;"
|
|
|
|
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
|
2010-08-03 21:13:48 +04:00
|
|
|
toggletoolbar="true"
|
2010-07-20 17:53:55 +04:00
|
|
|
lightweightthemes="true"
|
|
|
|
lightweightthemesfooter="status-bar"
|
2008-07-22 16:21:15 +04:00
|
|
|
windowtype="navigator:browser"
|
|
|
|
persist="screenX screenY width height sizemode">
|
|
|
|
|
|
|
|
<!-- Generic Utility -->
|
2009-10-09 01:29:19 +04:00
|
|
|
<script type="application/javascript" src="chrome://global/content/nsUserSettings.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://global/content/nsClipboard.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://global/content/nsDragAndDrop.js"/>
|
2010-06-04 14:22:00 +04:00
|
|
|
<script type="application/javascript" src="chrome://global/content/viewSourceUtils.js"/>
|
2010-07-15 08:02:52 +04:00
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<!-- Content Area -->
|
2009-10-09 01:29:19 +04:00
|
|
|
<script type="application/javascript" src="chrome://navigator/content/nsBrowserStatusHandler.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://navigator/content/nsBrowserContentListener.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://communicator/content/contentAreaClick.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://communicator/content/contentAreaDD.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://communicator/content/findUtils.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://global/content/printUtils.js"/>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
|
|
|
<!-- Navigator -->
|
2009-10-09 01:29:19 +04:00
|
|
|
<script type="application/javascript" src="chrome://navigator/content/fullScreen.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://navigator/content/browser.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://navigator/content/navigator.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://navigator/content/navigatorDD.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
2010-08-09 00:06:47 +04:00
|
|
|
<!-- Places Bookmarks Utilities -->
|
|
|
|
<script type="application/javascript" src="chrome://communicator/content/places/browserPlacesViews.js"/>
|
|
|
|
<script type="application/javascript" src="chrome://communicator/content/bookmarks/browser-places.js"/>
|
2010-08-09 00:06:47 +04:00
|
|
|
<script type="application/javascript" src="chrome://communicator/content/bookmarks/editBookmarkOverlay.js"/>
|
2010-08-09 00:06:47 +04:00
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<!-- hook for stringbundle overlays -->
|
|
|
|
<stringbundleset id="stringbundleset">
|
|
|
|
<stringbundle id="bundle_navigator" src="chrome://navigator/locale/navigator.properties"/>
|
|
|
|
<stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
|
|
|
|
<stringbundle id="bundle_navigator_region" src="chrome://navigator-region/locale/region.properties"/>
|
|
|
|
<stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
|
|
|
|
</stringbundleset>
|
|
|
|
|
2010-08-09 00:06:47 +04:00
|
|
|
<commandset id="commands">
|
2008-07-22 16:21:15 +04:00
|
|
|
<commandset id="findTypeMenuItems"/>
|
|
|
|
<commandset id="globalEditMenuItems"/>
|
|
|
|
<commandset id="selectEditMenuItems"/>
|
|
|
|
<commandset id="undoEditMenuItems"/>
|
|
|
|
<commandset id="clipboardEditMenuItems"/>
|
|
|
|
<!-- <command id="cmd_pageSetup"/> -->
|
|
|
|
<command id="toggleSidebar"/>
|
|
|
|
</commandset>
|
2008-11-14 22:22:54 +03:00
|
|
|
|
2009-01-26 13:50:55 +03:00
|
|
|
<commandset id="mainCommandSet"/> <!-- Firefox extension compatibility -->
|
|
|
|
|
2010-08-09 00:06:47 +04:00
|
|
|
<commandset id="placesCommands"/>
|
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<!-- broadcasters are appended from the overlay -->
|
|
|
|
<broadcasterset id="navBroadcasters"/>
|
2008-11-14 22:22:54 +03:00
|
|
|
<broadcasterset id="mainBroadcasterSet"/> <!-- Firefox extension compatibility -->
|
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<!-- keys are appended from the overlay -->
|
|
|
|
<keyset id="navKeys">
|
|
|
|
<key id="showHideSidebar"/>
|
|
|
|
</keyset>
|
2008-11-14 22:22:54 +03:00
|
|
|
<keyset id="mainKeyset"/> <!-- Firefox extension compatibility -->
|
|
|
|
|
2010-07-15 08:02:52 +04:00
|
|
|
<popupset id="mainPopupSet">
|
|
|
|
<menupopup id="backMenu"
|
|
|
|
position="after_start"
|
|
|
|
onpopupshowing="return BrowserBackMenu(event);"
|
2010-08-30 13:46:39 +04:00
|
|
|
oncommand="gotoHistoryIndex(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
2010-07-15 08:02:52 +04:00
|
|
|
<menupopup id="forwardMenu"
|
|
|
|
position="after_start"
|
|
|
|
onpopupshowing="return BrowserForwardMenu(event);"
|
2010-08-30 13:46:39 +04:00
|
|
|
oncommand="gotoHistoryIndex(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
2010-07-15 08:02:52 +04:00
|
|
|
<tooltip id="aHTMLTooltip"
|
|
|
|
onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
|
|
|
|
<menupopup id="sidebarPopup"/>
|
|
|
|
|
|
|
|
<tooltip id="home-button-tooltip" noautohide="true">
|
|
|
|
<vbox id="home-button-tooltip-inner" flex="1"/>
|
|
|
|
</tooltip>
|
|
|
|
|
|
|
|
<menupopup id="toolbar-context-menu"/>
|
|
|
|
|
|
|
|
<menupopup id="feedsPopup" popupanchor="bottomright" popupalign="topright"
|
|
|
|
onpopupshowing="window.XULBrowserWindow.populateFeeds(this);"
|
|
|
|
oncommand="subscribeToFeed(event.target.statusText, event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
|
|
|
<panel id="PopupAutoComplete" type="autocomplete" noautofocus="true"/>
|
2009-01-26 13:50:55 +03:00
|
|
|
|
2010-10-06 00:32:11 +04:00
|
|
|
<!-- for invalid form error message -->
|
|
|
|
<panel id="invalid-form-popup" noautofocus="true" hidden="true" level="parent">
|
|
|
|
<description/>
|
|
|
|
</panel>
|
|
|
|
|
2010-08-09 00:06:47 +04:00
|
|
|
<panel id="editBookmarkPanel"/>
|
|
|
|
|
2010-08-09 00:06:47 +04:00
|
|
|
<menupopup id="placesContext"/>
|
|
|
|
|
|
|
|
<!-- Bookmarks and history tooltip -->
|
|
|
|
<tooltip id="bhTooltip"/>
|
|
|
|
|
2010-10-05 15:09:20 +04:00
|
|
|
<panel id="notification-popup" position="after_start" noautofocus="true" hidden="true"/>
|
|
|
|
|
2010-07-15 08:02:52 +04:00
|
|
|
<menupopup id="popupBlockerMenu"
|
|
|
|
oncommand="popupBlockerMenuCommand(event.target);"
|
|
|
|
onpopupshowing="return popupBlockerMenuShowing(event)"/>
|
|
|
|
<!-- Items are generated, see popupBlockerMenuShowing() -->
|
|
|
|
<menupopup id="popupNotificationMenu"/>
|
|
|
|
<menupopup id="networkProperties"/>
|
|
|
|
</popupset>
|
2008-11-14 22:22:54 +03:00
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<!-- context menu -->
|
|
|
|
<popupset id="contentAreaContextSet"/>
|
|
|
|
|
2008-11-14 22:22:54 +03:00
|
|
|
<toolbox id="navigator-toolbox" class="toolbox-top" deferattached="true"
|
|
|
|
mode="full" defaultmode="full">
|
2008-07-22 16:21:15 +04:00
|
|
|
<!-- Menu -->
|
2009-02-16 18:20:04 +03:00
|
|
|
<toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar"
|
|
|
|
persist="collapsed" grippytooltiptext="&menuBar.tooltip;" customizable="true"
|
|
|
|
defaultset="menubar-items"
|
|
|
|
mode="icons" iconsize="small"
|
|
|
|
defaultmode="icons" defaulticonsize="small"
|
|
|
|
context="toolbar-context-menu">
|
|
|
|
<toolbaritem id="menubar-items" class="menubar-items" align="center">
|
|
|
|
<menubar id="main-menubar"/>
|
|
|
|
</toolbaritem>
|
|
|
|
</toolbar>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
|
|
|
<toolbar class="toolbar-primary chromeclass-toolbar" id="nav-bar" persist="collapsed"
|
|
|
|
grippytooltiptext="&navigationToolbar.tooltip;"
|
2008-11-14 22:22:54 +03:00
|
|
|
fullscreentoolbar="true" customizable="true"
|
|
|
|
toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
|
|
|
|
togglemenuitem="cmd_viewnavbar"
|
2010-06-19 15:01:54 +04:00
|
|
|
defaultset="back-button,forward-button,reload-button,stop-button,nav-bar-inner,search-button-container,print-button,throbber-box,window-controls"
|
2009-01-26 13:50:55 +03:00
|
|
|
context="toolbar-context-menu">
|
|
|
|
|
|
|
|
<hbox id="window-controls" hidden="true" fullscreencontrol="true">
|
|
|
|
<toolbarbutton id="minimize-button"
|
|
|
|
tooltiptext="&minimizeButton.tooltip;"
|
|
|
|
oncommand="window.minimize();"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="restore-button"
|
|
|
|
tooltiptext="&restoreButton.tooltip;"
|
|
|
|
oncommand="BrowserFullScreen();"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="close-button"
|
|
|
|
tooltiptext="&closeWindow.label;"
|
|
|
|
oncommand="BrowserTryToCloseWindow();"/>
|
|
|
|
</hbox>
|
|
|
|
</toolbar>
|
|
|
|
|
|
|
|
<toolbarset id="customToolbars" context="toolbar-context-menu"/>
|
|
|
|
|
2009-08-14 22:00:08 +04:00
|
|
|
<toolbar id="PersonalToolbar"
|
|
|
|
accesskey="&personalbarCmd.accesskey;"
|
|
|
|
class="chromeclass-directories"
|
|
|
|
persist="collapsed"
|
2009-01-26 13:50:55 +03:00
|
|
|
grippytooltiptext="&personalToolbar.tooltip;"
|
2009-08-14 22:00:08 +04:00
|
|
|
toolbarname="&personalbarCmd.label;"
|
|
|
|
nowindowdrag="true"
|
2009-01-26 13:50:55 +03:00
|
|
|
togglemenuitem="cmd_viewpersonaltoolbar"
|
|
|
|
customizable="true"
|
|
|
|
defaultset="home-button,separator,bookmarks-button,personal-bookmarks"
|
2009-08-14 22:00:08 +04:00
|
|
|
mode="full"
|
|
|
|
iconsize="small"
|
|
|
|
labelalign="end"
|
|
|
|
defaultmode="full"
|
|
|
|
defaulticonsize="small"
|
|
|
|
defaultlabelalign="end"
|
2008-11-14 22:22:54 +03:00
|
|
|
context="toolbar-context-menu">
|
2009-01-26 13:50:55 +03:00
|
|
|
</toolbar>
|
|
|
|
|
|
|
|
<toolbarpalette id="BrowserToolbarPalette">
|
|
|
|
|
|
|
|
<!-- Nav bar buttons -->
|
|
|
|
<toolbarbutton id="back-button" type="menu-button"
|
|
|
|
class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&backButton.label;"
|
2010-08-30 13:46:39 +04:00
|
|
|
oncommand="if (event.target==this) BrowserBack(event); else gotoHistoryIndex(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
2009-01-26 13:50:55 +03:00
|
|
|
context="backMenu"
|
|
|
|
tooltiptext="&backButton.tooltip;">
|
|
|
|
<observes element="canGoBack" attribute="disabled"/>
|
|
|
|
<menupopup context="" onpopupshowing="BrowserBackMenu(event);"/>
|
|
|
|
</toolbarbutton>
|
|
|
|
|
|
|
|
<toolbarbutton id="forward-button" type="menu-button"
|
|
|
|
class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&forwardButton.label;"
|
2010-08-30 13:46:39 +04:00
|
|
|
oncommand="if (event.target==this) BrowserForward(event); else gotoHistoryIndex(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
2009-01-26 13:50:55 +03:00
|
|
|
context="forwardMenu"
|
|
|
|
tooltiptext="&forwardButton.tooltip;">
|
|
|
|
<observes element="canGoForward" attribute="disabled"/>
|
|
|
|
<menupopup context="" onpopupshowing="BrowserForwardMenu(event);"/>
|
|
|
|
</toolbarbutton>
|
|
|
|
|
|
|
|
<toolbarbutton id="reload-button"
|
|
|
|
class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&reloadButton.label;"
|
2010-08-30 13:46:39 +04:00
|
|
|
oncommand="BrowserReload(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
2009-01-26 13:50:55 +03:00
|
|
|
tooltiptext="&reloadButton.tooltip;"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="stop-button"
|
|
|
|
class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&stopButton.label;"
|
|
|
|
oncommand="BrowserStop();" observes="canStop"
|
2010-04-15 00:17:07 +04:00
|
|
|
disabled="true"
|
2009-01-26 13:50:55 +03:00
|
|
|
tooltiptext="&stopButton.tooltip;">
|
|
|
|
</toolbarbutton>
|
|
|
|
|
|
|
|
<!-- XXXRatty ? class="toolbarbutton-1 chromeclass-toolbar-additional" ? -->
|
|
|
|
<toolbarbutton id="home-button"
|
|
|
|
class="toolbarbutton-1"
|
|
|
|
label="&homeButton.label;"
|
|
|
|
oncommand="BrowserHome(event);"
|
|
|
|
onclick="if (event.button == 1) BrowserHome(event);"
|
|
|
|
tooltip="home-button-tooltip"
|
|
|
|
ondraggesture="nsDragAndDrop.startDrag(event, homeButtonObserver)"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver); event.stopPropagation()"
|
|
|
|
ondragenter="event.stopPropagation()"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver); event.stopPropagation()"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver); event.stopPropagation()"/>
|
|
|
|
|
2010-06-19 15:01:54 +04:00
|
|
|
<toolbaritem id="nav-bar-inner"
|
|
|
|
flex="1"
|
|
|
|
persist="width"
|
|
|
|
class="chromeclass-location nav-bar-class"
|
|
|
|
title="&locationBar.title;">
|
2008-07-22 16:21:15 +04:00
|
|
|
<textbox id="urlbar" class="chromeclass-location uri-element" flex="1"
|
2009-01-26 13:50:55 +03:00
|
|
|
type="autocomplete" autocompletesearch="history file"
|
2008-07-22 16:21:15 +04:00
|
|
|
timeout="50" maxrows="6"
|
|
|
|
disablehistory="false" accesskey="&locationBar.accesskey;"
|
|
|
|
defaultSearchEngine="true" tabscrolling="true"
|
|
|
|
showcommentcolumn="true"
|
|
|
|
inputtooltiptext="&locationBar.tooltip;"
|
|
|
|
newlines="stripsurroundingwhitespace"
|
2009-07-01 00:41:22 +04:00
|
|
|
aria-label="&locationBar.title;"
|
2008-07-22 16:21:15 +04:00
|
|
|
oninput="gBrowser.userTypedValue = this.value;"
|
|
|
|
ontextentered="return handleURLBarCommand(eventParam, domEvent);"
|
|
|
|
ontextreverted="return handleURLBarRevert();"
|
|
|
|
onfocus="URLBarFocusHandler(event);"
|
|
|
|
onmousedown="URLBarMouseDownHandler(event);"
|
|
|
|
onclick="URLBarClickHandler(event);">
|
2010-10-05 15:09:20 +04:00
|
|
|
<box id="notification-popup-box" hidden="true" align="center">
|
|
|
|
<image id="geo-notification-icon" class="notification-anchor-icon" role="button"/>
|
2010-12-05 23:26:42 +03:00
|
|
|
<image id="addons-notification-icon" class="notification-anchor-icon" role="button"/>
|
2010-10-20 15:24:28 +04:00
|
|
|
<image id="password-notification-icon" class="notification-anchor-icon" role="button"/>
|
2010-10-05 15:09:20 +04:00
|
|
|
</box>
|
2009-01-26 13:50:55 +03:00
|
|
|
<deck id="page-proxy-deck"
|
|
|
|
class="urlbar-icons"
|
|
|
|
onclick="handlePageProxyClick(event);">
|
2008-07-22 16:21:15 +04:00
|
|
|
<image id="page-proxy-button"
|
|
|
|
ondraggesture="PageProxyDragGesture(event);"
|
|
|
|
tooltiptext="&proxyIcon.tooltip;"/>
|
|
|
|
<image id="page-proxy-favicon" validate="never"
|
|
|
|
ondraggesture="PageProxyDragGesture(event);"
|
|
|
|
onload="this.parentNode.selectedIndex = 1;
|
2010-08-09 00:06:47 +04:00
|
|
|
event.stopPropagation();"
|
|
|
|
onerror="gBrowser.addToMissedIconCache(this.src);"
|
2008-07-22 16:21:15 +04:00
|
|
|
tooltiptext="&proxyIcon.tooltip;"/>
|
|
|
|
</deck>
|
2009-01-26 13:50:55 +03:00
|
|
|
<hbox id="urlbar-icons"
|
|
|
|
class="urlbar-icons">
|
2008-09-25 02:49:47 +04:00
|
|
|
<image id="feedsButton" hidden="true" popup="feedsPopup"/>
|
2009-06-11 02:55:02 +04:00
|
|
|
<image id="ev-button" hidden="true"
|
|
|
|
onclick="if (event.button == 0) BrowserPageInfo(null, 'securityTab');"/>
|
2010-09-06 17:31:20 +04:00
|
|
|
<image id="star-button"
|
|
|
|
onclick="PlacesStarButton.onClick(event);"/>
|
2008-07-22 16:21:15 +04:00
|
|
|
</hbox>
|
|
|
|
<menupopup id="ubhist-popup" class="autocomplete-history-popup"
|
|
|
|
popupalign="topleft" popupanchor="bottomleft"
|
2009-01-26 13:50:55 +03:00
|
|
|
onpopupshowing="createUBHistoryMenu(event.target);"
|
2008-07-22 16:21:15 +04:00
|
|
|
oncommand="executeUrlBarHistoryCommand(event.target);"/>
|
|
|
|
</textbox>
|
2010-06-19 15:01:54 +04:00
|
|
|
</toolbaritem>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
2010-06-19 15:01:54 +04:00
|
|
|
<toolbaritem id="go-button-container"
|
|
|
|
class="nav-bar-class"
|
|
|
|
title="&goButton.label;">
|
|
|
|
<button id="go-button"
|
|
|
|
class="button-toolbar chromeclass-location"
|
|
|
|
label="&goButton.label;"
|
|
|
|
tooltiptext="&goButton.tooltip;"
|
|
|
|
default="true"
|
2010-12-06 19:07:12 +03:00
|
|
|
oncommand="handleURLBarCommand('none', event);"
|
2008-07-22 16:21:15 +04:00
|
|
|
ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
|
2010-06-19 15:01:54 +04:00
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"/>
|
|
|
|
</toolbaritem>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
2010-06-19 15:01:54 +04:00
|
|
|
<toolbaritem id="search-button-container"
|
|
|
|
class="nav-bar-class"
|
|
|
|
title="&searchButton.label;">
|
|
|
|
<button id="search-button"
|
|
|
|
class="button-toolbar chromeclass-location"
|
2008-07-22 16:21:15 +04:00
|
|
|
label="&searchButton.label;"
|
2010-06-19 15:01:54 +04:00
|
|
|
tooltiptext="&searchButton.tooltip;"
|
2010-09-30 13:57:09 +04:00
|
|
|
oncommand="BrowserSearch.loadSearch(QualifySearchTerm());"
|
2008-07-22 16:21:15 +04:00
|
|
|
ondragover="nsDragAndDrop.dragOver(event, searchButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, searchButtonObserver);"
|
2010-06-19 15:01:54 +04:00
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, searchButtonObserver);"/>
|
2009-01-26 13:50:55 +03:00
|
|
|
</toolbaritem>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
|
|
|
<toolbarbutton id="print-button" type="menu-button"
|
|
|
|
class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&printButton.label;"
|
|
|
|
oncommand="if (event.target==this) PrintUtils.print();"
|
2009-01-26 13:50:55 +03:00
|
|
|
tooltiptext="&printButton.tooltip;">
|
2008-07-22 16:21:15 +04:00
|
|
|
<menupopup id="printMenu">
|
|
|
|
<menuitem id="printMenuItemToolbar" label="&printCmd.label;" accesskey="&printCmd.accesskey;"
|
|
|
|
default="true" oncommand="PrintUtils.print()"/>
|
|
|
|
<menuitem id="printPreviewMenuItemToolbar" label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;"
|
|
|
|
oncommand="setTimeout(BrowserPrintPreview, 0);"/>
|
|
|
|
</menupopup>
|
|
|
|
</toolbarbutton>
|
|
|
|
|
2008-11-14 22:22:54 +03:00
|
|
|
<toolbaritem id="throbber-box" align="center">
|
2010-08-30 13:46:39 +04:00
|
|
|
<button id="navigator-throbber"
|
|
|
|
oncommand="goClickThrobber('browser.throbber.url', event)"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
2008-07-22 16:21:15 +04:00
|
|
|
tooltiptext="&throbber.tooltip;"/>
|
2008-11-14 22:22:54 +03:00
|
|
|
</toolbaritem>
|
|
|
|
|
2010-08-09 00:06:47 +04:00
|
|
|
<!-- "Bookmarks" button on personal toolbar -->
|
|
|
|
<toolbarbutton type="menu" id="bookmarks-button"
|
|
|
|
class="bookmark-item" container="true"
|
2008-07-22 16:21:15 +04:00
|
|
|
label="&bookmarksButton.label;"
|
2010-08-09 00:06:47 +04:00
|
|
|
ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
|
|
|
|
ondragover="PlacesMenuDNDHandler.onDragOver(event);"
|
2010-12-16 01:54:52 +03:00
|
|
|
ondragexit="PlacesMenuDNDHandler.onDragExit(event);"
|
2010-08-09 00:06:47 +04:00
|
|
|
ondrop="PlacesMenuDNDHandler.onDrop(event);">
|
|
|
|
<menupopup id="BMB_bookmarksPopup"
|
|
|
|
placespopup="true"
|
|
|
|
context="placesContext"
|
|
|
|
openInTabs="children"
|
|
|
|
oncommand="BookmarksEventHandler.onCommand(event);"
|
|
|
|
onclick="BookmarksEventHandler.onClick(event);"
|
|
|
|
onpopupshowing="BookmarksMenuButton.onPopupShowing(event);
|
|
|
|
if (!this.parentNode._placesView)
|
|
|
|
new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');"
|
|
|
|
tooltip="bhTooltip" popupsinherittooltip="true">
|
2008-07-22 16:21:15 +04:00
|
|
|
<menuitem command="Browser:AddBookmark"/>
|
|
|
|
<menuitem command="Browser:AddBookmarkAs"/>
|
2010-08-09 00:06:47 +04:00
|
|
|
<menuitem command="Browser:BookmarkAllTabs"/>
|
2008-07-22 16:21:15 +04:00
|
|
|
<menuitem command="Browser:ManageBookmark"/>
|
2010-08-09 00:06:47 +04:00
|
|
|
<menuseparator/>
|
|
|
|
<menu class="menu-iconic" disabled="true"
|
|
|
|
label="&feedsMenu.label;" accesskey="&feedsMenu.accesskey;">
|
|
|
|
<menupopup onpopupshowing="window.XULBrowserWindow.populateFeeds(this);"
|
|
|
|
oncommand="subscribeToFeed(event.target.statusText, event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
|
|
|
</menu>
|
|
|
|
<menuseparator/>
|
|
|
|
<menu id="BMB_bookmarksToolbarFolderMenu"
|
|
|
|
class="menu-iconic bookmark-item"
|
|
|
|
label="&personalbarCmd.label;"
|
|
|
|
container="true">
|
|
|
|
<menupopup id="BMB_bookmarksToolbarFolderPopup"
|
|
|
|
placespopup="true"
|
|
|
|
context="placesContext"
|
|
|
|
onpopupshowing="if (!this.parentNode._placesView)
|
|
|
|
new PlacesMenu(event, 'place:folder=TOOLBAR');"/>
|
|
|
|
</menu>
|
|
|
|
<menu id="BMB_unsortedBookmarksFolderMenu"
|
|
|
|
class="menu-iconic bookmark-item"
|
|
|
|
container="true">
|
|
|
|
<menupopup id="BMB_unsortedBookmarksFolderPopup"
|
|
|
|
placespopup="true"
|
|
|
|
context="placesContext"
|
|
|
|
onpopupshowing="if (!this.parentNode._placesView)
|
|
|
|
new PlacesMenu(event, 'place:folder=UNFILED_BOOKMARKS');"/>
|
|
|
|
</menu>
|
|
|
|
<menuseparator/>
|
2008-07-22 16:21:15 +04:00
|
|
|
</menupopup>
|
|
|
|
</toolbarbutton>
|
|
|
|
|
2010-08-09 00:06:47 +04:00
|
|
|
<toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksToolbarItem.label;"
|
|
|
|
removable="true">
|
|
|
|
<hbox flex="1"
|
|
|
|
id="PlacesToolbar"
|
|
|
|
context="placesContext"
|
|
|
|
onclick="BookmarksEventHandler.onClick(event);"
|
|
|
|
oncommand="BookmarksEventHandler.onCommand(event);"
|
|
|
|
tooltip="bhTooltip"
|
|
|
|
popupsinherittooltip="true">
|
|
|
|
<toolbarbutton class="bookmark-item bookmarks-toolbar-customize"
|
|
|
|
mousethrough="never"
|
|
|
|
label="&bookmarksToolbarItem.label;"/>
|
|
|
|
<hbox flex="1">
|
|
|
|
<hbox align="center">
|
|
|
|
<image id="PlacesToolbarDropIndicator"
|
|
|
|
mousethrough="always"
|
|
|
|
collapsed="true"/>
|
|
|
|
</hbox>
|
|
|
|
<scrollbox orient="horizontal"
|
|
|
|
id="PlacesToolbarItems"
|
|
|
|
flex="1"/>
|
|
|
|
<toolbarbutton type="menu"
|
|
|
|
id="PlacesChevron"
|
|
|
|
class="chevron"
|
|
|
|
mousethrough="never"
|
|
|
|
collapsed="true"
|
|
|
|
tooltiptext="&bookmarksToolbarChevron.tooltip;"
|
|
|
|
onpopupshowing="this.parentNode.parentNode
|
|
|
|
._placesView._onChevronPopupShowing(event);">
|
|
|
|
<menupopup id="PlacesChevronPopup"
|
|
|
|
placespopup="true"
|
|
|
|
tooltip="bhTooltip" popupsinherittooltip="true"
|
|
|
|
context="placesContext"/>
|
|
|
|
</toolbarbutton>
|
|
|
|
</hbox>
|
2009-01-26 13:50:55 +03:00
|
|
|
</hbox>
|
|
|
|
</toolbaritem>
|
|
|
|
|
|
|
|
</toolbarpalette>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
|
|
|
</toolbox>
|
2010-07-15 08:02:52 +04:00
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<hbox flex="1">
|
|
|
|
<vbox id="sidebar-box" class="chromeclass-extrachrome"/>
|
|
|
|
<splitter id="sidebar-splitter" class="chromeclass-extrachrome" />
|
2010-07-15 08:02:52 +04:00
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<!-- we only need to handle |ondragdrop| because everything else is
|
|
|
|
taken care of by the builtin behavior inside the tabbrowser -->
|
|
|
|
<vbox id="appcontent" flex="1"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
|
2010-07-23 23:03:23 +04:00
|
|
|
<findbar id="FindToolbar" browserid="content"/>
|
2008-07-22 16:21:15 +04:00
|
|
|
|
|
|
|
<!-- this box is temporary, pending XBLified <browser> -->
|
|
|
|
<hbox id="browser" flex="1">
|
|
|
|
<tabbrowser id="content"
|
|
|
|
flex="1" contenttooltip="aHTMLTooltip"
|
|
|
|
contentcontextmenu="contentAreaContextMenu"
|
|
|
|
onnewtab="BrowserOpenTab();"
|
2010-10-11 08:13:30 +04:00
|
|
|
onnewtabclick="checkForMiddleClick(this, event);"
|
2008-07-22 16:21:15 +04:00
|
|
|
autocompletepopup="PopupAutoComplete"
|
|
|
|
onbookmarkgroup="addGroupmarkAs();"
|
|
|
|
onclick="return contentAreaClick(event);"
|
|
|
|
oncommand="BrowserOnCommand(event);"/>
|
|
|
|
<!-- The oncommand listener above lets us fix bugs like 401575 which
|
|
|
|
require error page UI to do privileged things, without letting
|
|
|
|
error pages have any privilege themselves. -->
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
</hbox>
|
|
|
|
|
2009-02-03 17:54:11 +03:00
|
|
|
<panel id="customizeToolbarSheetPopup"/>
|
|
|
|
|
2008-07-22 16:21:15 +04:00
|
|
|
<statusbar id="status-bar" class="chromeclass-status"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
|
|
|
|
<statusbarpanel id="component-bar"/>
|
|
|
|
<statusbarpanel id="statusbar-display" label="&statusText.label;" flex="1"/>
|
2009-01-10 01:35:20 +03:00
|
|
|
<statusbarpanel class="statusbarpanel-progress" id="statusbar-progresspanel" collapsed="true">
|
2008-07-22 16:21:15 +04:00
|
|
|
<progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
|
|
|
|
</statusbarpanel>
|
|
|
|
<statusbarpanel id="popupIcon" class="statusbarpanel-iconic" hidden="true"
|
|
|
|
oncommand="StatusbarViewPopupManager()"
|
|
|
|
tooltiptext="&popupIcon.tooltiptext;"
|
|
|
|
context="popupBlockerMenu"/>
|
|
|
|
<statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
|
2010-07-23 02:30:59 +04:00
|
|
|
<statusbarpanel class="statusbarpanel-backgroundbox"
|
2009-04-15 16:56:50 +04:00
|
|
|
id="security-button" dir="reverse"
|
2008-07-22 16:21:15 +04:00
|
|
|
oncommand="BrowserPageInfo(null, 'securityTab')"/>
|
|
|
|
</statusbar>
|
|
|
|
</window>
|