1#filter substitution
2<?xml version="1.0"?>
3# -*- Mode: HTML -*-
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9<!-- The "global.css" stylesheet is imported first to allow other stylesheets to
10     override rules using selectors with the same specificity. This applies to
11     both "content" and "skin" packages, which bug 1385444 will unify later. -->
12<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
13
14<!-- While these stylesheets are defined in Toolkit, they are only used in the
15     main browser window, so we can load them here. Bug 1474241 is on file to
16     consider moving these widgets to the "browser" folder. -->
17<?xml-stylesheet href="chrome://global/content/tabprompts.css" type="text/css"?>
18<?xml-stylesheet href="chrome://global/skin/tabprompts.css" type="text/css"?>
19
20<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
21<?xml-stylesheet href="chrome://browser/content/tabbrowser.css" type="text/css"?>
22<?xml-stylesheet href="chrome://browser/content/downloads/downloads.css" type="text/css"?>
23<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
24<?xml-stylesheet href="chrome://browser/content/usercontext/usercontext.css" type="text/css"?>
25<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
26<?xml-stylesheet href="chrome://browser/skin/controlcenter/panel.css" type="text/css"?>
27<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUI.css" type="text/css"?>
28<?xml-stylesheet href="chrome://browser/skin/downloads/downloads.css" type="text/css"?>
29<?xml-stylesheet href="chrome://browser/skin/searchbar.css" type="text/css"?>
30<?xml-stylesheet href="chrome://browser/skin/places/tree-icons.css" type="text/css"?>
31<?xml-stylesheet href="chrome://browser/skin/places/editBookmark.css" type="text/css"?>
32
33# All DTD information is stored in a separate file so that it can be shared by
34# hiddenWindowMac.xhtml.
35<!DOCTYPE window [
36#include browser-doctype.inc
37]>
38
39<html id="main-window"
40        xmlns:html="http://www.w3.org/1999/xhtml"
41        xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
42        xmlns="http://www.w3.org/1999/xhtml"
43#ifdef XP_MACOSX
44        data-l10n-id="browser-main-window-mac"
45#else
46        data-l10n-id="browser-main-window"
47#endif
48        data-l10n-args="{&quot;content-title&quot;:&quot;CONTENTTITLE&quot;}"
49        data-l10n-attrs="data-content-title-default, data-content-title-private, data-title-default, data-title-private"
50#ifdef XP_WIN
51        chromemargin="0,2,2,2"
52#else
53        chromemargin="0,-1,-1,-1"
54#endif
55        tabsintitlebar="true"
56        windowtype="navigator:browser"
57        macanimationtype="document"
58        macnativefullscreen="true"
59        screenX="4" screenY="4"
60        sizemode="normal"
61        retargetdocumentfocus="urlbar-input"
62        scrolling="false"
63        persist="screenX screenY width height sizemode"
64        data-l10n-sync="true">
65<head>
66  <link rel="localization" href="branding/brand.ftl"/>
67  <link rel="localization" href="browser/branding/sync-brand.ftl"/>
68  <link rel="localization" href="browser/branding/brandings.ftl"/>
69  <link rel="localization" href="toolkit/global/textActions.ftl"/>
70  <link rel="localization" href="browser/browser.ftl"/>
71  <link rel="localization" href="browser/browserContext.ftl"/>
72  <link rel="localization" href="browser/browserSets.ftl"/>
73  <link rel="localization" href="browser/menubar.ftl"/>
74  <link rel="localization" href="browser/protectionsPanel.ftl"/>
75  <link rel="localization" href="browser/appmenu.ftl"/>
76  <link rel="localization" href="preview/interventions.ftl"/>
77  <link rel="localization" href="browser/sidebarMenu.ftl"/>
78  <link rel="localization" href="browser/allTabsMenu.ftl"/>
79  <link rel="localization" href="browser/places.ftl"/>
80
81  <title data-l10n-id="browser-main-window-title"></title>
82
83# All JS files which are needed by browser.xhtml and other top level windows to
84# support MacOS specific features *must* go into the global-scripts.inc file so
85# that they can be shared with macWindow.inc.xhtml.
86#include global-scripts.inc
87
88<script>
89  /* eslint-env mozilla/browser-window */
90  Services.scriptloader.loadSubScript("chrome://global/content/contentAreaUtils.js", this);
91  Services.scriptloader.loadSubScript("chrome://browser/content/browser-captivePortal.js", this);
92  if (AppConstants.MOZ_DATA_REPORTING) {
93    Services.scriptloader.loadSubScript("chrome://browser/content/browser-data-submission-info-bar.js", this);
94  }
95  if (!AppConstants.MOZILLA_OFFICIAL) {
96    Services.scriptloader.loadSubScript("chrome://browser/content/browser-development-helpers.js", this);
97  }
98  Services.scriptloader.loadSubScript("chrome://browser/content/browser-media.js", this);
99  Services.scriptloader.loadSubScript("chrome://browser/content/browser-pageActions.js", this);
100  Services.scriptloader.loadSubScript("chrome://browser/content/browser-sidebar.js", this);
101  Services.scriptloader.loadSubScript("chrome://browser/content/browser-tabsintitlebar.js", this);
102  Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser.js", this);
103  Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tab.js", this);
104  Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tabs.js", this);
105  Services.scriptloader.loadSubScript("chrome://browser/content/places/places-menupopup.js", this);
106  Services.scriptloader.loadSubScript("chrome://browser/content/search/autocomplete-popup.js", this);
107  Services.scriptloader.loadSubScript("chrome://browser/content/search/searchbar.js", this);
108
109  window.onload = gBrowserInit.onLoad.bind(gBrowserInit);
110  window.onunload = gBrowserInit.onUnload.bind(gBrowserInit);
111  window.onclose = WindowIsClosing;
112
113  window.addEventListener("MozBeforeInitialXULLayout",
114    gBrowserInit.onBeforeInitialXULLayout.bind(gBrowserInit), { once: true });
115
116  // The listener of DOMContentLoaded must be set on window, rather than
117  // document, because the window can go away before the event is fired.
118  // In that case, we don't want to initialize anything, otherwise we
119  // may be leaking things because they will never be destroyed after.
120  window.addEventListener("DOMContentLoaded",
121    gBrowserInit.onDOMContentLoaded.bind(gBrowserInit), { once: true });
122</script>
123</head>
124<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
125# All sets except for popupsets (commands, keys, and stringbundles)
126# *must* go into the browser-sets.inc file so that they can be shared with other
127# top level windows in macWindow.inc.xhtml.
128#include browser-sets.inc
129  <popupset id="mainPopupSet">
130    <menupopup id="tabContextMenu"
131               onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);"
132               onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
133      <menuitem id="context_reloadTab" data-lazy-l10n-id="reload-tab"
134                oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
135      <menuitem id="context_reloadSelectedTabs" data-lazy-l10n-id="reload-tabs" hidden="true"
136                oncommand="gBrowser.reloadMultiSelectedTabs();"/>
137      <menuitem id="context_toggleMuteTab" oncommand="TabContextMenu.contextTab.toggleMuteAudio();"/>
138      <menuitem id="context_toggleMuteSelectedTabs" hidden="true"
139                oncommand="gBrowser.toggleMuteAudioOnMultiSelectedTabs(TabContextMenu.contextTab);"/>
140      <menuitem id="context_pinTab" data-lazy-l10n-id="pin-tab"
141                oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
142      <menuitem id="context_unpinTab" data-lazy-l10n-id="unpin-tab" hidden="true"
143                oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/>
144      <menuitem id="context_pinSelectedTabs" data-lazy-l10n-id="pin-selected-tabs" hidden="true"
145                oncommand="gBrowser.pinMultiSelectedTabs();"/>
146      <menuitem id="context_unpinSelectedTabs" data-lazy-l10n-id="unpin-selected-tabs" hidden="true"
147                oncommand="gBrowser.unpinMultiSelectedTabs();"/>
148      <menuitem id="context_duplicateTab" data-lazy-l10n-id="duplicate-tab"
149                oncommand="duplicateTabIn(TabContextMenu.contextTab, 'tab');"/>
150      <menuitem id="context_duplicateTabs" data-lazy-l10n-id="duplicate-tabs"
151                oncommand="TabContextMenu.duplicateSelectedTabs();"/>
152      <menuseparator/>
153      <menuitem id="context_selectAllTabs" data-lazy-l10n-id="select-all-tabs"
154                oncommand="gBrowser.selectAllTabs();"/>
155      <menuitem id="context_bookmarkSelectedTabs"
156                hidden="true"
157                data-lazy-l10n-id="bookmark-selected-tabs"
158                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.uniqueSelectedPages);"/>
159      <menuitem id="context_bookmarkTab"
160                data-lazy-l10n-id="bookmark-tab"
161                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.getUniquePages([TabContextMenu.contextTab]));"/>
162      <menu id="context_reopenInContainer"
163            data-lazy-l10n-id="reopen-in-container"
164            hidden="true">
165        <menupopup oncommand="TabContextMenu.reopenInContainer(event);"
166                   onpopupshowing="TabContextMenu.createReopenInContainerMenu(event);"/>
167      </menu>
168      <menu id="context_moveTabOptions">
169        <menupopup id="moveTabOptionsMenu">
170          <menuitem id="context_moveToStart"
171                    data-lazy-l10n-id="move-to-start"
172                    tbattr="tabbrowser-multiple"
173                    oncommand="gBrowser.moveTabsToStart(TabContextMenu.contextTab);"/>
174          <menuitem id="context_moveToEnd"
175                    data-lazy-l10n-id="move-to-end"
176                    tbattr="tabbrowser-multiple"
177                    oncommand="gBrowser.moveTabsToEnd(TabContextMenu.contextTab);"/>
178          <menuitem id="context_openTabInWindow" data-lazy-l10n-id="move-to-new-window"
179                    tbattr="tabbrowser-multiple"
180                    oncommand="gBrowser.replaceTabsWithWindow(TabContextMenu.contextTab);"/>
181        </menupopup>
182      </menu>
183      <menu id="context_sendTabToDevice"
184            class="sync-ui-item">
185        <menupopup id="context_sendTabToDevicePopupMenu"
186                   onpopupshowing="gSync.populateSendTabToDevicesMenu(event.target, TabContextMenu.contextTab.linkedBrowser.currentURI.spec, TabContextMenu.contextTab.linkedBrowser.contentTitle, TabContextMenu.contextTab.multiselected);"/>
187      </menu>
188      <menuseparator/>
189      <menu id="context_closeTabOptions"
190            data-lazy-l10n-id="tab-context-close-multiple-tabs">
191        <menupopup id="closeTabOptions">
192          <menuitem id="context_closeTabsToTheEnd" data-lazy-l10n-id="close-tabs-to-the-end"
193                    oncommand="gBrowser.removeTabsToTheEndFrom(TabContextMenu.contextTab, {animate: true});"/>
194          <menuitem id="context_closeOtherTabs" data-lazy-l10n-id="close-other-tabs"
195                    oncommand="gBrowser.removeAllTabsBut(TabContextMenu.contextTab);"/>
196        </menupopup>
197      </menu>
198      <menuitem id="context_undoCloseTab"
199                data-lazy-l10n-id="tab-context-undo-close-tabs"
200                data-l10n-args='{"tabCount": 1}'
201                observes="History:UndoCloseTab"/>
202      <menuitem id="context_closeTab" data-lazy-l10n-id="close-tab"
203                oncommand="gBrowser.removeTab(TabContextMenu.contextTab, { animate: true });"/>
204      <menuitem id="context_closeSelectedTabs" data-lazy-l10n-id="close-tabs"
205                hidden="true"
206                oncommand="gBrowser.removeMultiSelectedTabs();"/>
207    </menupopup>
208
209    <!-- bug 415444/582485: event.stopPropagation is here for the cloned version
210         of this menupopup -->
211    <menupopup id="backForwardMenu"
212               onpopupshowing="return FillHistoryMenu(event.target);"
213               oncommand="gotoHistoryIndex(event); event.stopPropagation();"
214               onclick="checkForMiddleClick(this, event);"/>
215    <tooltip id="aHTMLTooltip" page="true"/>
216    <tooltip id="remoteBrowserTooltip"/>
217
218    <menupopup id="new-tab-button-popup"
219               onpopupshowing="return CreateContainerTabMenu(event);"
220               onclick="checkForMiddleClick(this, event);"/>
221    <!-- for search and content formfill/pw manager -->
222
223    <panel is="autocomplete-richlistbox-popup"
224           type="autocomplete-richlistbox"
225           id="PopupAutoComplete"
226           role="group"
227           noautofocus="true"
228           hidden="true"
229           overflowpadding="4"
230           norolluponanchor="true"
231           nomaxresults="true" />
232
233    <!-- for search with one-off buttons -->
234    <panel is="search-autocomplete-richlistbox-popup"
235           type="autocomplete-richlistbox"
236           id="PopupSearchAutoComplete"
237           role="group"
238           noautofocus="true"
239           hidden="true" />
240
241    <!-- for date/time picker. consumeoutsideclicks is set to never, so that
242         clicks on the anchored input box are never consumed. -->
243    <panel id="DateTimePickerPanel"
244           type="arrow"
245           hidden="true"
246           orient="vertical"
247           noautofocus="true"
248           norolluponanchor="true"
249           consumeoutsideclicks="never"
250           level="parent"
251           tabspecific="true">
252    </panel>
253
254    <!-- for select dropdowns. The menupopup is what shows the list of options,
255         and the popuponly menulist makes things like the menuactive attributes
256         work correctly on the menupopup. ContentSelectDropdown expects the
257         popuponly menulist to be its immediate parent. -->
258    <menulist popuponly="true" id="ContentSelectDropdown" hidden="true">
259      <menupopup rolluponmousewheel="true"
260                 activateontab="true" position="after_start"
261                 level="parent"
262#ifdef XP_WIN
263                 consumeoutsideclicks="false" ignorekeys="shortcuts"
264#endif
265        />
266    </menulist>
267
268    <!-- for invalid form error message -->
269    <panel id="invalid-form-popup" type="arrow" orient="vertical" noautofocus="true" hidden="true" level="parent">
270      <description/>
271    </panel>
272
273    <html:template id="editBookmarkPanelTemplate">
274      <panel id="editBookmarkPanel"
275             class="panel-no-padding"
276             type="arrow"
277             orient="vertical"
278             ignorekeys="true"
279             hidden="true"
280             tabspecific="true"
281             aria-labelledby="editBookmarkPanelTitle">
282        <box class="panel-header">
283          <label id="editBookmarkPanelTitle"/>
284          <toolbarbutton tabindex="0" id="editBookmarkPanelInfoButton" class="panel-info-button" oncommand="StarUI.toggleRecommendation();" >
285            <image/>
286          </toolbarbutton>
287        </box>
288        <html:div id="editBookmarkPanelInfoArea">
289          <html:div id="editBookmarkPanelRecommendation"></html:div>
290          <html:div id="editBookmarkPanelFaviconContainer">
291            <html:img id="editBookmarkPanelFavicon"/>
292          </html:div>
293          <html:div id="editBookmarkPanelImage"></html:div>
294        </html:div>
295#include ../../components/places/content/editBookmarkPanel.inc.xhtml
296          <vbox id="editBookmarkPanelBottomContent"
297                flex="1">
298            <checkbox id="editBookmarkPanel_showForNewBookmarks"
299                      data-l10n-id="bookmark-panel-show-editor-checkbox"
300                      oncommand="StarUI.onShowForNewBookmarksCheckboxCommand();"/>
301          </vbox>
302          <hbox id="editBookmarkPanelBottomButtons"
303                class="panel-footer"
304                data-l10n-id="bookmark-panel"
305                data-l10n-attrs="style">
306#ifndef XP_UNIX
307            <button id="editBookmarkPanelDoneButton"
308                    class="editBookmarkPanelBottomButton"
309                    data-l10n-id="bookmark-panel-done-button"
310                    default="true"
311                    oncommand="StarUI.panel.hidePopup();"/>
312            <button id="editBookmarkPanelRemoveButton"
313                    class="editBookmarkPanelBottomButton"
314                    oncommand="StarUI.removeBookmarkButtonCommand();"/>
315#else
316            <button id="editBookmarkPanelRemoveButton"
317                    class="editBookmarkPanelBottomButton"
318                    oncommand="StarUI.removeBookmarkButtonCommand();"/>
319            <button id="editBookmarkPanelDoneButton"
320                    class="editBookmarkPanelBottomButton"
321                    data-l10n-id="bookmark-panel-done-button"
322                    default="true"
323                    oncommand="StarUI.panel.hidePopup();"/>
324#endif
325          </hbox>
326      </panel>
327    </html:template>
328
329    <html:template id="UITourTooltipTemplate">
330      <!-- UI tour experience -->
331      <panel id="UITourTooltip"
332             type="arrow"
333             noautofocus="true"
334             noautohide="true"
335             align="start"
336             orient="vertical"
337             role="alert">
338       <vbox>
339        <hbox id="UITourTooltipBody">
340          <image id="UITourTooltipIcon"/>
341          <vbox flex="1">
342            <hbox id="UITourTooltipTitleContainer">
343              <label id="UITourTooltipTitle" flex="1"/>
344              <toolbarbutton id="UITourTooltipClose" class="close-icon"
345                             tooltiptext="&uiTour.infoPanel.close;"/>
346            </hbox>
347            <description id="UITourTooltipDescription" flex="1"/>
348          </vbox>
349        </hbox>
350        <hbox id="UITourTooltipButtons" flex="1" align="center"/>
351       </vbox>
352      </panel>
353    </html:template>
354    <html:template id="UITourHighlightTemplate">
355      <!-- type="default" forces frames to be created so that the panel's size can be determined -->
356      <panel id="UITourHighlightContainer"
357             type="default"
358             noautofocus="true"
359             noautohide="true"
360             flip="none"
361             consumeoutsideclicks="false">
362        <box id="UITourHighlight"></box>
363      </panel>
364    </html:template>
365
366    <panel id="sidebarMenu-popup"
367           class="cui-widget-panel"
368           role="group"
369           type="arrow"
370           hidden="true"
371           flip="slide"
372           orient="vertical"
373           position="bottomcenter topleft">
374      <toolbarbutton id="sidebar-switcher-bookmarks"
375                     type="checkbox"
376                     data-l10n-id="sidebar-menu-bookmarks"
377                     class="subviewbutton subviewbutton-iconic"
378                     key="viewBookmarksSidebarKb"
379                     oncommand="SidebarUI.show('viewBookmarksSidebar');"/>
380      <toolbarbutton id="sidebar-switcher-history"
381                     type="checkbox"
382                     data-l10n-id="sidebar-menu-history"
383                     class="subviewbutton subviewbutton-iconic"
384                     key="key_gotoHistory"
385                     oncommand="SidebarUI.show('viewHistorySidebar');"/>
386      <toolbarbutton id="sidebar-switcher-tabs"
387                     type="checkbox"
388                     data-l10n-id="sidebar-menu-synced-tabs"
389                     class="subviewbutton subviewbutton-iconic sync-ui-item"
390                     oncommand="SidebarUI.show('viewTabsSidebar');"/>
391      <toolbarseparator/>
392      <!-- Extension toolbarbuttons go here. -->
393      <toolbarseparator id="sidebar-extensions-separator"/>
394      <toolbarbutton id="sidebar-reverse-position"
395                     class="subviewbutton"
396                     oncommand="SidebarUI.reversePosition()"/>
397      <toolbarseparator/>
398      <toolbarbutton data-l10n-id="sidebar-menu-close"
399                     class="subviewbutton"
400                     oncommand="SidebarUI.hide()"/>
401    </panel>
402
403    <menupopup id="toolbar-context-menu"
404               onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator')); ToolbarContextMenu.updateDownloadsAutoHide(this); ToolbarContextMenu.updateExtension(this)">
405      <menuitem oncommand="ToolbarContextMenu.openAboutAddonsForContextAction(this.parentElement)"
406                data-lazy-l10n-id="toolbar-context-menu-manage-extension"
407                contexttype="toolbaritem"
408                class="customize-context-manageExtension"/>
409      <menuitem oncommand="ToolbarContextMenu.removeExtensionForContextAction(this.parentElement)"
410                data-lazy-l10n-id="toolbar-context-menu-remove-extension"
411                contexttype="toolbaritem"
412                class="customize-context-removeExtension"/>
413      <menuitem oncommand="ToolbarContextMenu.reportExtensionForContextAction(this.parentElement, 'toolbar_context_menu')"
414                data-lazy-l10n-id="toolbar-context-menu-report-extension"
415                contexttype="toolbaritem"
416                class="customize-context-reportExtension"/>
417      <menuseparator/>
418      <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode, 'toolbar-context-menu')"
419                data-lazy-l10n-id="toolbar-context-menu-pin-to-overflow-menu"
420                contexttype="toolbaritem"
421                class="customize-context-moveToPanel"/>
422      <menuitem id="toolbar-context-autohide-downloads-button"
423                oncommand="ToolbarContextMenu.onDownloadsAutoHideChange(event);"
424                type="checkbox"
425                data-lazy-l10n-id="toolbar-context-menu-auto-hide-downloads-button"
426                contexttype="toolbaritem"/>
427      <menuitem oncommand="gCustomizeMode.removeFromArea(document.popupNode, 'toolbar-context-menu')"
428                data-lazy-l10n-id="toolbar-context-menu-remove-from-toolbar"
429                contexttype="toolbaritem"
430                class="customize-context-removeFromToolbar"/>
431      <menuitem id="toolbar-context-reloadSelectedTab"
432                contexttype="tabbar"
433                oncommand="gBrowser.reloadMultiSelectedTabs();"
434                data-lazy-l10n-id="toolbar-context-menu-reload-selected-tab"/>
435      <menuitem id="toolbar-context-reloadSelectedTabs"
436                contexttype="tabbar"
437                oncommand="gBrowser.reloadMultiSelectedTabs();"
438                data-lazy-l10n-id="toolbar-context-menu-reload-selected-tabs"/>
439      <menuitem id="toolbar-context-bookmarkSelectedTab"
440                contexttype="tabbar"
441                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.uniqueSelectedPages);"
442                data-lazy-l10n-id="toolbar-context-menu-bookmark-selected-tab"/>
443      <menuitem id="toolbar-context-bookmarkSelectedTabs"
444                contexttype="tabbar"
445                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.uniqueSelectedPages);"
446                data-lazy-l10n-id="toolbar-context-menu-bookmark-selected-tabs"/>
447      <menuitem id="toolbar-context-selectAllTabs"
448                contexttype="tabbar"
449                oncommand="gBrowser.selectAllTabs();"
450                data-lazy-l10n-id="toolbar-context-menu-select-all-tabs"/>
451      <menuitem id="toolbar-context-undoCloseTab"
452                contexttype="tabbar"
453                data-lazy-l10n-id="toolbar-context-menu-undo-close-tabs"
454                observes="History:UndoCloseTab"/>
455      <menuseparator/>
456      <menuseparator id="viewToolbarsMenuSeparator"/>
457      <!-- XXXgijs: we're using oncommand handler here to avoid the event being
458                    redirected to the command element, thus preventing
459                    listeners on the menupopup or further up the tree from
460                    seeing the command event pass by. The observes attribute is
461                    here so that the menuitem is still disabled and re-enabled
462                    correctly. -->
463      <menuitem oncommand="gCustomizeMode.enter()"
464                observes="cmd_CustomizeToolbars"
465                class="viewCustomizeToolbar"
466                data-lazy-l10n-id="toolbar-context-menu-view-customize-toolbar"/>
467    </menupopup>
468
469    <menupopup id="blockedPopupOptions"
470               onpopupshowing="gPopupBlockerObserver.fillPopupList(event);"
471               onpopuphiding="gPopupBlockerObserver.onPopupHiding(event);">
472      <menuitem id="blockedPopupAllowSite"
473                accesskey="&allowPopups.accesskey;"
474                oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
475      <menuitem
476#ifdef XP_WIN
477                label="&editPopupSettings.label;"
478#else
479                label="&editPopupSettingsUnix.label;"
480#endif
481                accesskey="&editPopupSettings.accesskey;"
482                oncommand="gPopupBlockerObserver.editPopupSettings();"/>
483      <menuitem id="blockedPopupDontShowMessage"
484                accesskey="&dontShowMessage.accesskey;"
485                type="checkbox"
486                oncommand="gPopupBlockerObserver.dontShowMessage();"/>
487      <menuseparator id="blockedPopupsSeparator"/>
488    </menupopup>
489
490    <menupopup id="autohide-context"
491           onpopupshowing="FullScreen.getAutohide(this.firstChild);">
492      <menuitem type="checkbox" data-l10n-id="full-screen-autohide"
493                oncommand="FullScreen.setAutohide();"/>
494      <menuseparator/>
495      <menuitem data-l10n-id="full-screen-exit"
496                oncommand="BrowserFullScreen();"/>
497    </menupopup>
498
499    <menupopup id="contentAreaContextMenu" pagemenu="#page-menu-separator"
500               onpopupshowing="if (event.target != this)
501                                 return true;
502                               gContextMenu = new nsContextMenu(this, event.shiftKey);
503                               if (gContextMenu.shouldDisplay)
504                                 updateEditUIVisibility();
505                               return gContextMenu.shouldDisplay;"
506               onpopuphiding="if (event.target != this)
507                                return;
508                              gContextMenu.hiding();
509                              gContextMenu = null;
510                              updateEditUIVisibility();">
511#include browser-context.inc
512    </menupopup>
513
514    <menupopup id="pictureInPictureToggleContextMenu">
515      <menuitem label="&pictureInPictureHideToggle.label;"
516                accesskey="&pictureInPictureHideToggle.accesskey;"
517                oncommand="PictureInPicture.hideToggle();" />
518    </menupopup>
519
520#include ../../components/places/content/placesContextMenu.inc.xhtml
521
522    <panel id="ctrlTab-panel" hidden="true" norestorefocus="true" level="top">
523      <hbox id="ctrlTab-previews"/>
524      <hbox id="ctrlTab-showAll-container" pack="center"/>
525    </panel>
526
527    <panel id="pageActionPanel"
528           class="cui-widget-panel panel-no-padding"
529           role="group"
530           type="arrow"
531           hidden="true"
532           flip="slide"
533           position="bottomcenter topright"
534           tabspecific="true"
535           noautofocus="true"
536           pinTab-title="&pinTab.label;"
537           unpinTab-title="&unpinTab.label;"
538           pocket-title="&saveToPocketCmd.label;"
539           copyURL-title="&pageAction.copyLink.label;"
540           emailLink-title="&emailPageCmd.label;"
541           sendToDevice-notReadyTitle="&sendToDevice.syncNotReady.label;"
542           shareURL-title="&pageAction.shareUrl.label;"
543           shareMore-label="&pageAction.shareMore.label;">
544      <panelmultiview id="pageActionPanelMultiView"
545                      mainViewId="pageActionPanelMainView"
546                      viewCacheId="appMenu-viewCache">
547        <panelview id="pageActionPanelMainView"
548                   context="pageActionContextMenu"
549                   class="PanelUI-subView">
550          <vbox class="panel-subview-body"/>
551        </panelview>
552      </panelmultiview>
553    </panel>
554
555    <html:template id="confirmation-hint-wrapper">
556      <panel id="confirmation-hint"
557             role="alert"
558             type="arrow"
559             flip="slide"
560             position="bottomcenter topright"
561             tabspecific="true"
562             noautofocus="true">
563        <hbox id="confirmation-hint-checkmark-animation-container">
564         <image id="confirmation-hint-checkmark-image"/>
565        </hbox>
566        <vbox id="confirmation-hint-message-container">
567         <label id="confirmation-hint-message"/>
568         <label id="confirmation-hint-description"/>
569        </vbox>
570      </panel>
571    </html:template>
572
573    <menupopup id="pageActionContextMenu"
574               onpopupshowing="BrowserPageActions.onContextMenuShowing(event, this);">
575      <menuitem class="pageActionContextMenuItem builtInUnpinned"
576                oncommand="BrowserPageActions.togglePinningForContextAction();"
577                data-l10n-id="page-action-add-to-urlbar"/>
578      <menuitem class="pageActionContextMenuItem builtInPinned"
579                oncommand="BrowserPageActions.togglePinningForContextAction();"
580                data-l10n-id="page-action-remove-from-urlbar"/>
581      <menuitem class="pageActionContextMenuItem extensionUnpinned"
582                oncommand="BrowserPageActions.togglePinningForContextAction();"
583                data-l10n-id="page-action-add-to-urlbar"/>
584      <menuitem class="pageActionContextMenuItem extensionPinned"
585                oncommand="BrowserPageActions.togglePinningForContextAction();"
586                data-l10n-id="page-action-remove-from-urlbar"/>
587      <menuseparator class="pageActionContextMenuItem extensionPinned extensionUnpinned"/>
588      <menuitem class="pageActionContextMenuItem extensionPinned extensionUnpinned"
589                oncommand="BrowserPageActions.openAboutAddonsForContextAction();"
590                data-l10n-id="page-action-manage-extension"/>
591      <menuitem class="pageActionContextMenuItem extensionPinned extensionUnpinned removeExtensionItem"
592                oncommand="BrowserPageActions.removeExtensionForContextAction();"
593                data-l10n-id="page-action-remove-extension"/>
594    </menupopup>
595
596#include ../../components/places/content/bookmarksHistoryTooltip.inc.xhtml
597
598    <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
599
600    <tooltip id="back-button-tooltip">
601      <description class="tooltip-label" data-l10n-id="navbar-tooltip-back"/>
602      <description class="tooltip-label" data-l10n-id="navbar-tooltip-instruction"/>
603    </tooltip>
604
605    <tooltip id="forward-button-tooltip">
606      <description class="tooltip-label" data-l10n-id="navbar-tooltip-forward"/>
607      <description class="tooltip-label" data-l10n-id="navbar-tooltip-instruction"/>
608    </tooltip>
609
610#include popup-notifications.inc
611
612#include ../../components/customizableui/content/panelUI.inc.xhtml
613#include ../../components/controlcenter/content/identityPanel.inc.xhtml
614#include ../../components/controlcenter/content/protectionsPanel.inc.xhtml
615#include ../../components/downloads/content/downloadsPanel.inc.xhtml
616#include ../../../devtools/startup/enableDevToolsPopup.inc.xhtml
617#include browser-allTabsMenu.inc.xhtml
618
619    <hbox id="downloads-animation-container">
620      <vbox id="downloads-notification-anchor" hidden="true">
621        <vbox id="downloads-indicator-notification"/>
622      </vbox>
623    </hbox>
624
625    <tooltip id="dynamic-shortcut-tooltip"
626             onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/>
627
628    <menupopup id="SyncedTabsSidebarContext">
629      <menuitem data-lazy-l10n-id="synced-tabs-context-open"
630                id="syncedTabsOpenSelected" where="current"/>
631      <menuitem data-lazy-l10n-id="synced-tabs-context-open-in-new-tab"
632                id="syncedTabsOpenSelectedInTab" where="tab"/>
633      <menuitem data-lazy-l10n-id="synced-tabs-context-open-in-new-window"
634                id="syncedTabsOpenSelectedInWindow" where="window"/>
635      <menuitem data-lazy-l10n-id="synced-tabs-context-open-in-new-private-window"
636                id="syncedTabsOpenSelectedInPrivateWindow" where="window" private="true"/>
637      <menuseparator/>
638      <menuitem data-lazy-l10n-id="synced-tabs-context-bookmark-single-tab"
639                id="syncedTabsBookmarkSelected"/>
640      <menuitem data-lazy-l10n-id="synced-tabs-context-copy"
641                id="syncedTabsCopySelected"/>
642      <menuseparator/>
643      <menuitem data-lazy-l10n-id="synced-tabs-context-open-all-in-tabs"
644                id="syncedTabsOpenAllInTabs"/>
645      <menuitem data-lazy-l10n-id="synced-tabs-context-manage-devices"
646                id="syncedTabsManageDevices"
647                oncommand="gSync.openDevicesManagementPage('syncedtabs-sidebar');"/>
648      <menuitem data-lazy-l10n-id="synced-tabs-context-sync-now"
649                id="syncedTabsRefresh"/>
650    </menupopup>
651    <menupopup id="SyncedTabsSidebarTabsFilterContext"
652               class="textbox-contextmenu">
653      <menuitem data-l10n-id="text-action-undo"
654                cmd="cmd_undo"/>
655      <menuseparator/>
656      <menuitem data-l10n-id="text-action-cut"
657                cmd="cmd_cut"/>
658      <menuitem data-l10n-id="text-action-copy"
659                cmd="cmd_copy"/>
660      <menuitem data-l10n-id="text-action-paste"
661                cmd="cmd_paste"/>
662      <menuitem data-l10n-id="text-action-delete"
663                cmd="cmd_delete"/>
664      <menuseparator/>
665      <menuitem data-l10n-id="text-action-select-all"
666                cmd="cmd_selectAll"/>
667      <menuseparator/>
668      <menuitem data-lazy-l10n-id="synced-tabs-context-sync-now"
669                id="syncedTabsRefreshFilter"/>
670    </menupopup>
671
672    <hbox id="statuspanel" inactive="true">
673      <hbox id="statuspanel-inner">
674        <label id="statuspanel-label"
675               role="status"
676               aria-live="off"
677               flex="1"
678               crop="end"/>
679      </hbox>
680    </hbox>
681
682    <html:template id="sharing-tabs-warning-panel-template">
683      <panel id="sharing-tabs-warning-panel"
684             role="alert"
685             flip="slide"
686             type="arrow"
687             orient="vertical"
688             ignorekeys="true"
689             consumeoutsideclicks="never"
690             norolluponanchor="true"
691             onpopupshown="gSharedTabWarning.sharedTabWarningShown();">
692        <hbox type="window" align="start">
693          <image class="screen-icon popup-notification-icon"></image>
694          <vbox flex="1" pack="start">
695            <label>
696              <html:span id="sharing-warning-window-panel-header"
697                         role="heading"
698                         aria-level="1"
699                         data-l10n-id="sharing-warning-window"/>
700              <html:span id="sharing-warning-screen-panel-header"
701                         role="heading"
702                         aria-level="1"
703                         data-l10n-id="sharing-warning-screen"/>
704            </label>
705            <hbox align="center">
706              <button id="sharing-warning-proceed-to-tab" oncommand="gSharedTabWarning.allowSharedTabSwitch();" flex="1" data-l10n-id="sharing-warning-proceed-to-tab"/>
707            </hbox>
708            <hbox pack="start">
709              <checkbox id="sharing-warning-disable-for-session" data-l10n-id="sharing-warning-disable-for-session"/>
710            </hbox>
711          </vbox>
712        </hbox>
713      </panel>
714    </html:template>
715  </popupset>
716  <box id="appMenu-viewCache" hidden="true"/>
717
718  <!-- Temporary wrapper until we move away from XUL flex to allow a negative
719       margin-top to slide the toolbox off screen in fullscreen layout.-->
720  <box>
721  <toolbox id="navigator-toolbox" flex="1">
722
723    <vbox id="titlebar">
724      <!-- Menu -->
725      <toolbar type="menubar" id="toolbar-menubar"
726               class="browser-toolbar chromeclass-menubar titlebar-color"
727               customizable="true"
728               mode="icons"
729#ifdef MENUBAR_CAN_AUTOHIDE
730               toolbarname="&menubarCmd.label;"
731               accesskey="&menubarCmd.accesskey;"
732               autohide="true"
733#endif
734               context="toolbar-context-menu">
735        <toolbaritem id="menubar-items" align="center">
736# The entire main menubar is placed into browser-menubar.inc, so that it can be
737# shared with other top level windows in macWindow.inc.xhtml.
738#include browser-menubar.inc
739        </toolbaritem>
740        <spacer flex="1" skipintoolbarset="true" style="-moz-box-ordinal-group: 1000;"/>
741#include titlebar-items.inc.xhtml
742      </toolbar>
743
744      <toolbar id="TabsToolbar"
745               class="browser-toolbar titlebar-color"
746               fullscreentoolbar="true"
747               customizable="true"
748               customizationtarget="TabsToolbar-customization-target"
749               mode="icons"
750               aria-label="&tabsToolbar.label;"
751               context="toolbar-context-menu"
752               flex="1">
753
754        <hbox class="titlebar-spacer" type="pre-tabs"/>
755
756        <hbox flex="1" align="end" class="toolbar-items">
757          <hbox id="TabsToolbar-customization-target" flex="1">
758            <tabs id="tabbrowser-tabs"
759                  is="tabbrowser-tabs"
760                  flex="1"
761                  aria-multiselectable="true"
762                  setfocus="false"
763                  tooltip="tabbrowser-tab-tooltip"
764                  stopwatchid="FX_TAB_CLICK_MS">
765              <hbox class="tab-drop-indicator" hidden="true"/>
766              <arrowscrollbox id="tabbrowser-arrowscrollbox" orient="horizontal" flex="1" style="min-width: 1px;" clicktoscroll="true" scrolledtostart="true" scrolledtoend="true">
767                <tab is="tabbrowser-tab" class="tabbrowser-tab" selected="true" visuallyselected="true" fadein="true"/>
768                <toolbarbutton id="tabs-newtab-button"
769                               class="toolbarbutton-1"
770                               command="cmd_newNavigatorTab"
771                               onclick="checkForMiddleClick(this, event);"
772                               tooltip="dynamic-shortcut-tooltip"/>
773                <spacer class="closing-tabs-spacer" style="width: 0;"/>
774              </arrowscrollbox>
775              <html:span id="tabbrowser-tab-a11y-desc" hidden="true"/>
776            </tabs>
777
778            <toolbarbutton id="new-tab-button"
779                           class="toolbarbutton-1 chromeclass-toolbar-additional"
780                           label="&tabCmd.label;"
781                           command="cmd_newNavigatorTab"
782                           onclick="checkForMiddleClick(this, event);"
783                           tooltip="dynamic-shortcut-tooltip"
784                           ondrop="newTabButtonObserver.onDrop(event)"
785                           ondragover="newTabButtonObserver.onDragOver(event)"
786                           ondragenter="newTabButtonObserver.onDragOver(event)"
787                           ondragexit="newTabButtonObserver.onDragExit(event)"
788                           cui-areatype="toolbar"
789                           removable="true"/>
790
791            <toolbarbutton id="alltabs-button"
792                           class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
793                           badged="true"
794                           oncommand="gTabsPanel.showAllTabsPanel(event);"
795                           label="&listAllTabs.label;"
796                           tooltiptext="&listAllTabs.label;"
797                           removable="false"/>
798          </hbox>
799        </hbox>
800
801        <hbox class="titlebar-spacer" type="post-tabs"/>
802
803#ifndef XP_MACOSX
804        <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;"
805                aria-live="polite"/>
806        <hbox class="private-browsing-indicator"/>
807#endif
808
809#include titlebar-items.inc.xhtml
810
811#ifdef XP_MACOSX
812        <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary
813             buttonbox from reversing order in RTL by forcing an LTR direction. -->
814        <hbox id="titlebar-secondary-buttonbox" dir="ltr">
815          <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;" aria-live="polite"/>
816          <hbox class="private-browsing-indicator"/>
817          <hbox id="titlebar-fullscreen-button"/>
818        </hbox>
819#endif
820      </toolbar>
821
822    </vbox>
823
824    <toolbar id="nav-bar"
825             class="browser-toolbar"
826             aria-label="&navbar.accessibleLabel;"
827             fullscreentoolbar="true" mode="icons" customizable="true"
828             customizationtarget="nav-bar-customization-target"
829             overflowable="true"
830             overflowbutton="nav-bar-overflow-button"
831             overflowtarget="widget-overflow-list"
832             overflowpanel="widget-overflow"
833             context="toolbar-context-menu">
834
835      <toolbartabstop/>
836      <hbox id="nav-bar-customization-target" flex="1">
837        <toolbarbutton id="back-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
838                       data-l10n-id="toolbar-button-back"
839                       removable="false" overflows="false"
840                       keepbroadcastattributeswhencustomizing="true"
841                       command="Browser:BackOrBackDuplicate"
842                       onclick="checkForMiddleClick(this, event);"
843                       tooltip="back-button-tooltip"
844                       context="backForwardMenu"/>
845        <toolbarbutton id="forward-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
846                       data-l10n-id="toolbar-button-forward"
847                       removable="false" overflows="false"
848                       keepbroadcastattributeswhencustomizing="true"
849                       command="Browser:ForwardOrForwardDuplicate"
850                       onclick="checkForMiddleClick(this, event);"
851                       tooltip="forward-button-tooltip"
852                       context="backForwardMenu"/>
853        <toolbaritem id="stop-reload-button" class="chromeclass-toolbar-additional"
854                     data-l10n-id="toolbar-button-stop-reload"
855                     removable="true" overflows="false">
856          <toolbarbutton id="reload-button" class="toolbarbutton-1"
857                         data-l10n-id="toolbar-button-reload"
858                         command="Browser:ReloadOrDuplicate"
859                         onclick="checkForMiddleClick(this, event);"
860                         tooltip="dynamic-shortcut-tooltip">
861            <box class="toolbarbutton-animatable-box">
862              <image class="toolbarbutton-animatable-image"/>
863            </box>
864          </toolbarbutton>
865          <toolbarbutton id="stop-button" class="toolbarbutton-1"
866                         data-l10n-id="toolbar-button-stop"
867                         command="Browser:Stop"
868                         tooltip="dynamic-shortcut-tooltip">
869            <box class="toolbarbutton-animatable-box">
870              <image class="toolbarbutton-animatable-image"/>
871            </box>
872          </toolbarbutton>
873        </toolbaritem>
874        <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
875                       removable="true"
876                       label="&homeButton.label;"
877                       ondragover="homeButtonObserver.onDragOver(event)"
878                       ondragenter="homeButtonObserver.onDragOver(event)"
879                       ondrop="homeButtonObserver.onDrop(event)"
880                       ondragexit="homeButtonObserver.onDragExit(event)"
881                       key="goHome"
882                       onclick="BrowserHome(event);"
883                       cui-areatype="toolbar"
884                       tooltiptext="&homeButton.defaultPage.tooltip;"/>
885        <toolbarspring cui-areatype="toolbar" class="chromeclass-toolbar-additional"/>
886        <toolbaritem id="urlbar-container" flex="400" persist="width"
887                     removable="false"
888                     class="chromeclass-location" overflows="false">
889          <toolbartabstop/>
890          <hbox id="urlbar" flex="1"
891                context=""
892                data-l10n-id="urlbar-default-placeholder"
893                data-l10n-attrs="defaultPlaceholder"
894                focused="true"
895                pageproxystate="invalid">
896            <hbox id="urlbar-background"/>
897            <hbox id="urlbar-input-container"
898                  flex="1"
899                  pageproxystate="invalid">
900              <box id="urlbar-search-button"
901                   class="chromeclass-toolbar-additional"/>
902              <!-- Use onclick instead of normal popup= syntax since the popup
903                   code fires onmousedown, and hence eats our favicon drag events. -->
904              <box id="tracking-protection-icon-container" align="center"
905                   role="button"
906                   onclick="gProtectionsHandler.handleProtectionsButtonEvent(event);"
907                   onkeypress="gProtectionsHandler.handleProtectionsButtonEvent(event);"
908                   onmouseover="gProtectionsHandler.onTrackingProtectionIconHoveredOrFocused();"
909                   onfocus="gProtectionsHandler.onTrackingProtectionIconHoveredOrFocused();"
910                   tooltip="tracking-protection-icon-tooltip">
911                <box id="tracking-protection-icon-box">
912                  <image id="tracking-protection-icon"/>
913                  <box id="tracking-protection-icon-animatable-box" flex="1">
914                    <image id="tracking-protection-icon-animatable-image" flex="1"/>
915                  </box>
916                </box>
917                <tooltip id="tracking-protection-icon-tooltip">
918                  <description id="tracking-protection-icon-tooltip-label" class="tooltip-label"/>
919                </tooltip>
920              </box>
921              <box id="identity-box" role="button"
922                   align="center"
923                   data-l10n-id="urlbar-identity-button"
924                   pageproxystate="invalid"
925                   onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
926                   onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
927                   ondragstart="gIdentityHandler.onDragStart(event);">
928                <image id="identity-icon"
929                       consumeanchor="identity-box"
930                       onclick="PageProxyClickHandler(event);"/>
931                <image id="permissions-granted-icon"
932                       data-l10n-id="urlbar-permissions-granted"/>
933                <box style="pointer-events: none;">
934                    <image class="sharing-icon" id="webrtc-sharing-icon"/>
935                    <image class="sharing-icon geo-icon" id="geo-sharing-icon"/>
936                    <image class="sharing-icon xr-icon" id="xr-sharing-icon"/>
937                </box>
938                <box id="blocked-permissions-container" align="center">
939                  <image data-permission-id="geo" class="blocked-permission-icon geo-icon" role="button"
940                         data-l10n-id="urlbar-geolocation-blocked"/>
941                  <image data-permission-id="xr" class="blocked-permission-icon xr-icon" role="button"
942                         data-l10n-id="urlbar-xr-blocked"/>
943                  <image data-permission-id="desktop-notification" class="blocked-permission-icon desktop-notification-icon" role="button"
944                         data-l10n-id="urlbar-web-notifications-blocked"/>
945                  <image data-permission-id="camera" class="blocked-permission-icon camera-icon" role="button"
946                         data-l10n-id="urlbar-camera-blocked"/>
947                  <image data-permission-id="microphone" class="blocked-permission-icon microphone-icon" role="button"
948                         data-l10n-id="urlbar-microphone-blocked"/>
949                  <image data-permission-id="screen" class="blocked-permission-icon screen-icon" role="button"
950                         data-l10n-id="urlbar-screen-blocked"/>
951                  <image data-permission-id="persistent-storage" class="blocked-permission-icon persistent-storage-icon" role="button"
952                         data-l10n-id="urlbar-persistent-storage-blocked"/>
953                  <image data-permission-id="popup" class="blocked-permission-icon popup-icon" role="button"
954                         data-l10n-id="urlbar-popup-blocked"/>
955                  <image data-permission-id="autoplay-media" class="blocked-permission-icon autoplay-media-icon" role="button"
956                         data-l10n-id="urlbar-autoplay-media-blocked"/>
957                  <image data-permission-id="canvas" class="blocked-permission-icon canvas-icon" role="button"
958                         data-l10n-id="urlbar-canvas-blocked"/>
959                  <image data-permission-id="midi" class="blocked-permission-icon midi-icon" role="button"
960                         data-l10n-id="urlbar-midi-blocked"/>
961                  <image data-permission-id="install" class="blocked-permission-icon install-icon" role="button"
962                         data-l10n-id="urlbar-install-blocked"/>
963                </box>
964                <box id="notification-popup-box"
965                     hidden="true"
966                     onmouseover="document.getElementById('identity-box').classList.add('no-hover');"
967                     onmouseout="document.getElementById('identity-box').classList.remove('no-hover');"
968                     align="center">
969                  <image id="default-notification-icon" class="notification-anchor-icon" role="button"
970                         data-l10n-id="urlbar-default-notification-anchor"/>
971                  <image id="geo-notification-icon" class="notification-anchor-icon geo-icon" role="button"
972                         data-l10n-id="urlbar-geolocation-notification-anchor"/>
973                  <image id="xr-notification-icon" class="notification-anchor-icon xr-icon" role="button"
974                         data-l10n-id="urlbar-xr-notification-anchor"/>
975                  <image id="autoplay-media-notification-icon" class="notification-anchor-icon autoplay-media-icon" role="button"
976                         data-l10n-id="urlbar-autoplay-notification-anchor"/>
977                  <image id="addons-notification-icon" class="notification-anchor-icon install-icon" role="button"
978                         data-l10n-id="urlbar-addons-notification-anchor"/>
979                  <image id="canvas-notification-icon" class="notification-anchor-icon" role="button"
980                         data-l10n-id="urlbar-canvas-notification-anchor"/>
981                  <image id="indexedDB-notification-icon" class="notification-anchor-icon indexedDB-icon" role="button"
982                         data-l10n-id="urlbar-indexed-db-notification-anchor"/>
983                  <image id="password-notification-icon" class="notification-anchor-icon login-icon" role="button"
984                         data-l10n-id="urlbar-password-notification-anchor"/>
985                  <stack id="plugins-notification-icon" class="notification-anchor-icon" role="button" align="center" data-l10n-id="urlbar-plugins-notification-anchor">
986                    <image class="plugin-icon" />
987                    <image id="plugin-icon-badge" />
988                  </stack>
989                  <image id="web-notifications-notification-icon" class="notification-anchor-icon desktop-notification-icon" role="button"
990                         data-l10n-id="urlbar-web-notification-anchor"/>
991                  <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon camera-icon" role="button"
992                         data-l10n-id="urlbar-web-rtc-share-devices-notification-anchor"/>
993                  <image id="webRTC-shareMicrophone-notification-icon" class="notification-anchor-icon microphone-icon" role="button"
994                         data-l10n-id="urlbar-web-rtc-share-microphone-notification-anchor"/>
995                  <image id="webRTC-shareScreen-notification-icon" class="notification-anchor-icon screen-icon" role="button"
996                         data-l10n-id="urlbar-web-rtc-share-screen-notification-anchor"/>
997                  <image id="servicesInstall-notification-icon" class="notification-anchor-icon service-icon" role="button"
998                         data-l10n-id="urlbar-services-notification-anchor"/>
999                  <image id="translate-notification-icon" class="notification-anchor-icon translation-icon" role="button"
1000                         data-l10n-id="urlbar-translate-notification-anchor"/>
1001                  <image id="translated-notification-icon" class="notification-anchor-icon translation-icon in-use" role="button"
1002                         data-l10n-id="urlbar-translated-notification-anchor"/>
1003                  <image id="eme-notification-icon" class="notification-anchor-icon drm-icon" role="button"
1004                         data-l10n-id="urlbar-eme-notification-anchor"/>
1005                  <image id="persistent-storage-notification-icon" class="notification-anchor-icon persistent-storage-icon" role="button"
1006                         data-l10n-id="urlbar-persistent-storage-notification-anchor"/>
1007                  <image id="midi-notification-icon" class="notification-anchor-icon midi-icon" role="button"
1008                         data-l10n-id="urlbar-midi-notification-anchor"/>
1009                  <image id="webauthn-notification-icon" class="notification-anchor-icon" role="button"
1010                         data-l10n-id="urlbar-web-authn-anchor"/>
1011                  <image id="storage-access-notification-icon" class="notification-anchor-icon storage-access-icon" role="button"
1012                         data-l10n-id="urlbar-storage-access-anchor"/>
1013                </box>
1014                <image id="remote-control-icon"
1015                       data-l10n-id="urlbar-remote-control-notification-anchor"/>
1016                <label id="identity-icon-label" class="plain" crop="center" flex="1"/>
1017              </box>
1018              <box id="urlbar-label-box" align="center">
1019                <label id="urlbar-label-switchtab" class="urlbar-label" data-l10n-id="urlbar-switch-to-tab"/>
1020                <label id="urlbar-label-extension" class="urlbar-label" data-l10n-id="urlbar-extension"/>
1021              </box>
1022              <moz-input-box tooltip="aHTMLTooltip"
1023                             class="urlbar-input-box"
1024                             flex="1"
1025                             role="combobox"
1026                             aria-owns="urlbar-results">
1027                <html:input id="urlbar-scheme"
1028                            required="required"/>
1029                <html:input id="urlbar-input"
1030                            anonid="input"
1031                            aria-controls="urlbar-results"
1032                            aria-autocomplete="both"
1033                            inputmode="mozAwesomebar"
1034                            data-l10n-id="urlbar-placeholder"
1035                            data-l10n-attrs="placeholder"/>
1036              </moz-input-box>
1037              <image id="urlbar-go-button"
1038                     class="urlbar-icon"
1039                     onclick="gURLBar.handleCommand(event);"
1040                     data-l10n-id="urlbar-go-button"/>
1041              <hbox id="page-action-buttons" context="pageActionContextMenu">
1042                <toolbartabstop/>
1043                <hbox id="contextual-feature-recommendation" role="button" hidden="true">
1044                  <hbox id="cfr-label-container">
1045                    <label id="cfr-label"/>
1046                  </hbox>
1047                  <image id="cfr-button"
1048                         class="urlbar-icon urlbar-page-action"
1049                         role="presentation"/>
1050                </hbox>
1051                <hbox id="userContext-icons" hidden="true">
1052                  <label id="userContext-label"/>
1053                  <image id="userContext-indicator"/>
1054                </hbox>
1055                <image id="reader-mode-button"
1056                       class="urlbar-icon urlbar-page-action"
1057                       tooltip="dynamic-shortcut-tooltip"
1058                       role="button"
1059                       hidden="true"
1060                       onclick="ReaderParent.buttonClick(event);"/>
1061                <toolbarbutton id="urlbar-zoom-button"
1062                       onclick="FullZoom.reset();"
1063                       tooltip="dynamic-shortcut-tooltip"
1064                       hidden="true"/>
1065                <box id="pageActionSeparator" class="urlbar-page-action"/>
1066                <image id="pageActionButton"
1067                       class="urlbar-icon urlbar-page-action"
1068                       role="button"
1069                       data-l10n-id="urlbar-page-action-button"
1070                       onmousedown="BrowserPageActions.mainButtonClicked(event);"
1071                       onkeypress="BrowserPageActions.mainButtonClicked(event);"/>
1072                <image id="pocket-button"
1073                       class="urlbar-icon urlbar-page-action"
1074                       data-l10n-id="urlbar-pocket-button"
1075                       role="button"
1076                       hidden="true"
1077                       onclick="BrowserPageActions.doCommandForAction(PageActions.actionForID('pocket'), event, this);"/>
1078                <hbox id="star-button-box"
1079                      hidden="true"
1080                      class="urlbar-icon-wrapper urlbar-page-action"
1081                      onclick="BrowserPageActions.doCommandForAction(PageActions.actionForID('bookmark'), event, this);">
1082                  <image id="star-button"
1083                         class="urlbar-icon"
1084                         role="button"/>
1085                  <hbox id="star-button-animatable-box">
1086                    <image id="star-button-animatable-image"
1087                           role="presentation"/>
1088                  </hbox>
1089                </hbox>
1090              </hbox>
1091            </hbox>
1092          </hbox>
1093          <toolbartabstop/>
1094        </toolbaritem>
1095
1096        <toolbarspring cui-areatype="toolbar" class="chromeclass-toolbar-additional"/>
1097
1098        <!-- This is a placeholder for the Downloads Indicator.  It is visible
1099             during the customization of the toolbar, in the palette, and before
1100             the Downloads Indicator overlay is loaded. -->
1101        <toolbarbutton id="downloads-button"
1102                       class="toolbarbutton-1 chromeclass-toolbar-additional"
1103                       badged="true"
1104                       key="key_openDownloads"
1105                       onmousedown="DownloadsIndicatorView.onCommand(event);"
1106                       onkeypress="DownloadsIndicatorView.onCommand(event);"
1107                       ondrop="DownloadsIndicatorView.onDrop(event);"
1108                       ondragover="DownloadsIndicatorView.onDragOver(event);"
1109                       ondragenter="DownloadsIndicatorView.onDragOver(event);"
1110                       label="&downloads.label;"
1111                       removable="true"
1112                       overflows="false"
1113                       cui-areatype="toolbar"
1114                       hidden="true"
1115                       tooltip="dynamic-shortcut-tooltip"
1116                       indicator="true">
1117            <!-- The panel's anchor area is smaller than the outer button, but must
1118                 always be visible and must not move or resize when the indicator
1119                 state changes, otherwise the panel could change its position or lose
1120                 its arrow unexpectedly. -->
1121            <stack id="downloads-indicator-anchor"
1122                   consumeanchor="downloads-button">
1123              <box id="downloads-indicator-icon"/>
1124              <stack id="downloads-indicator-progress-outer">
1125                <box id="downloads-indicator-progress-inner"/>
1126              </stack>
1127            </stack>
1128          </toolbarbutton>
1129
1130        <toolbarbutton id="library-button" class="toolbarbutton-1 chromeclass-toolbar-additional subviewbutton-nav"
1131                       removable="true"
1132                       onmousedown="PanelUI.showSubView('appMenu-libraryView', this, event);"
1133                       onkeypress="PanelUI.showSubView('appMenu-libraryView', this, event);"
1134                       closemenu="none"
1135                       cui-areatype="toolbar"
1136                       tooltiptext="&libraryButton.tooltip;"
1137                       label="&places.library.title;"/>
1138
1139        <toolbarbutton id="fxa-toolbar-menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional subviewbutton-nav"
1140                       badged="true"
1141                       onmousedown="gSync.toggleAccountPanel('PanelUI-fxa', this, event)"
1142                       onkeypress="gSync.toggleAccountPanel('PanelUI-fxa', this, event)"
1143                       consumeanchor="fxa-toolbar-menu-button"
1144                       closemenu="none"
1145                       label="&fxa.menu.firefoxAccount;"
1146                       tooltiptext="&fxa.menu.firefoxAccount;"
1147                       cui-areatype="toolbar"
1148                       removable="true">
1149                       <vbox>
1150                        <image id="fxa-avatar-image"/>
1151                       </vbox>
1152        </toolbarbutton>
1153      </hbox>
1154
1155      <toolbarbutton id="nav-bar-overflow-button"
1156                     class="toolbarbutton-1 chromeclass-toolbar-additional overflow-button"
1157                     skipintoolbarset="true"
1158                     tooltiptext="&navbarOverflow.label;">
1159        <box class="toolbarbutton-animatable-box">
1160          <image class="toolbarbutton-animatable-image"/>
1161        </box>
1162      </toolbarbutton>
1163
1164      <toolbaritem id="PanelUI-button"
1165                   removable="false">
1166        <toolbarbutton id="pioneer-button"
1167                       class="toolbarbutton-1"
1168                       hidden="true"
1169                       badged="true"
1170                       onmousedown="switchToTabHavingURI('about:pioneer', true);"
1171                       onkeypress="switchToTabHavingURI('about:pioneer', true);"/>
1172        <toolbarbutton id="whats-new-menu-button"
1173                       class="toolbarbutton-1"
1174                       hidden="true"
1175                       badged="true"
1176                       onmousedown="PanelUI.showSubView('PanelUI-whatsNew', this, event);"
1177                       onkeypress="PanelUI.showSubView('PanelUI-whatsNew', this, event);"/>
1178        <toolbarbutton id="PanelUI-menu-button"
1179                       class="toolbarbutton-1"
1180                       badged="true"
1181                       consumeanchor="PanelUI-button"
1182                       label="&brandShortName;"
1183                       tooltiptext="&appmenu.tooltip;"/>
1184      </toolbaritem>
1185
1186      <hbox id="window-controls" hidden="true" pack="end" skipintoolbarset="true"
1187            style="-moz-box-ordinal-group: 1000;">
1188        <toolbarbutton id="minimize-button"
1189                       data-l10n-id="browser-window-minimize-button"
1190                       oncommand="window.minimize();"/>
1191
1192        <toolbarbutton id="restore-button"
1193                       data-l10n-id="browser-window-restore-down-button"
1194                       oncommand="BrowserFullScreen();"/>
1195
1196        <toolbarbutton id="close-button"
1197                       data-l10n-id="browser-window-close-button"
1198                       oncommand="BrowserTryToCloseWindow();"/>
1199      </hbox>
1200
1201      <box id="library-animatable-box" class="toolbarbutton-animatable-box">
1202        <image class="toolbarbutton-animatable-image"/>
1203      </box>
1204    </toolbar>
1205
1206    <toolbar id="PersonalToolbar"
1207             mode="icons"
1208             class="browser-toolbar chromeclass-directories"
1209             context="toolbar-context-menu"
1210             toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
1211             aria-label="&personalbar.accessibleLabel;"
1212             collapsed="true"
1213             customizable="true">
1214      <toolbartabstop skipintoolbarset="true"/>
1215
1216      <toolbaritem id="personal-bookmarks"
1217                   title="&bookmarksToolbarItem.label;"
1218                   cui-areatype="toolbar"
1219                   removable="true">
1220        <toolbarbutton id="bookmarks-toolbar-placeholder"
1221                       class="bookmark-item"
1222                       label="&bookmarksToolbarItem.label;"/>
1223        <toolbarbutton id="bookmarks-toolbar-button"
1224                       class="toolbarbutton-1"
1225                       flex="1"
1226                       label="&bookmarksToolbarItem.label;"
1227                       oncommand="PlacesToolbarHelper.onPlaceholderCommand();"/>
1228        <hbox flex="1"
1229              id="PlacesToolbar"
1230              context="placesContext"
1231              onmouseup="BookmarksEventHandler.onMouseUp(event);"
1232              onclick="BookmarksEventHandler.onClick(event, this._placesView);"
1233              oncommand="BookmarksEventHandler.onCommand(event);"
1234              tooltip="bhTooltip"
1235              popupsinherittooltip="true">
1236          <hbox flex="1">
1237            <hbox id="PlacesToolbarDropIndicatorHolder" align="center" collapsed="true">
1238              <image id="PlacesToolbarDropIndicator"
1239                     collapsed="true"/>
1240            </hbox>
1241            <scrollbox orient="horizontal"
1242                       id="PlacesToolbarItems"
1243                       flex="1"/>
1244            <toolbarbutton type="menu"
1245                           id="PlacesChevron"
1246                           class="toolbarbutton-1"
1247                           collapsed="true"
1248                           tooltiptext="&bookmarksToolbarChevron.tooltip;"
1249                           onpopupshowing="document.getElementById('PlacesToolbar')
1250                                                   ._placesView._onChevronPopupShowing(event);">
1251              <menupopup id="PlacesChevronPopup"
1252                         is="places-popup"
1253                         placespopup="true"
1254                         tooltip="bhTooltip" popupsinherittooltip="true"
1255                         context="placesContext"/>
1256            </toolbarbutton>
1257          </hbox>
1258        </hbox>
1259      </toolbaritem>
1260    </toolbar>
1261
1262    <html:template id="BrowserToolbarPalette">
1263
1264      <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1265#ifdef XP_MACOSX
1266                     command="cmd_print"
1267                     tooltip="dynamic-shortcut-tooltip"
1268#else
1269                     command="cmd_printPreview"
1270                     tooltiptext="&printButton.tooltip;"
1271#endif
1272                     label="&printButton.label;"/>
1273
1274
1275      <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1276                     label="&newNavigatorCmd.label;"
1277                     command="cmd_newNavigator"
1278                     tooltip="dynamic-shortcut-tooltip"
1279                     ondrop="newWindowButtonObserver.onDrop(event)"
1280                     ondragover="newWindowButtonObserver.onDragOver(event)"
1281                     ondragenter="newWindowButtonObserver.onDragOver(event)"
1282                     ondragexit="newWindowButtonObserver.onDragExit(event)"/>
1283
1284      <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
1285                     observes="View:FullScreen"
1286                     type="checkbox"
1287                     label="&fullScreenCmd.label;"
1288                     tooltip="dynamic-shortcut-tooltip"/>
1289
1290      <toolbarbutton id="bookmarks-menu-button"
1291                     class="toolbarbutton-1 chromeclass-toolbar-additional subviewbutton-nav"
1292                     type="menu"
1293                     label="&bookmarksMenuButton2.label;"
1294                     tooltip="dynamic-shortcut-tooltip"
1295                     ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
1296                     ondragover="PlacesMenuDNDHandler.onDragOver(event);"
1297                     ondragleave="PlacesMenuDNDHandler.onDragLeave(event);"
1298                     ondrop="PlacesMenuDNDHandler.onDrop(event);"
1299                     oncommand="BookmarkingUI.onCommand(event);">
1300        <menupopup id="BMB_bookmarksPopup"
1301                   is="places-popup-arrow"
1302                   class="cui-widget-panel cui-widget-panelview cui-widget-panelWithFooter PanelUI-subView"
1303                   placespopup="true"
1304                   context="placesContext"
1305                   openInTabs="children"
1306                   side="top"
1307                   onmouseup="BookmarksEventHandler.onMouseUp(event);"
1308                   oncommand="BookmarksEventHandler.onCommand(event);"
1309                   onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);"
1310                   onpopupshowing="BookmarkingUI.onPopupShowing(event);
1311                                   BookmarkingUI.attachPlacesView(event, this);"
1312                   tooltip="bhTooltip" popupsinherittooltip="true">
1313          <menuitem id="BMB_viewBookmarksSidebar"
1314                    class="menuitem-iconic subviewbutton"
1315                    label-show="&viewBookmarksSidebar2.label;"
1316                    label-hide="&hideBookmarksSidebar.label;"
1317                    oncommand="SidebarUI.toggle('viewBookmarksSidebar');"/>
1318          <!-- NB: temporary solution for bug 985024, this should go away soon. -->
1319          <menuitem id="BMB_bookmarksShowAllTop"
1320                    class="menuitem-iconic subviewbutton"
1321                    label="&showAllBookmarks2.label;"
1322                    command="Browser:ShowAllBookmarks"
1323                    key="manBookmarkKb"/>
1324          <menuseparator/>
1325          <menu id="BMB_bookmarksToolbar"
1326                class="menu-iconic bookmark-item subviewbutton"
1327                label="&personalbarCmd.label;"
1328                container="true">
1329            <menupopup id="BMB_bookmarksToolbarPopup"
1330                       is="places-popup"
1331                       placespopup="true"
1332                       nofooterpopup="true"
1333                       context="placesContext"
1334                       onpopupshowing="if (!this.parentNode._placesView)
1335                                         new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.toolbarGuid}`,
1336                                                        PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);">
1337              <menuitem id="BMB_viewBookmarksToolbar"
1338                        class="menuitem-iconic subviewbutton"
1339                        label-show="&viewBookmarksToolbar.label;"
1340                        label-hide="&hideBookmarksToolbar.label;"
1341                        oncommand="BookmarkingUI.toggleBookmarksToolbar('bookmarks-widget');"/>
1342              <menuseparator/>
1343              <!-- Bookmarks toolbar items -->
1344            </menupopup>
1345          </menu>
1346          <menu id="BMB_unsortedBookmarks"
1347                class="menu-iconic bookmark-item subviewbutton"
1348                label="&bookmarksMenuButton.other.label;"
1349                container="true">
1350            <menupopup id="BMB_unsortedBookmarksPopup"
1351                       is="places-popup"
1352                       placespopup="true"
1353                       nofooterpopup="true"
1354                       context="placesContext"
1355                       onpopupshowing="if (!this.parentNode._placesView)
1356                                         new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.unfiledGuid}`,
1357                                                        PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"/>
1358          </menu>
1359          <menu id="BMB_mobileBookmarks"
1360                class="menu-iconic bookmark-item subviewbutton"
1361                label="&bookmarksMenuButton.mobile.label;"
1362                hidden="true"
1363                container="true">
1364            <menupopup id="BMB_mobileBookmarksPopup"
1365                       is="places-popup"
1366                       placespopup="true"
1367                       nofooterpopup="true"
1368                       context="placesContext"
1369                       onpopupshowing="if (!this.parentNode._placesView)
1370                                         new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.mobileGuid}`,
1371                                                        PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"/>
1372          </menu>
1373
1374          <menuseparator/>
1375          <!-- Bookmarks menu items will go here -->
1376          <menuitem id="BMB_bookmarksShowAll"
1377                    class="subviewbutton panel-subview-footer"
1378                    label="&showAllBookmarks2.label;"
1379                    command="Browser:ShowAllBookmarks"
1380                    key="manBookmarkKb"/>
1381        </menupopup>
1382      </toolbarbutton>
1383
1384      <toolbaritem id="search-container"
1385                   class="chromeclass-toolbar-additional"
1386                   title="&searchItem.title;"
1387                   align="center"
1388                   flex="175"
1389                   persist="width">
1390        <toolbartabstop/>
1391        <searchbar id="searchbar" flex="1"/>
1392        <toolbartabstop/>
1393      </toolbaritem>
1394    </html:template>
1395  </toolbox>
1396  </box>
1397
1398  <hbox id="fullscr-toggler" hidden="true"/>
1399
1400  <hbox flex="1" id="browser">
1401    <vbox id="browser-border-start" hidden="true" layer="true"/>
1402    <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
1403      <box id="sidebar-header" align="center">
1404        <toolbarbutton id="sidebar-switcher-target" flex="1" class="tabbable">
1405          <image id="sidebar-icon" consumeanchor="sidebar-switcher-target"/>
1406          <label id="sidebar-title" crop="end" flex="1" control="sidebar"/>
1407          <image id="sidebar-switcher-arrow"/>
1408        </toolbarbutton>
1409        <image id="sidebar-throbber"/>
1410# To ensure the button label's intrinsic width doesn't expand the sidebar
1411# if the label is long, the button needs flex=1.
1412# To ensure the button doesn't expand unnecessarily for short labels, the
1413# spacer should significantly out-flex the button.
1414        <spacer flex="1000"/>
1415        <toolbarbutton id="sidebar-close" class="close-icon tabbable" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="SidebarUI.hide();"/>
1416      </box>
1417      <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true" disablefullscreen="true"
1418                style="min-width: 14em; width: 18em; max-width: 36em;" tooltip="aHTMLTooltip"/>
1419    </vbox>
1420
1421    <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" hidden="true"/>
1422    <vbox id="appcontent" flex="1">
1423      <!-- gHighPriorityNotificationBox will be added here lazily. -->
1424      <tabbox id="tabbrowser-tabbox"
1425              flex="1" tabcontainer="tabbrowser-tabs">
1426        <tabpanels id="tabbrowser-tabpanels"
1427                    flex="1" class="plain" selectedIndex="0"/>
1428      </tabbox>
1429    </vbox>
1430    <vbox id="browser-border-end" hidden="true" layer="true"/>
1431  </hbox>
1432
1433  <html:template id="customizationPanel">
1434    <box id="customization-container" flex="1" hidden="true"><![CDATA[
1435#include ../../components/customizableui/content/customizeMode.inc.xhtml
1436    ]]></box>
1437  </html:template>
1438
1439  <html:div id="fullscreen-and-pointerlock-wrapper">
1440    <html:div id="fullscreen-warning" class="pointerlockfswarning" hidden="true">
1441      <html:div class="pointerlockfswarning-domain-text">
1442        &fullscreenWarning.beforeDomain.label;
1443        <html:span class="pointerlockfswarning-domain"/>
1444        &fullscreenWarning.afterDomain.label;
1445      </html:div>
1446      <html:div class="pointerlockfswarning-generic-text">
1447        &fullscreenWarning.generic.label;
1448      </html:div>
1449      <html:button id="fullscreen-exit-button"
1450                   onclick="FullScreen.exitDomFullScreen();">
1451#ifdef XP_MACOSX
1452              &exitDOMFullscreenMac.button;
1453#else
1454              &exitDOMFullscreen.button;
1455#endif
1456      </html:button>
1457    </html:div>
1458
1459    <html:div id="pointerlock-warning" class="pointerlockfswarning" hidden="true">
1460      <html:div class="pointerlockfswarning-domain-text">
1461        &pointerlockWarning.beforeDomain.label;
1462        <html:span class="pointerlockfswarning-domain"/>
1463        &pointerlockWarning.afterDomain.label;
1464      </html:div>
1465      <html:div class="pointerlockfswarning-generic-text">
1466        &pointerlockWarning.generic.label;
1467      </html:div>
1468    </html:div>
1469  </html:div>
1470
1471  <vbox id="browser-bottombox" layer="true">
1472    <!-- gNotificationBox will be added here lazily. -->
1473  </vbox>
1474
1475  <html:div id="a11y-announcement" role="alert"/>
1476</html:body>
1477</html>
1478