browser/base/content/browser.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/base/content/browser.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,1198 @@
     1.4 +#filter substitution
     1.5 +<?xml version="1.0"?>
     1.6 +# -*- Mode: HTML -*-
     1.7 +#
     1.8 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.9 +# License, v. 2.0. If a copy of the MPL was not distributed with this
    1.10 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
    1.11 +
    1.12 +<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
    1.13 +<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
    1.14 +<?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?>
    1.15 +<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUIOverlay.css" type="text/css"?>
    1.16 +<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
    1.17 +<?xml-stylesheet href="chrome://browser/skin/browser-lightweightTheme.css" type="text/css"?>
    1.18 +
    1.19 +<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
    1.20 +<?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
    1.21 +<?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
    1.22 +
    1.23 +# All DTD information is stored in a separate file so that it can be shared by
    1.24 +# hiddenWindow.xul.
    1.25 +#include browser-doctype.inc
    1.26 +
    1.27 +<window id="main-window"
    1.28 +        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    1.29 +        xmlns:svg="http://www.w3.org/2000/svg"
    1.30 +        xmlns:html="http://www.w3.org/1999/xhtml"
    1.31 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.32 +        onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();"
    1.33 +        title="&mainWindow.title;"
    1.34 +        title_normal="&mainWindow.title;"
    1.35 +#ifdef XP_MACOSX
    1.36 +        title_privatebrowsing="&mainWindow.title;&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
    1.37 +        titledefault="&mainWindow.title;"
    1.38 +        titlemodifier=""
    1.39 +        titlemodifier_normal=""
    1.40 +        titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
    1.41 +#else
    1.42 +        title_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
    1.43 +        titlemodifier="&mainWindow.titlemodifier;"
    1.44 +        titlemodifier_normal="&mainWindow.titlemodifier;"
    1.45 +        titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
    1.46 +#endif
    1.47 +#ifdef CAN_DRAW_IN_TITLEBAR
    1.48 +#ifdef XP_WIN
    1.49 +        chromemargin="0,2,2,2"
    1.50 +#else
    1.51 +        chromemargin="0,-1,-1,-1"
    1.52 +#endif
    1.53 +        tabsintitlebar="true"
    1.54 +#endif
    1.55 +        titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
    1.56 +        lightweightthemes="true"
    1.57 +        lightweightthemesfooter="browser-bottombox"
    1.58 +        windowtype="navigator:browser"
    1.59 +        macanimationtype="document"
    1.60 +        screenX="4" screenY="4"
    1.61 +        fullscreenbutton="true"
    1.62 +        sizemode="normal"
    1.63 +        persist="screenX screenY width height sizemode">
    1.64 +
    1.65 +# All JS files which are not content (only) dependent that browser.xul
    1.66 +# wishes to include *must* go into the global-scripts.inc file
    1.67 +# so that they can be shared by macBrowserOverlay.xul.
    1.68 +#include global-scripts.inc
    1.69 +<script type="application/javascript" src="chrome://browser/content/nsContextMenu.js"/>
    1.70 +
    1.71 +<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
    1.72 +
    1.73 +<script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
    1.74 +
    1.75 +# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
    1.76 +# browser-sets.inc file for sharing with hiddenWindow.xul.
    1.77 +#define FULL_BROWSER_WINDOW
    1.78 +#include browser-sets.inc
    1.79 +#undef FULL_BROWSER_WINDOW
    1.80 +
    1.81 +  <popupset id="mainPopupSet">
    1.82 +    <menupopup id="tabContextMenu"
    1.83 +               onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);"
    1.84 +               onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
    1.85 +      <menuitem id="context_reloadTab" label="&reloadTab.label;" accesskey="&reloadTab.accesskey;"
    1.86 +                oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
    1.87 +      <menuseparator/>
    1.88 +      <menuitem id="context_pinTab" label="&pinTab.label;"
    1.89 +                accesskey="&pinTab.accesskey;"
    1.90 +                oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
    1.91 +      <menuitem id="context_unpinTab" label="&unpinTab.label;" hidden="true"
    1.92 +                accesskey="&unpinTab.accesskey;"
    1.93 +                oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/>
    1.94 +      <menu id="context_tabViewMenu" label="&moveToGroup.label;"
    1.95 +            accesskey="&moveToGroup.accesskey;">
    1.96 +        <menupopup id="context_tabViewMenuPopup"
    1.97 +                   onpopupshowing="if (event.target == this) TabView.moveToGroupPopupShowing(event);">
    1.98 +          <menuseparator id="context_tabViewNamedGroups" hidden="true"/>
    1.99 +          <menuitem id="context_tabViewNewGroup" label="&moveToNewGroup.label;"
   1.100 +                    oncommand="TabView.moveTabTo(TabContextMenu.contextTab, null);"/>
   1.101 +        </menupopup>
   1.102 +      </menu>
   1.103 +      <menuitem id="context_openTabInWindow" label="&moveToNewWindow.label;"
   1.104 +                accesskey="&moveToNewWindow.accesskey;"
   1.105 +                tbattr="tabbrowser-multiple"
   1.106 +                oncommand="gBrowser.replaceTabWithWindow(TabContextMenu.contextTab);"/>
   1.107 +      <menuseparator/>
   1.108 +      <menuitem id="context_reloadAllTabs" label="&reloadAllTabs.label;" accesskey="&reloadAllTabs.accesskey;"
   1.109 +                tbattr="tabbrowser-multiple-visible"
   1.110 +                oncommand="gBrowser.reloadAllTabs();"/>
   1.111 +      <menuitem id="context_bookmarkAllTabs"
   1.112 +                label="&bookmarkAllTabs.label;"
   1.113 +                accesskey="&bookmarkAllTabs.accesskey;"
   1.114 +                command="Browser:BookmarkAllTabs"/>
   1.115 +      <menuitem id="context_closeTabsToTheEnd" label="&closeTabsToTheEnd.label;" accesskey="&closeTabsToTheEnd.accesskey;"
   1.116 +                oncommand="gBrowser.removeTabsToTheEndFrom(TabContextMenu.contextTab);"/>
   1.117 +      <menuitem id="context_closeOtherTabs" label="&closeOtherTabs.label;" accesskey="&closeOtherTabs.accesskey;"
   1.118 +                oncommand="gBrowser.removeAllTabsBut(TabContextMenu.contextTab);"/>
   1.119 +      <menuseparator/>
   1.120 +      <menuitem id="context_undoCloseTab"
   1.121 +                label="&undoCloseTab.label;"
   1.122 +                accesskey="&undoCloseTab.accesskey;"
   1.123 +                observes="History:UndoCloseTab"/>
   1.124 +      <menuitem id="context_closeTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;"
   1.125 +                oncommand="gBrowser.removeTab(TabContextMenu.contextTab, { animate: true });"/>
   1.126 +    </menupopup>
   1.127 +
   1.128 +    <!-- bug 415444/582485: event.stopPropagation is here for the cloned version
   1.129 +         of this menupopup -->
   1.130 +    <menupopup id="backForwardMenu"
   1.131 +               onpopupshowing="return FillHistoryMenu(event.target);"
   1.132 +               oncommand="gotoHistoryIndex(event); event.stopPropagation();"
   1.133 +               onclick="checkForMiddleClick(this, event);"/>
   1.134 +    <tooltip id="aHTMLTooltip" page="true"/>
   1.135 +    <tooltip id="remoteBrowserTooltip"/>
   1.136 +
   1.137 +    <!-- for search and content formfill/pw manager -->
   1.138 +    <panel type="autocomplete" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
   1.139 +
   1.140 +    <!-- for url bar autocomplete -->
   1.141 +    <panel type="autocomplete-richlistbox" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
   1.142 +
   1.143 +    <!-- for select dropdowns -->
   1.144 +    <menupopup id="ContentSelectDropdown" rolluponmousewheel="true" hidden="true"/>
   1.145 +
   1.146 +    <!-- for invalid form error message -->
   1.147 +    <panel id="invalid-form-popup" type="arrow" orient="vertical" noautofocus="true" hidden="true" level="parent">
   1.148 +      <description/>
   1.149 +    </panel>
   1.150 +
   1.151 +    <panel id="editBookmarkPanel"
   1.152 +           type="arrow"
   1.153 +           footertype="promobox"
   1.154 +           orient="vertical"
   1.155 +           ignorekeys="true"
   1.156 +           hidden="true"
   1.157 +           onpopupshown="StarUI.panelShown(event);"
   1.158 +           aria-labelledby="editBookmarkPanelTitle">
   1.159 +      <row id="editBookmarkPanelHeader" align="center" hidden="true">
   1.160 +        <vbox align="center">
   1.161 +          <image id="editBookmarkPanelStarIcon"/>
   1.162 +        </vbox>
   1.163 +        <vbox>
   1.164 +          <label id="editBookmarkPanelTitle"/>
   1.165 +          <description id="editBookmarkPanelDescription"/>
   1.166 +          <hbox>
   1.167 +            <button id="editBookmarkPanelRemoveButton"
   1.168 +                    class="editBookmarkPanelHeaderButton"
   1.169 +                    oncommand="StarUI.removeBookmarkButtonCommand();"
   1.170 +                    accesskey="&editBookmark.removeBookmark.accessKey;"/>
   1.171 +          </hbox>
   1.172 +        </vbox>
   1.173 +      </row>
   1.174 +      <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
   1.175 +      <hbox id="editBookmarkPanelBottomButtons" pack="end">
   1.176 +#ifndef XP_UNIX
   1.177 +        <button id="editBookmarkPanelDoneButton"
   1.178 +                class="editBookmarkPanelBottomButton"
   1.179 +                label="&editBookmark.done.label;"
   1.180 +                default="true"
   1.181 +                oncommand="StarUI.panel.hidePopup();"/>
   1.182 +        <button id="editBookmarkPanelDeleteButton"
   1.183 +                class="editBookmarkPanelBottomButton"
   1.184 +                label="&editBookmark.cancel.label;"
   1.185 +                oncommand="StarUI.cancelButtonOnCommand();"/>
   1.186 +#else
   1.187 +        <button id="editBookmarkPanelDeleteButton"
   1.188 +                class="editBookmarkPanelBottomButton"
   1.189 +                label="&editBookmark.cancel.label;"
   1.190 +                oncommand="StarUI.cancelButtonOnCommand();"/>
   1.191 +        <button id="editBookmarkPanelDoneButton"
   1.192 +                class="editBookmarkPanelBottomButton"
   1.193 +                label="&editBookmark.done.label;"
   1.194 +                default="true"
   1.195 +                oncommand="StarUI.panel.hidePopup();"/>
   1.196 +#endif
   1.197 +      </hbox>
   1.198 +    </panel>
   1.199 +
   1.200 +    <!-- UI tour experience -->
   1.201 +    <panel id="UITourTooltip"
   1.202 +           type="arrow"
   1.203 +           hidden="true"
   1.204 +           noautofocus="true"
   1.205 +           noautohide="true"
   1.206 +           align="start"
   1.207 +           orient="vertical"
   1.208 +           role="alert">
   1.209 +     <vbox>
   1.210 +      <hbox pack="end">
   1.211 +        <toolbarbutton id="UITourTooltipClose" class="close-icon"
   1.212 +                       tooltiptext="&uiTour.infoPanel.close;"/>
   1.213 +      </hbox>
   1.214 +      <hbox id="UITourTooltipBody">
   1.215 +        <vbox id="UITourTooltipIconContainer">
   1.216 +          <image id="UITourTooltipIcon"/>
   1.217 +        </vbox>
   1.218 +        <vbox flex="1">
   1.219 +          <label id="UITourTooltipTitle" flex="1"/>
   1.220 +          <description id="UITourTooltipDescription" flex="1"/>
   1.221 +        </vbox>
   1.222 +      </hbox>
   1.223 +      <hbox id="UITourTooltipButtons" flex="1" align="center"/>
   1.224 +     </vbox>
   1.225 +    </panel>
   1.226 +    <!-- type="default" forces frames to be created so that the panel's size can be determined --> 
   1.227 +    <panel id="UITourHighlightContainer"
   1.228 +           type="default"
   1.229 +           hidden="true"
   1.230 +           noautofocus="true"
   1.231 +           noautohide="true"
   1.232 +           flip="none"
   1.233 +           consumeoutsideclicks="false"
   1.234 +           mousethrough="always">
   1.235 +      <box id="UITourHighlight"></box>
   1.236 +    </panel>
   1.237 +
   1.238 +    <panel id="social-share-panel"
   1.239 +           class="social-panel"
   1.240 +           type="arrow"
   1.241 +           orient="horizontal"
   1.242 +           onpopupshowing="SocialShare.onShowing()"
   1.243 +           onpopuphidden="SocialShare.onHidden()"
   1.244 +           hidden="true">
   1.245 +      <vbox class="social-share-toolbar">
   1.246 +        <vbox id="social-share-provider-buttons" flex="1"/>
   1.247 +      </vbox>
   1.248 +    </panel>
   1.249 +
   1.250 +    <panel id="social-notification-panel"
   1.251 +           class="social-panel"
   1.252 +           type="arrow"
   1.253 +           hidden="true"
   1.254 +           noautofocus="true"/>
   1.255 +    <panel id="social-flyout-panel"
   1.256 +           class="social-panel"
   1.257 +           onpopupshown="SocialFlyout.onShown()"
   1.258 +           onpopuphidden="SocialFlyout.onHidden()"
   1.259 +           side="right"
   1.260 +           type="arrow"
   1.261 +           hidden="true"
   1.262 +           flip="slide"
   1.263 +           rolluponmousewheel="true"
   1.264 +           noautofocus="true"
   1.265 +           position="topcenter topright"/>
   1.266 +
   1.267 +    <menupopup id="toolbar-context-menu"
   1.268 +               onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator'));">
   1.269 +      <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode)"
   1.270 +                accesskey="&customizeMenu.moveToPanel.accesskey;"
   1.271 +                label="&customizeMenu.moveToPanel.label;"
   1.272 +                class="customize-context-moveToPanel"/>
   1.273 +      <menuitem oncommand="gCustomizeMode.removeFromArea(document.popupNode)"
   1.274 +                accesskey="&customizeMenu.removeFromToolbar.accesskey;"
   1.275 +                label="&customizeMenu.removeFromToolbar.label;"
   1.276 +                class="customize-context-removeFromToolbar"/>
   1.277 +      <menuseparator/>
   1.278 +      <menuseparator id="viewToolbarsMenuSeparator"/>
   1.279 +      <!-- XXXgijs: we're using oncommand handler here to avoid the event being
   1.280 +                    redirected to the command element, thus preventing
   1.281 +                    listeners on the menupopup or further up the tree from
   1.282 +                    seeing the command event pass by. The observes attribute is
   1.283 +                    here so that the menuitem is still disabled and re-enabled
   1.284 +                    correctly. -->
   1.285 +      <menuitem oncommand="BrowserCustomizeToolbar()"
   1.286 +                observes="cmd_CustomizeToolbars"
   1.287 +                class="viewCustomizeToolbar"
   1.288 +                label="&viewCustomizeToolbar.label;"
   1.289 +                accesskey="&viewCustomizeToolbar.accesskey;"/>
   1.290 +    </menupopup>
   1.291 +
   1.292 +    <menupopup id="blockedPopupOptions"
   1.293 +               onpopupshowing="gPopupBlockerObserver.fillPopupList(event);"
   1.294 +               onpopuphiding="gPopupBlockerObserver.onPopupHiding(event);">
   1.295 +      <menuitem observes="blockedPopupAllowSite"/>
   1.296 +      <menuitem observes="blockedPopupEditSettings"/>
   1.297 +      <menuitem observes="blockedPopupDontShowMessage"/>
   1.298 +      <menuseparator observes="blockedPopupsSeparator"/>
   1.299 +    </menupopup>
   1.300 +
   1.301 +    <menupopup id="autohide-context"
   1.302 +           onpopupshowing="FullScreen.getAutohide(this.firstChild);">
   1.303 +      <menuitem type="checkbox" label="&fullScreenAutohide.label;"
   1.304 +                accesskey="&fullScreenAutohide.accesskey;"
   1.305 +                oncommand="FullScreen.setAutohide();"/>
   1.306 +      <menuseparator/>
   1.307 +      <menuitem label="&fullScreenExit.label;"
   1.308 +                accesskey="&fullScreenExit.accesskey;"
   1.309 +                oncommand="BrowserFullScreen();"/>
   1.310 +    </menupopup>
   1.311 +
   1.312 +    <menupopup id="contentAreaContextMenu" pagemenu="start"
   1.313 +               onpopupshowing="if (event.target != this)
   1.314 +                                 return true;
   1.315 +                               gContextMenu = new nsContextMenu(this, event.shiftKey);
   1.316 +                               if (gContextMenu.shouldDisplay)
   1.317 +                                 updateEditUIVisibility();
   1.318 +                               return gContextMenu.shouldDisplay;"
   1.319 +               onpopuphiding="if (event.target != this)
   1.320 +                                return;
   1.321 +                              gContextMenu.hiding();
   1.322 +                              gContextMenu = null;
   1.323 +                              updateEditUIVisibility();">
   1.324 +#include browser-context.inc
   1.325 +    </menupopup>
   1.326 +
   1.327 +    <menupopup id="placesContext"/>
   1.328 +
   1.329 +    <!-- Popup for site identity information -->
   1.330 +    <panel id="identity-popup"
   1.331 +           type="arrow"
   1.332 +           hidden="true"
   1.333 +           noautofocus="true"
   1.334 +           onpopupshown="if (event.target == this)
   1.335 +                           gIdentityHandler.onPopupShown(event);"
   1.336 +           orient="vertical"
   1.337 +           level="top">
   1.338 +      <hbox id="identity-popup-container" align="top">
   1.339 +        <image id="identity-popup-icon"/>
   1.340 +        <vbox id="identity-popup-content-box">
   1.341 +          <label id="identity-popup-brandName"
   1.342 +                 class="identity-popup-label"
   1.343 +                 value="&brandFullName;"/>
   1.344 +          <label id="identity-popup-chromeLabel"
   1.345 +                 class="identity-popup-label"/>
   1.346 +          <label id="identity-popup-connectedToLabel"
   1.347 +                 class="identity-popup-label"
   1.348 +                 value="&identity.connectedTo;"/>
   1.349 +          <label id="identity-popup-connectedToLabel2"
   1.350 +                 class="identity-popup-label"
   1.351 +                 value="&identity.unverifiedsite2;"/>
   1.352 +          <description id="identity-popup-content-host"
   1.353 +                       class="identity-popup-description"/>
   1.354 +          <label id="identity-popup-runByLabel"
   1.355 +                 class="identity-popup-label"
   1.356 +                 value="&identity.runBy;"/>
   1.357 +          <description id="identity-popup-content-owner"
   1.358 +                       class="identity-popup-description"/>
   1.359 +          <description id="identity-popup-content-supplemental"
   1.360 +                       class="identity-popup-description"/>
   1.361 +          <description id="identity-popup-content-verifier"
   1.362 +                       class="identity-popup-description"/>
   1.363 +          <hbox id="identity-popup-encryption" flex="1">
   1.364 +            <vbox>
   1.365 +              <image id="identity-popup-encryption-icon"/>
   1.366 +            </vbox>
   1.367 +            <description id="identity-popup-encryption-label" flex="1"
   1.368 +                         class="identity-popup-description"/>
   1.369 +          </hbox>
   1.370 +          <vbox id="identity-popup-permissions">
   1.371 +            <separator class="thin"/>
   1.372 +            <label class="identity-popup-label header"
   1.373 +                   value="&identity.permissions;"/>
   1.374 +            <vbox id="identity-popup-permission-list" class="indent"/>
   1.375 +          </vbox>
   1.376 +        </vbox>
   1.377 +      </hbox>
   1.378 +      <!-- Footer button to open security page info -->
   1.379 +      <hbox id="identity-popup-button-container" align="center">
   1.380 +        <button id="identity-popup-help-icon"
   1.381 +               oncommand="gIdentityHandler.handleHelpCommand(event);"
   1.382 +               tooltiptext="&identity.help.tooltip;"/>
   1.383 +        <spacer flex="1"/>
   1.384 +        <button id="identity-popup-more-info-button"
   1.385 +                label="&identity.moreInfoLinkText;"
   1.386 +                oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
   1.387 +      </hbox>
   1.388 +    </panel>
   1.389 +
   1.390 +    <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
   1.391 +      <hbox>
   1.392 +        <button class="ctrlTab-preview" flex="1"/>
   1.393 +        <button class="ctrlTab-preview" flex="1"/>
   1.394 +        <button class="ctrlTab-preview" flex="1"/>
   1.395 +        <button class="ctrlTab-preview" flex="1"/>
   1.396 +        <button class="ctrlTab-preview" flex="1"/>
   1.397 +        <button class="ctrlTab-preview" flex="1"/>
   1.398 +      </hbox>
   1.399 +      <hbox pack="center">
   1.400 +        <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/>
   1.401 +      </hbox>
   1.402 +    </panel>
   1.403 +
   1.404 +    <!-- Sync Panel -->
   1.405 +    <panel id="sync-start-panel" class="sync-panel" type="arrow" hidden="true"
   1.406 +           noautofocus="true" onclick="this.hidePopup();"
   1.407 +           flip="slide">
   1.408 +      <hbox class="sync-panel-outer">
   1.409 +        <image class="sync-panel-icon"/>
   1.410 +        <vbox class="sync-panel-inner">
   1.411 +          <description id="sync-start-panel-title"
   1.412 +                       value="&syncStartPanel2.heading;"/>
   1.413 +          <description id="sync-start-panel-subtitle"
   1.414 +                       value="&syncStartPanel2.subTitle;"/>
   1.415 +        </vbox>
   1.416 +      </hbox>
   1.417 +    </panel>
   1.418 +
   1.419 +    <!-- Sync Error Panel -->
   1.420 +    <panel id="sync-error-panel" class="sync-panel" type="arrow" hidden="true"
   1.421 +           noautofocus="true" onclick="this.hidePopup();"
   1.422 +           flip="slide">
   1.423 +      <hbox class="sync-panel-outer">
   1.424 +        <image class="sync-panel-icon"/>
   1.425 +        <vbox class="sync-panel-inner">
   1.426 +          <description id="sync-error-panel-title"
   1.427 +                       value="&syncErrorPanel.heading;"/>
   1.428 +          <description id="sync-error-panel-subtitle"
   1.429 +                       value="&syncErrorPanel.subTitle;"/>
   1.430 +          <hbox class="sync-panel-button-box">
   1.431 +            <spacer flex="1"/>
   1.432 +            <button class="sync-panel-button"
   1.433 +                    label="&syncErrorPanel.signInButton.label;"
   1.434 +                    accesskey="&syncErrorPanel.signInButton.accesskey;"
   1.435 +                    onclick="gFxAccounts.openSignInAgainPage();"/>
   1.436 +          </hbox>
   1.437 +        </vbox>
   1.438 +      </hbox>
   1.439 +    </panel>
   1.440 +
   1.441 +    <!-- Bookmarks and history tooltip -->
   1.442 +    <tooltip id="bhTooltip"/>
   1.443 +
   1.444 +    <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
   1.445 +
   1.446 +    <tooltip id="back-button-tooltip">
   1.447 +      <label class="tooltip-label" value="&backButton.tooltip;"/>
   1.448 +#ifdef XP_MACOSX
   1.449 +      <label class="tooltip-label" value="&backForwardButtonMenuMac.tooltip;"/>
   1.450 +#else
   1.451 +      <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/>
   1.452 +#endif
   1.453 +    </tooltip>
   1.454 +
   1.455 +    <tooltip id="forward-button-tooltip">
   1.456 +      <label class="tooltip-label" value="&forwardButton.tooltip;"/>
   1.457 +#ifdef XP_MACOSX
   1.458 +      <label class="tooltip-label" value="&backForwardButtonMenuMac.tooltip;"/>
   1.459 +#else
   1.460 +      <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/>
   1.461 +#endif
   1.462 +    </tooltip>
   1.463 +
   1.464 +#include popup-notifications.inc
   1.465 +
   1.466 +#include ../../components/customizableui/content/panelUI.inc.xul
   1.467 +
   1.468 +    <hbox id="downloads-animation-container" mousethrough="always">
   1.469 +      <vbox id="downloads-notification-anchor">
   1.470 +        <vbox id="downloads-indicator-notification"/>
   1.471 +      </vbox>
   1.472 +    </hbox>
   1.473 +
   1.474 +    <hbox id="bookmarked-notification-container" mousethrough="always">
   1.475 +      <vbox id="bookmarked-notification-anchor">
   1.476 +        <vbox id="bookmarked-notification"/>
   1.477 +      </vbox>
   1.478 +      <vbox id="bookmarked-notification-dropmarker-anchor">
   1.479 +        <image id="bookmarked-notification-dropmarker-icon"/>
   1.480 +      </vbox>
   1.481 +    </hbox>
   1.482 +
   1.483 +    <tooltip id="dynamic-shortcut-tooltip"
   1.484 +             onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/>
   1.485 +  </popupset>
   1.486 +
   1.487 +#ifdef CAN_DRAW_IN_TITLEBAR
   1.488 +<vbox id="titlebar">
   1.489 +  <hbox id="titlebar-content">
   1.490 +    <spacer id="titlebar-spacer" flex="1"/>
   1.491 +    <hbox id="titlebar-buttonbox-container">
   1.492 +#ifdef XP_WIN
   1.493 +      <hbox id="private-browsing-indicator-titlebar">
   1.494 +        <hbox class="private-browsing-indicator"/>
   1.495 +      </hbox>
   1.496 +#endif
   1.497 +      <hbox id="titlebar-buttonbox">
   1.498 +        <toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/>
   1.499 +        <toolbarbutton class="titlebar-button" id="titlebar-max" oncommand="onTitlebarMaxClick();"/>
   1.500 +        <toolbarbutton class="titlebar-button" id="titlebar-close" command="cmd_closeWindow"/>
   1.501 +      </hbox>
   1.502 +    </hbox>
   1.503 +#ifdef XP_MACOSX
   1.504 +    <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary
   1.505 +         buttonbox from reversing order in RTL by forcing an LTR direction. -->
   1.506 +    <hbox id="titlebar-secondary-buttonbox" dir="ltr">
   1.507 +      <hbox class="private-browsing-indicator"/>
   1.508 +      <hbox id="titlebar-fullscreen-button"/>
   1.509 +    </hbox>
   1.510 +#endif
   1.511 +  </hbox>
   1.512 +</vbox>
   1.513 +#endif
   1.514 +
   1.515 +<deck flex="1" id="tab-view-deck">
   1.516 +<vbox flex="1" id="browser-panel">
   1.517 +
   1.518 +  <toolbox id="navigator-toolbox" mode="icons">
   1.519 +    <!-- Menu -->
   1.520 +    <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
   1.521 +             defaultset="menubar-items"
   1.522 +             mode="icons" iconsize="small"
   1.523 +#ifdef MENUBAR_CAN_AUTOHIDE
   1.524 +             toolbarname="&menubarCmd.label;"
   1.525 +             accesskey="&menubarCmd.accesskey;"
   1.526 +#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT)
   1.527 +             autohide="true"
   1.528 +#endif
   1.529 +#endif
   1.530 +             context="toolbar-context-menu">
   1.531 +      <toolbaritem id="menubar-items" align="center"
   1.532 +                   cui-areatype="toolbar">
   1.533 +# The entire main menubar is placed into browser-menubar.inc, so that it can be shared by
   1.534 +# hiddenWindow.xul.
   1.535 +#include browser-menubar.inc
   1.536 +      </toolbaritem>
   1.537 +
   1.538 +#ifdef CAN_DRAW_IN_TITLEBAR
   1.539 +#ifndef XP_MACOSX
   1.540 +      <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"
   1.541 +            id="titlebar-placeholder-on-menubar-for-caption-buttons" persist="width"
   1.542 +            skipintoolbarset="true"/>
   1.543 +#endif
   1.544 +#endif
   1.545 +    </toolbar>
   1.546 +
   1.547 +    <toolbar id="TabsToolbar"
   1.548 +             class="toolbar-primary"
   1.549 +             fullscreentoolbar="true"
   1.550 +             customizable="true"
   1.551 +             mode="icons"
   1.552 +             iconsize="small"
   1.553 +             aria-label="&tabsToolbar.label;"
   1.554 +             context="toolbar-context-menu"
   1.555 +             defaultset="tabbrowser-tabs,new-tab-button,alltabs-button"
   1.556 +             collapsed="true">
   1.557 +
   1.558 +#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT)
   1.559 +      <hbox id="private-browsing-indicator"
   1.560 +            skipintoolbarset="true"/>
   1.561 +#endif
   1.562 +
   1.563 +      <tabs id="tabbrowser-tabs"
   1.564 +            class="tabbrowser-tabs"
   1.565 +            tabbrowser="content"
   1.566 +            flex="1"
   1.567 +            setfocus="false"
   1.568 +            tooltip="tabbrowser-tab-tooltip"
   1.569 +            cui-areatype="toolbar"
   1.570 +            stopwatchid="FX_TAB_CLICK_MS">
   1.571 +        <tab class="tabbrowser-tab" selected="true" fadein="true"/>
   1.572 +      </tabs>
   1.573 +
   1.574 +      <toolbarbutton id="new-tab-button"
   1.575 +                     class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.576 +                     label="&tabCmd.label;"
   1.577 +                     command="cmd_newNavigatorTab"
   1.578 +                     onclick="checkForMiddleClick(this, event);"
   1.579 +                     tooltiptext="&newTabButton.tooltip;"
   1.580 +                     ondrop="newTabButtonObserver.onDrop(event)"
   1.581 +                     ondragover="newTabButtonObserver.onDragOver(event)"
   1.582 +                     ondragenter="newTabButtonObserver.onDragOver(event)"
   1.583 +                     ondragexit="newTabButtonObserver.onDragExit(event)"
   1.584 +                     cui-areatype="toolbar"
   1.585 +                     removable="true"/>
   1.586 +
   1.587 +      <toolbarbutton id="alltabs-button"
   1.588 +                     class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
   1.589 +                     type="menu"
   1.590 +                     label="&listAllTabs.label;"
   1.591 +                     tooltiptext="&listAllTabs.label;"
   1.592 +                     removable="false">
   1.593 +        <menupopup id="alltabs-popup"
   1.594 +                   position="after_end">
   1.595 +          <menuitem id="menu_tabview"
   1.596 +                    class="menuitem-iconic"
   1.597 +                    key="key_tabview"
   1.598 +                    label="&viewTabGroups.label;"
   1.599 +                    command="Browser:ToggleTabView"
   1.600 +                    cui-areatype="toolbar"
   1.601 +                    observes="tabviewGroupsNumber"/>
   1.602 +          <menuseparator id="alltabs-popup-separator"/>
   1.603 +        </menupopup>
   1.604 +      </toolbarbutton>
   1.605 +
   1.606 +#if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT)
   1.607 +      <hbox class="private-browsing-indicator" skipintoolbarset="true"/>
   1.608 +#endif
   1.609 +#ifdef CAN_DRAW_IN_TITLEBAR
   1.610 +      <hbox class="titlebar-placeholder" type="caption-buttons"
   1.611 +            id="titlebar-placeholder-on-TabsToolbar-for-captions-buttons" persist="width"
   1.612 +#ifndef XP_MACOSX
   1.613 +            ordinal="1000"
   1.614 +#endif
   1.615 +            skipintoolbarset="true"/>
   1.616 +
   1.617 +#ifdef XP_MACOSX
   1.618 +      <hbox class="titlebar-placeholder" type="fullscreen-button"
   1.619 +            id="titlebar-placeholder-on-TabsToolbar-for-fullscreen-button" persist="width"
   1.620 +            skipintoolbarset="true"/>
   1.621 +#endif
   1.622 +#endif
   1.623 +    </toolbar>
   1.624 +
   1.625 +    <!--
   1.626 +           CAVEAT EMPTOR
   1.627 +           Should you need to add items to the toolbar here, make sure to also add them
   1.628 +           to the default placements of buttons in CustomizableUI.jsm, so the
   1.629 +           customization code doesn't get confused.
   1.630 +      -->
   1.631 +    <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
   1.632 +             aria-label="&navbarCmd.label;"
   1.633 +             fullscreentoolbar="true" mode="icons" customizable="true"
   1.634 +             iconsize="small"
   1.635 +             defaultset="urlbar-container,search-container,webrtc-status-button,bookmarks-menu-button,downloads-button,home-button,social-share-button,social-toolbar-item"
   1.636 +             customizationtarget="nav-bar-customization-target"
   1.637 +             overflowable="true"
   1.638 +             overflowbutton="nav-bar-overflow-button"
   1.639 +             overflowtarget="widget-overflow-list"
   1.640 +             overflowpanel="widget-overflow"
   1.641 +             context="toolbar-context-menu">
   1.642 +
   1.643 +      <hbox id="nav-bar-customization-target" flex="1">
   1.644 +        <toolbaritem id="urlbar-container" flex="400" persist="width"
   1.645 +                     title="&locationItem.title;" removable="false"
   1.646 +                     cui-areatype="toolbar"
   1.647 +                     class="chromeclass-location" overflows="false">
   1.648 +          <toolbarbutton id="back-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.649 +                         label="&backCmd.label;"
   1.650 +                         command="Browser:BackOrBackDuplicate"
   1.651 +                         cui-areatype="toolbar"
   1.652 +                         onclick="checkForMiddleClick(this, event);"
   1.653 +                         tooltip="back-button-tooltip"
   1.654 +                         context="backForwardMenu"/>
   1.655 +          <hbox id="urlbar-wrapper" flex="1">
   1.656 +            <toolbarbutton id="forward-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.657 +                           label="&forwardCmd.label;"
   1.658 +                           command="Browser:ForwardOrForwardDuplicate"
   1.659 +                           cui-areatype="toolbar"
   1.660 +                           onclick="checkForMiddleClick(this, event);"
   1.661 +                           tooltip="forward-button-tooltip"
   1.662 +                           context="backForwardMenu"/>
   1.663 +            <textbox id="urlbar" flex="1"
   1.664 +                     placeholder="&urlbar.placeholder2;"
   1.665 +                     type="autocomplete"
   1.666 +                     autocompletesearch="urlinline history"
   1.667 +                     autocompletesearchparam="enable-actions"
   1.668 +                     autocompletepopup="PopupAutoCompleteRichResult"
   1.669 +                     completeselectedindex="true"
   1.670 +                     tabscrolling="true"
   1.671 +                     showcommentcolumn="true"
   1.672 +                     showimagecolumn="true"
   1.673 +                     enablehistory="true"
   1.674 +                     maxrows="6"
   1.675 +                     newlines="stripsurroundingwhitespace"
   1.676 +                     oninput="gBrowser.userTypedValue = this.value;"
   1.677 +                     ontextentered="this.handleCommand(param);"
   1.678 +                     ontextreverted="return this.handleRevert();"
   1.679 +                     pageproxystate="invalid"
   1.680 +                     onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
   1.681 +                     onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);">
   1.682 +              <box id="notification-popup-box" hidden="true" align="center">
   1.683 +                <image id="default-notification-icon" class="notification-anchor-icon" role="button"/>
   1.684 +                <image id="identity-notification-icon" class="notification-anchor-icon" role="button"/>
   1.685 +                <image id="geo-notification-icon" class="notification-anchor-icon" role="button"/>
   1.686 +                <image id="addons-notification-icon" class="notification-anchor-icon" role="button"/>
   1.687 +            <image id="canvas-notification-icon" class="notification-anchor-icon" role="button"/>
   1.688 +                <image id="indexedDB-notification-icon" class="notification-anchor-icon" role="button"/>
   1.689 +                <image id="password-notification-icon" class="notification-anchor-icon" role="button"/>
   1.690 +                <image id="webapps-notification-icon" class="notification-anchor-icon" role="button"/>
   1.691 +                <image id="plugins-notification-icon" class="notification-anchor-icon" role="button"/>
   1.692 +                <image id="web-notifications-notification-icon" class="notification-anchor-icon" role="button"/>
   1.693 +                <image id="plugin-install-notification-icon" class="notification-anchor-icon" role="button"/>
   1.694 +                <image id="mixed-content-blocked-notification-icon" class="notification-anchor-icon" role="button"/>
   1.695 +                <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon" role="button"/>
   1.696 +                <image id="webRTC-sharingDevices-notification-icon" class="notification-anchor-icon" role="button"/>
   1.697 +                <image id="webRTC-shareMicrophone-notification-icon" class="notification-anchor-icon" role="button"/>
   1.698 +                <image id="webRTC-sharingMicrophone-notification-icon" class="notification-anchor-icon" role="button"/>
   1.699 +                <image id="pointerLock-notification-icon" class="notification-anchor-icon" role="button"/>
   1.700 +                <image id="servicesInstall-notification-icon" class="notification-anchor-icon" role="button"/>
   1.701 +                <image id="translate-notification-icon" class="notification-anchor-icon" role="button"/>
   1.702 +                <image id="translated-notification-icon" class="notification-anchor-icon" role="button"/>
   1.703 +              </box>
   1.704 +              <!-- Use onclick instead of normal popup= syntax since the popup
   1.705 +                   code fires onmousedown, and hence eats our favicon drag events.
   1.706 +                   We only add the identity-box button to the tab order when the location bar
   1.707 +                   has focus, otherwise pressing F6 focuses it instead of the location bar -->
   1.708 +              <box id="identity-box" role="button"
   1.709 +                   align="center"
   1.710 +                   onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
   1.711 +                   onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
   1.712 +                   ondragstart="gIdentityHandler.onDragStart(event);">
   1.713 +                <image id="page-proxy-favicon"
   1.714 +                       onclick="PageProxyClickHandler(event);"
   1.715 +                       pageproxystate="invalid"/>
   1.716 +                <hbox id="identity-icon-labels">
   1.717 +                  <label id="identity-icon-label" class="plain" flex="1"/>
   1.718 +                  <label id="identity-icon-country-label" class="plain"/>
   1.719 +                </hbox>
   1.720 +              </box>
   1.721 +              <box id="urlbar-display-box" align="center">
   1.722 +                <label id="urlbar-display" value="&urlbar.switchToTab.label;"/>
   1.723 +              </box>
   1.724 +              <hbox id="urlbar-icons">
   1.725 +                <image id="page-report-button"
   1.726 +                       class="urlbar-icon"
   1.727 +                       hidden="true"
   1.728 +                       tooltiptext="&pageReportIcon.tooltip;"
   1.729 +                       onclick="gPopupBlockerObserver.onReportButtonClick(event);"/>
   1.730 +              </hbox>
   1.731 +              <toolbarbutton id="urlbar-go-button"
   1.732 +                             class="chromeclass-toolbar-additional"
   1.733 +                             onclick="gURLBar.handleCommand(event);"
   1.734 +                             tooltiptext="&goEndCap.tooltip;"/>
   1.735 +              <toolbarbutton id="urlbar-reload-button"
   1.736 +                             class="chromeclass-toolbar-additional"
   1.737 +                             command="Browser:ReloadOrDuplicate"
   1.738 +                             onclick="checkForMiddleClick(this, event);"
   1.739 +                             tooltiptext="&reloadButton.tooltip;"/>
   1.740 +              <toolbarbutton id="urlbar-stop-button"
   1.741 +                             class="chromeclass-toolbar-additional"
   1.742 +                             command="Browser:Stop"
   1.743 +                             tooltiptext="&stopButton.tooltip;"/>
   1.744 +            </textbox>
   1.745 +          </hbox>
   1.746 +        </toolbaritem>
   1.747 +
   1.748 +        <toolbaritem id="search-container" title="&searchItem.title;"
   1.749 +                     align="center" class="chromeclass-toolbar-additional panel-wide-item"
   1.750 +                     cui-areatype="toolbar"
   1.751 +                     flex="100" persist="width" removable="true">
   1.752 +          <searchbar id="searchbar" flex="1"/>
   1.753 +        </toolbaritem>
   1.754 +
   1.755 +        <toolbarbutton id="webrtc-status-button"
   1.756 +                       class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.757 +                       type="menu"
   1.758 +                       hidden="true"
   1.759 +                       orient="horizontal"
   1.760 +                       label="&webrtcIndicatorButton.label;"
   1.761 +                       tooltiptext="&webrtcIndicatorButton.tooltip;"
   1.762 +                       cui-areatype="toolbar"
   1.763 +                       overflows="false">
   1.764 +          <menupopup onpopupshowing="WebrtcIndicator.fillPopup(this);"
   1.765 +                     onpopuphiding="WebrtcIndicator.clearPopup(this);"
   1.766 +                     oncommand="WebrtcIndicator.menuCommand(event.target);"/>
   1.767 +        </toolbarbutton>
   1.768 +
   1.769 +        <toolbarbutton id="bookmarks-menu-button"
   1.770 +                       class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.771 +                       persist="class"
   1.772 +                       removable="true"
   1.773 +                       type="menu-button"
   1.774 +                       label="&bookmarksMenuButton.label;"
   1.775 +                       tooltip="dynamic-shortcut-tooltip"
   1.776 +                       anchor="dropmarker"
   1.777 +                       ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
   1.778 +                       ondragover="PlacesMenuDNDHandler.onDragOver(event);"
   1.779 +                       ondragleave="PlacesMenuDNDHandler.onDragLeave(event);"
   1.780 +                       ondrop="PlacesMenuDNDHandler.onDrop(event);"
   1.781 +                       cui-areatype="toolbar"
   1.782 +                       oncommand="BookmarkingUI.onCommand(event);">
   1.783 +          <menupopup id="BMB_bookmarksPopup"
   1.784 +                     class="cui-widget-panel cui-widget-panelview cui-widget-panelWithFooter PanelUI-subView"
   1.785 +                     placespopup="true"
   1.786 +                     context="placesContext"
   1.787 +                     openInTabs="children"
   1.788 +                     oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);"
   1.789 +                     onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);"
   1.790 +                     onpopupshowing="BookmarkingUI.onPopupShowing(event);
   1.791 +                                     BookmarkingUI.attachPlacesView(event, this);"
   1.792 +                     tooltip="bhTooltip" popupsinherittooltip="true">
   1.793 +            <menuitem id="BMB_viewBookmarksSidebar"
   1.794 +                      class="subviewbutton"
   1.795 +                      label="&viewBookmarksSidebar2.label;"
   1.796 +                      type="checkbox"
   1.797 +                      oncommand="toggleSidebar('viewBookmarksSidebar');">
   1.798 +              <observes element="viewBookmarksSidebar" attribute="checked"/>
   1.799 +            </menuitem>
   1.800 +            <!-- NB: temporary solution for bug 985024, this should go away soon. -->
   1.801 +            <menuitem id="BMB_bookmarksShowAllTop"
   1.802 +                      class="menuitem-iconic subviewbutton"
   1.803 +                      label="&showAllBookmarks2.label;"
   1.804 +                      command="Browser:ShowAllBookmarks"
   1.805 +                      key="manBookmarkKb"/>
   1.806 +            <menuseparator/>
   1.807 +            <menuitem id="BMB_subscribeToPageMenuitem"
   1.808 +#ifndef XP_MACOSX
   1.809 +                      class="menuitem-iconic subviewbutton"
   1.810 +#else
   1.811 +                      class="subviewbutton"
   1.812 +#endif
   1.813 +                      label="&subscribeToPageMenuitem.label;"
   1.814 +                      oncommand="return FeedHandler.subscribeToFeed(null, event);"
   1.815 +                      onclick="checkForMiddleClick(this, event);"
   1.816 +                      observes="singleFeedMenuitemState"/>
   1.817 +            <menu id="BMB_subscribeToPageMenupopup"
   1.818 +#ifndef XP_MACOSX
   1.819 +                  class="menu-iconic subviewbutton"
   1.820 +#else
   1.821 +                  class="subviewbutton"
   1.822 +#endif
   1.823 +                  label="&subscribeToPageMenupopup.label;"
   1.824 +                  observes="multipleFeedsMenuState">
   1.825 +              <menupopup id="BMB_subscribeToPageSubmenuMenupopup"
   1.826 +                         onpopupshowing="return FeedHandler.buildFeedList(event.target);"
   1.827 +                         oncommand="return FeedHandler.subscribeToFeed(null, event);"
   1.828 +                         onclick="checkForMiddleClick(this, event);"/>
   1.829 +            </menu>
   1.830 +            <menuseparator/>
   1.831 +            <menu id="BMB_bookmarksToolbar"
   1.832 +                  class="menu-iconic bookmark-item subviewbutton"
   1.833 +                  label="&personalbarCmd.label;"
   1.834 +                  container="true">
   1.835 +              <menupopup id="BMB_bookmarksToolbarPopup"
   1.836 +                         placespopup="true"
   1.837 +                         context="placesContext"
   1.838 +                         onpopupshowing="if (!this.parentNode._placesView)
   1.839 +                                           new PlacesMenu(event, 'place:folder=TOOLBAR',
   1.840 +                                                          PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);">
   1.841 +                <menuitem id="BMB_viewBookmarksToolbar"
   1.842 +                          placesanonid="view-toolbar"
   1.843 +                          toolbarId="PersonalToolbar"
   1.844 +                          type="checkbox"
   1.845 +                          oncommand="onViewToolbarCommand(event)"
   1.846 +                          label="&viewBookmarksToolbar.label;"/>
   1.847 +                <menuseparator/>
   1.848 +                <!-- Bookmarks toolbar items -->
   1.849 +              </menupopup>
   1.850 +            </menu>
   1.851 +            <menu id="BMB_unsortedBookmarks"
   1.852 +                  class="menu-iconic bookmark-item subviewbutton"
   1.853 +                  label="&bookmarksMenuButton.unsorted.label;"
   1.854 +                  container="true">
   1.855 +              <menupopup id="BMB_unsortedBookmarksPopup"
   1.856 +                         placespopup="true"
   1.857 +                         context="placesContext"
   1.858 +                         onpopupshowing="if (!this.parentNode._placesView)
   1.859 +                                           new PlacesMenu(event, 'place:folder=UNFILED_BOOKMARKS',
   1.860 +                                                          PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"/>
   1.861 +            </menu>
   1.862 +            <menuseparator/>
   1.863 +            <!-- Bookmarks menu items will go here -->
   1.864 +            <menuitem id="BMB_bookmarksShowAll"
   1.865 +                      class="subviewbutton panel-subview-footer"
   1.866 +                      label="&showAllBookmarks2.label;"
   1.867 +                      command="Browser:ShowAllBookmarks"
   1.868 +                      key="manBookmarkKb"/>
   1.869 +          </menupopup>
   1.870 +        </toolbarbutton>
   1.871 +
   1.872 +        <!-- This is a placeholder for the Downloads Indicator.  It is visible
   1.873 +             during the customization of the toolbar, in the palette, and before
   1.874 +             the Downloads Indicator overlay is loaded. -->
   1.875 +        <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.876 +                       oncommand="DownloadsIndicatorView.onCommand(event);"
   1.877 +                       ondrop="DownloadsIndicatorView.onDrop(event);"
   1.878 +                       ondragover="DownloadsIndicatorView.onDragOver(event);"
   1.879 +                       ondragenter="DownloadsIndicatorView.onDragOver(event);"
   1.880 +                       label="&downloads.label;"
   1.881 +                       removable="true"
   1.882 +                       cui-areatype="toolbar"
   1.883 +                       tooltiptext="&downloads.tooltip;"/>
   1.884 +
   1.885 +        <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.886 +                       persist="class" removable="true"
   1.887 +                       label="&homeButton.label;"
   1.888 +                       ondragover="homeButtonObserver.onDragOver(event)"
   1.889 +                       ondragenter="homeButtonObserver.onDragOver(event)"
   1.890 +                       ondrop="homeButtonObserver.onDrop(event)"
   1.891 +                       ondragexit="homeButtonObserver.onDragExit(event)"
   1.892 +                       onclick="BrowserGoHome(event);"
   1.893 +                       cui-areatype="toolbar"
   1.894 +                       aboutHomeOverrideTooltip="&abouthome.pageTitle;"/>
   1.895 +
   1.896 +
   1.897 +        <toolbarbutton id="social-share-button"
   1.898 +                       class="toolbarbutton-1 chromeclass-toolbar-additional"
   1.899 +                       hidden="true"
   1.900 +                       overflows="false"
   1.901 +                       label="&sharePageCmd.label;"
   1.902 +                       tooltiptext="&sharePageCmd.label;"
   1.903 +                       cui-areatype="toolbar"
   1.904 +                       command="Social:SharePage"/>
   1.905 +      </hbox>
   1.906 +
   1.907 +      <toolbarbutton id="nav-bar-overflow-button"
   1.908 +                     class="toolbarbutton-1 chromeclass-toolbar-additional overflow-button"
   1.909 +                     cui-areatype="toolbar"
   1.910 +                     skipintoolbarset="true"
   1.911 +                     tooltiptext="&navbarOverflow.label;"/>
   1.912 +
   1.913 +      <toolbaritem id="PanelUI-button"
   1.914 +                   class="chromeclass-toolbar-additional"
   1.915 +                   cui-areatype="toolbar"
   1.916 +                   removable="false">
   1.917 +        <toolbarbutton id="PanelUI-menu-button"
   1.918 +                       class="toolbarbutton-1"
   1.919 +                       cui-areatype="toolbar"
   1.920 +                       label="&brandShortName;"
   1.921 +                       tooltiptext="&appmenu.tooltip;"/>
   1.922 +      </toolbaritem>
   1.923 +
   1.924 +      <hbox id="window-controls" hidden="true" pack="end" skipintoolbarset="true"
   1.925 +            ordinal="1000">
   1.926 +        <toolbarbutton id="minimize-button"
   1.927 +                       tooltiptext="&fullScreenMinimize.tooltip;"
   1.928 +                       oncommand="window.minimize();"/>
   1.929 +
   1.930 +        <toolbarbutton id="restore-button"
   1.931 +#ifdef XP_MACOSX
   1.932 +# Prior to 10.7 there wasn't a native fullscreen button so we use #restore-button
   1.933 +# to exit fullscreen and want it to behave like other toolbar buttons.
   1.934 +                       class="toolbarbutton-1"
   1.935 +                       cui-areatype="toolbar"
   1.936 +#endif
   1.937 +                       tooltiptext="&fullScreenRestore.tooltip;"
   1.938 +                       oncommand="BrowserFullScreen();"/>
   1.939 +
   1.940 +        <toolbarbutton id="close-button"
   1.941 +                       tooltiptext="&fullScreenClose.tooltip;"
   1.942 +                       oncommand="BrowserTryToCloseWindow();"/>
   1.943 +      </hbox>
   1.944 +    </toolbar>
   1.945 +
   1.946 +    <toolbarset id="customToolbars" context="toolbar-context-menu"/>
   1.947 +
   1.948 +    <toolbar id="PersonalToolbar"
   1.949 +             mode="icons" iconsize="small"
   1.950 +             class="chromeclass-directories"
   1.951 +             context="toolbar-context-menu"
   1.952 +             defaultset="personal-bookmarks"
   1.953 +             toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
   1.954 +             collapsed="true"
   1.955 +             customizable="true">
   1.956 +      <toolbaritem id="personal-bookmarks"
   1.957 +                   title="&bookmarksToolbarItem.label;"
   1.958 +                   cui-areatype="toolbar"
   1.959 +                   removable="true">
   1.960 +        <toolbarbutton id="bookmarks-toolbar-placeholder"
   1.961 +                       class="toolbarbutton-1"
   1.962 +                       mousethrough="never"
   1.963 +                       label="&bookmarksToolbarItem.label;"
   1.964 +                       oncommand="PlacesToolbarHelper.onPlaceholderCommand();"/>
   1.965 +        <hbox flex="1"
   1.966 +              id="PlacesToolbar"
   1.967 +              context="placesContext"
   1.968 +              onclick="BookmarksEventHandler.onClick(event, this._placesView);"
   1.969 +              oncommand="BookmarksEventHandler.onCommand(event, this._placesView);"
   1.970 +              tooltip="bhTooltip"
   1.971 +              popupsinherittooltip="true">
   1.972 +          <hbox flex="1">
   1.973 +            <hbox id="PlacesToolbarDropIndicatorHolder" align="center" collapsed="true">
   1.974 +              <image id="PlacesToolbarDropIndicator"
   1.975 +                     mousethrough="always"
   1.976 +                     collapsed="true"/>
   1.977 +            </hbox>
   1.978 +            <scrollbox orient="horizontal"
   1.979 +                       id="PlacesToolbarItems"
   1.980 +                       flex="1"/>
   1.981 +            <toolbarbutton type="menu"
   1.982 +                           id="PlacesChevron"
   1.983 +                           class="chevron"
   1.984 +                           mousethrough="never"
   1.985 +                           collapsed="true"
   1.986 +                           tooltiptext="&bookmarksToolbarChevron.tooltip;"
   1.987 +                           onpopupshowing="document.getElementById('PlacesToolbar')
   1.988 +                                                   ._placesView._onChevronPopupShowing(event);">
   1.989 +              <menupopup id="PlacesChevronPopup"
   1.990 +                         placespopup="true"
   1.991 +                         tooltip="bhTooltip" popupsinherittooltip="true"
   1.992 +                         context="placesContext"/>
   1.993 +            </toolbarbutton>
   1.994 +          </hbox>
   1.995 +        </hbox>
   1.996 +      </toolbaritem>
   1.997 +    </toolbar>
   1.998 +
   1.999 +    <!-- This is a shim which will go away ASAP. See bug 749804 for details -->
  1.1000 +    <toolbar id="addon-bar" toolbar-delegate="nav-bar" mode="icons" iconsize="small"
  1.1001 +             customizable="true">
  1.1002 +      <hbox id="addonbar-closebutton"/>
  1.1003 +      <statusbar id="status-bar"/>
  1.1004 +    </toolbar>
  1.1005 +
  1.1006 +    <toolbarpalette id="BrowserToolbarPalette">
  1.1007 +
  1.1008 +# Update primaryToolbarButtons in browser/themes/shared/browser.inc when adding
  1.1009 +# or removing default items with the toolbarbutton-1 class.
  1.1010 +
  1.1011 +      <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1.1012 +#ifdef XP_MACOSX
  1.1013 +                     command="cmd_print" tooltip="dynamic-shortcut-tooltip"
  1.1014 +#else
  1.1015 +                     command="cmd_printPreview" tooltiptext="&printButton.tooltip;"
  1.1016 +#endif
  1.1017 +                     label="&printButton.label;"/>
  1.1018 +
  1.1019 +
  1.1020 +      <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1.1021 +                     label="&newNavigatorCmd.label;"
  1.1022 +                     command="key_newNavigator"
  1.1023 +                     tooltip="dynamic-shortcut-tooltip"
  1.1024 +                     ondrop="newWindowButtonObserver.onDrop(event)"
  1.1025 +                     ondragover="newWindowButtonObserver.onDragOver(event)"
  1.1026 +                     ondragenter="newWindowButtonObserver.onDragOver(event)"
  1.1027 +                     ondragexit="newWindowButtonObserver.onDragExit(event)"/>
  1.1028 +
  1.1029 +      <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1.1030 +                     observes="View:FullScreen"
  1.1031 +                     type="checkbox"
  1.1032 +                     label="&fullScreenCmd.label;"
  1.1033 +                     tooltip="dynamic-shortcut-tooltip"/>
  1.1034 +
  1.1035 +#ifdef MOZ_SERVICES_SYNC
  1.1036 +      <toolbarbutton id="sync-button"
  1.1037 +                     class="toolbarbutton-1 chromeclass-toolbar-additional"
  1.1038 +                     label="&syncToolbarButton.label;"
  1.1039 +                     oncommand="gSyncUI.handleToolbarButton()"/>
  1.1040 +#endif
  1.1041 +
  1.1042 +      <toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1.1043 +                     label="&tabGroupsButton.label;"
  1.1044 +                     command="Browser:ToggleTabView"
  1.1045 +                     tooltip="dynamic-shortcut-tooltip"
  1.1046 +                     observes="tabviewGroupsNumber"/>
  1.1047 +    </toolbarpalette>
  1.1048 +  </toolbox>
  1.1049 +
  1.1050 +  <hbox id="fullscr-toggler" collapsed="true"/>
  1.1051 +
  1.1052 +  <deck id="content-deck" flex="1">
  1.1053 +    <hbox flex="1" id="browser">
  1.1054 +      <vbox id="browser-border-start" hidden="true" layer="true"/>
  1.1055 +      <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
  1.1056 +        <sidebarheader id="sidebar-header" align="center">
  1.1057 +          <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
  1.1058 +          <image id="sidebar-throbber"/>
  1.1059 +          <toolbarbutton class="close-icon tabbable" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
  1.1060 +        </sidebarheader>
  1.1061 +        <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
  1.1062 +                  style="min-width: 14em; width: 18em; max-width: 36em;"/>
  1.1063 +      </vbox>
  1.1064 +
  1.1065 +      <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" hidden="true"/>
  1.1066 +      <vbox id="appcontent" flex="1">
  1.1067 +        <tabbrowser id="content"
  1.1068 +                    flex="1" contenttooltip="aHTMLTooltip"
  1.1069 +                    tabcontainer="tabbrowser-tabs"
  1.1070 +                    contentcontextmenu="contentAreaContextMenu"
  1.1071 +                    autocompletepopup="PopupAutoComplete"
  1.1072 +                    selectpopup="ContentSelectDropdown"
  1.1073 +                    onclick="contentAreaClick(event, false);"/>
  1.1074 +        <chatbar id="pinnedchats" layer="true" mousethrough="always" hidden="true"/>
  1.1075 +      </vbox>
  1.1076 +      <splitter id="social-sidebar-splitter"
  1.1077 +                class="chromeclass-extrachrome sidebar-splitter"
  1.1078 +                observes="socialSidebarBroadcaster"/>
  1.1079 +      <vbox id="social-sidebar-box"
  1.1080 +            class="chromeclass-extrachrome"
  1.1081 +            observes="socialSidebarBroadcaster"
  1.1082 +            persist="width">
  1.1083 +
  1.1084 +        <sidebarheader id="social-sidebar-header" class="sidebar-header" align="center">
  1.1085 +          <image id="social-sidebar-favico"/>
  1.1086 +          <label id="social-sidebar-title" class="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
  1.1087 +          <toolbarbutton id="social-sidebar-button"
  1.1088 +                         class="toolbarbutton-1"
  1.1089 +                         type="menu">
  1.1090 +            <menupopup id="social-statusarea-popup" position="after_end">
  1.1091 +              <menuitem class="social-toggle-sidebar-menuitem"
  1.1092 +                        type="checkbox"
  1.1093 +                        autocheck="false"
  1.1094 +                        command="Social:ToggleSidebar"
  1.1095 +                        label="&social.toggleSidebar.label;"
  1.1096 +                        accesskey="&social.toggleSidebar.accesskey;"/>
  1.1097 +              <menuitem class="social-toggle-notifications-menuitem"
  1.1098 +                        type="checkbox"
  1.1099 +                        autocheck="false"
  1.1100 +                        command="Social:ToggleNotifications"
  1.1101 +                        label="&social.toggleNotifications.label;"
  1.1102 +                        accesskey="&social.toggleNotifications.accesskey;"/>
  1.1103 +              <menuseparator/>
  1.1104 +              <menuseparator class="social-provider-menu" hidden="true"/>
  1.1105 +              <menuitem class="social-addons-menuitem" command="Social:Addons"
  1.1106 +                        label="&social.addons.label;"/>
  1.1107 +              <menuitem label="&social.learnMore.label;"
  1.1108 +                        accesskey="&social.learnMore.accesskey;"
  1.1109 +                        oncommand="SocialUI.showLearnMore();"/>
  1.1110 +            </menupopup>
  1.1111 +          </toolbarbutton>
  1.1112 +        </sidebarheader>
  1.1113 +
  1.1114 +        <browser id="social-sidebar-browser"
  1.1115 +                 type="content"
  1.1116 +                 context="contentAreaContextMenu"
  1.1117 +                 disableglobalhistory="true"
  1.1118 +                 tooltip="aHTMLTooltip"
  1.1119 +                 popupnotificationanchor="social-sidebar-favico"
  1.1120 +                 flex="1"
  1.1121 +                 style="min-width: 14em; width: 18em; max-width: 36em;"/>
  1.1122 +      </vbox>
  1.1123 +      <vbox id="browser-border-end" hidden="true" layer="true"/>
  1.1124 +    </hbox>
  1.1125 +#include ../../components/customizableui/content/customizeMode.inc.xul
  1.1126 +  </deck>
  1.1127 +
  1.1128 +  <hbox id="full-screen-warning-container" hidden="true" fadeout="true">
  1.1129 +    <hbox style="width: 100%;" pack="center"> <!-- Inner hbox needed due to bug 579776. -->
  1.1130 +      <vbox id="full-screen-warning-message" align="center">
  1.1131 +        <description id="full-screen-domain-text"/>
  1.1132 +        <description class="full-screen-description" value="&fullscreenExitHint2.value;"/>
  1.1133 +        <vbox id="full-screen-approval-pane" align="center">
  1.1134 +          <hbox>
  1.1135 +#ifdef XP_UNIX
  1.1136 +            <button label="&fullscreenExitButton.label;"
  1.1137 +                    oncommand="FullScreen.setFullscreenAllowed(false);"
  1.1138 +                    class="full-screen-approval-button"/>
  1.1139 +            <button label="&fullscreenAllowButton.label;"
  1.1140 +                    oncommand="FullScreen.setFullscreenAllowed(true);"
  1.1141 +                    class="full-screen-approval-button"/>
  1.1142 +#else
  1.1143 +            <button label="&fullscreenAllowButton.label;"
  1.1144 +                    oncommand="FullScreen.setFullscreenAllowed(true);"
  1.1145 +                    class="full-screen-approval-button"/>
  1.1146 +            <button label="&fullscreenExitButton.label;"
  1.1147 +                    oncommand="FullScreen.setFullscreenAllowed(false);"
  1.1148 +                    class="full-screen-approval-button"/>
  1.1149 +#endif
  1.1150 +          </hbox>
  1.1151 +          <checkbox id="full-screen-remember-decision"/>
  1.1152 +        </vbox>
  1.1153 +      </vbox>
  1.1154 +    </hbox>
  1.1155 +  </hbox>
  1.1156 +
  1.1157 +  <vbox id="browser-bottombox" layer="true">
  1.1158 +    <notificationbox id="global-notificationbox"/>
  1.1159 +    <toolbar id="developer-toolbar"
  1.1160 +             hidden="true">
  1.1161 +#ifdef XP_MACOSX
  1.1162 +          <toolbarbutton id="developer-toolbar-closebutton"
  1.1163 +                         class="devtools-closebutton"
  1.1164 +                         oncommand="DeveloperToolbar.hide();"
  1.1165 +                         tooltiptext="&devToolbarCloseButton.tooltiptext;"/>
  1.1166 +#endif
  1.1167 +          <stack class="gclitoolbar-stack-node" flex="1">
  1.1168 +            <textbox class="gclitoolbar-input-node" rows="1"/>
  1.1169 +            <hbox class="gclitoolbar-complete-node"/>
  1.1170 +          </stack>
  1.1171 +          <toolbarbutton id="developer-toolbar-toolbox-button"
  1.1172 +                         class="developer-toolbar-button"
  1.1173 +                         observes="devtoolsMenuBroadcaster_DevToolbox"
  1.1174 +                         tooltiptext="&devToolbarToolsButton.tooltip;"/>
  1.1175 +#ifndef XP_MACOSX
  1.1176 +          <toolbarbutton id="developer-toolbar-closebutton"
  1.1177 +                         class="devtools-closebutton"
  1.1178 +                         oncommand="DeveloperToolbar.hide();"
  1.1179 +                         tooltiptext="&devToolbarCloseButton.tooltiptext;"/>
  1.1180 +#endif
  1.1181 +   </toolbar>
  1.1182 +  </vbox>
  1.1183 +
  1.1184 +  <svg:svg height="0">
  1.1185 +#include tab-shape.inc.svg
  1.1186 +    <svg:clipPath id="urlbar-back-button-clip-path" clipPathUnits="userSpaceOnUse">
  1.1187 +#ifndef XP_MACOSX
  1.1188 +      <svg:path d="m 1,-5 l 0,7.8 c 2.5,3.2 4,6.2 4,10.2 c 0,4 -1.5,7 -4,10 l 0,22l10000,0 l 0,-50 l -10000,0 z"/>
  1.1189 +#else
  1.1190 +      <svg:path d="M -11,-5 a 16 16 0 0 1 0,34 l 10000,0 l 0,-34 l -10000,0 z"/>
  1.1191 +#endif
  1.1192 +    </svg:clipPath>
  1.1193 +  </svg:svg>
  1.1194 +
  1.1195 +</vbox>
  1.1196 +# <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck.
  1.1197 +#     Introducing the iframe dynamically, as needed, was found to be better than
  1.1198 +#     starting with an empty iframe here in browser.xul from a Ts standpoint.
  1.1199 +</deck>
  1.1200 +
  1.1201 +</window>

mercurial