browser.xhtml 75.5 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#filter substitution
<?xml version="1.0"?>
# -*- Mode: HTML -*-
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

<!-- The "global.css" stylesheet is imported first to allow other stylesheets to
     override rules using selectors with the same specificity. This applies to
     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
15
16
17
18
19
20
21
22

<!-- While these stylesheets are defined in Toolkit, they are only used in the
     main browser window, so we can load them here. Bug 1474241 is on file to
     consider moving these widgets to the "browser" folder. -->
<?xml-stylesheet href="chrome://global/content/tabprompts.css" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/tabprompts.css" type="text/css"?>

<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/tabbrowser.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/downloads/downloads.css" type="text/css"?>
23
24
<?xml-stylesheet href="chrome://browser/content/securitylevel/securityLevelPanel.css"?>
<?xml-stylesheet href="chrome://browser/content/securitylevel/securityLevelButton.css"?>
25
26
27
28
29
30
31
32
33
<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/usercontext/usercontext.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/controlcenter/panel.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUI.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/downloads/downloads.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/searchbar.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/places/tree-icons.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/places/editBookmark.css" type="text/css"?>
34
35
<?xml-stylesheet href="chrome://torbutton/skin/tor-circuit-display.css" type="text/css"?>
<?xml-stylesheet href="chrome://torbutton/skin/torbutton.css" type="text/css"?>
36
37
38
39
40
41
42

# All DTD information is stored in a separate file so that it can be shared by
# hiddenWindowMac.xhtml.
<!DOCTYPE window [
#include browser-doctype.inc
]>

43
<html id="main-window"
44
45
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
46
        xmlns="http://www.w3.org/1999/xhtml"
47
#ifdef XP_MACOSX
48
        data-l10n-id="browser-main-window-mac"
49
#else
50
        data-l10n-id="browser-main-window"
51
#endif
52
53
        data-l10n-args="{&quot;content-title&quot;:&quot;CONTENTTITLE&quot;}"
        data-l10n-attrs="data-content-title-default, data-content-title-private, data-title-default, data-title-private"
54
55
56
57
58
59
60
61
#ifdef XP_WIN
        chromemargin="0,2,2,2"
#else
        chromemargin="0,-1,-1,-1"
#endif
        tabsintitlebar="true"
        windowtype="navigator:browser"
        macanimationtype="document"
62
        macnativefullscreen="true"
63
64
        screenX="4" screenY="4"
        sizemode="normal"
65
        retargetdocumentfocus="urlbar-input"
66
        scrolling="false"
67
        persist="screenX screenY width height sizemode"
68
        data-l10n-sync="true">
69
<head>
70
  <link rel="localization" href="branding/tor-browser-brand.ftl"/>
71
  <link rel="localization" href="browser/branding/sync-brand.ftl"/>
72
73
  <link rel="localization" href="browser/branding/brandings.ftl"/>
  <link rel="localization" href="toolkit/global/textActions.ftl"/>
74
  <link rel="localization" href="browser/browser.ftl"/>
75
  <link rel="localization" href="browser/browserContext.ftl"/>
76
  <link rel="localization" href="browser/browserSets.ftl"/>
77
78
79
  <link rel="localization" href="browser/menubar.ftl"/>
  <link rel="localization" href="browser/protectionsPanel.ftl"/>
  <link rel="localization" href="browser/appmenu.ftl"/>
80
  <link rel="localization" href="preview/interventions.ftl"/>
81
  <link rel="localization" href="browser/sidebarMenu.ftl"/>
82
  <link rel="localization" href="browser/allTabsMenu.ftl"/>
83
  <link rel="localization" href="browser/places.ftl"/>
84

85
  <title data-l10n-id="browser-main-window-title"></title>
86

87
# All JS files which are needed by browser.xhtml and other top level windows to
88
# support MacOS specific features *must* go into the global-scripts.inc file so
89
# that they can be shared with macWindow.inc.xhtml.
90
91
92
#include global-scripts.inc

<script>
93
  /* eslint-env mozilla/browser-window */
94
95
  Services.scriptloader.loadSubScript("chrome://global/content/contentAreaUtils.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/browser-captivePortal.js", this);
96
97
98
99
100
101
  if (AppConstants.MOZ_DATA_REPORTING) {
    Services.scriptloader.loadSubScript("chrome://browser/content/browser-data-submission-info-bar.js", this);
  }
  if (!AppConstants.MOZILLA_OFFICIAL) {
    Services.scriptloader.loadSubScript("chrome://browser/content/browser-development-helpers.js", this);
  }
102
103
104
105
106
107
  Services.scriptloader.loadSubScript("chrome://browser/content/browser-media.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/browser-pageActions.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/browser-sidebar.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/browser-tabsintitlebar.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tab.js", this);
108
  Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tabs.js", this);
109
  Services.scriptloader.loadSubScript("chrome://browser/content/places/places-menupopup.js", this);
110
111
  Services.scriptloader.loadSubScript("chrome://browser/content/search/autocomplete-popup.js", this);
  Services.scriptloader.loadSubScript("chrome://browser/content/search/searchbar.js", this);
112
113
  Services.scriptloader.loadSubScript("chrome://torbutton/content/tor-circuit-display.js", this);
  Services.scriptloader.loadSubScript("chrome://torbutton/content/torbutton.js", this);
114
115
116
117
118

  window.onload = gBrowserInit.onLoad.bind(gBrowserInit);
  window.onunload = gBrowserInit.onUnload.bind(gBrowserInit);
  window.onclose = WindowIsClosing;

119
120
121
122
123
  //onLoad Handler
  try {
    window.addEventListener("load", torbutton_init, false);
  } catch (e) {}

124
125
126
127
128
129
130
131
132
133
  window.addEventListener("MozBeforeInitialXULLayout",
    gBrowserInit.onBeforeInitialXULLayout.bind(gBrowserInit), { once: true });

  // The listener of DOMContentLoaded must be set on window, rather than
  // document, because the window can go away before the event is fired.
  // In that case, we don't want to initialize anything, otherwise we
  // may be leaking things because they will never be destroyed after.
  window.addEventListener("DOMContentLoaded",
    gBrowserInit.onDOMContentLoaded.bind(gBrowserInit), { once: true });
</script>
134
135
</head>
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
136
137
# All sets except for popupsets (commands, keys, and stringbundles)
# *must* go into the browser-sets.inc file so that they can be shared with other
138
# top level windows in macWindow.inc.xhtml.
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#include browser-sets.inc
  <popupset id="mainPopupSet">
    <menupopup id="tabContextMenu"
               onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);"
               onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
      <menuitem id="context_reloadTab" data-lazy-l10n-id="reload-tab"
                oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
      <menuitem id="context_reloadSelectedTabs" data-lazy-l10n-id="reload-tabs" hidden="true"
                oncommand="gBrowser.reloadMultiSelectedTabs();"/>
      <menuitem id="context_toggleMuteTab" oncommand="TabContextMenu.contextTab.toggleMuteAudio();"/>
      <menuitem id="context_toggleMuteSelectedTabs" hidden="true"
                oncommand="gBrowser.toggleMuteAudioOnMultiSelectedTabs(TabContextMenu.contextTab);"/>
      <menuitem id="context_pinTab" data-lazy-l10n-id="pin-tab"
                oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
      <menuitem id="context_unpinTab" data-lazy-l10n-id="unpin-tab" hidden="true"
                oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/>
      <menuitem id="context_pinSelectedTabs" data-lazy-l10n-id="pin-selected-tabs" hidden="true"
                oncommand="gBrowser.pinMultiSelectedTabs();"/>
      <menuitem id="context_unpinSelectedTabs" data-lazy-l10n-id="unpin-selected-tabs" hidden="true"
                oncommand="gBrowser.unpinMultiSelectedTabs();"/>
      <menuitem id="context_duplicateTab" data-lazy-l10n-id="duplicate-tab"
                oncommand="duplicateTabIn(TabContextMenu.contextTab, 'tab');"/>
      <menuitem id="context_duplicateTabs" data-lazy-l10n-id="duplicate-tabs"
                oncommand="TabContextMenu.duplicateSelectedTabs();"/>
      <menuseparator/>
      <menuitem id="context_selectAllTabs" data-lazy-l10n-id="select-all-tabs"
                oncommand="gBrowser.selectAllTabs();"/>
      <menuitem id="context_bookmarkSelectedTabs"
                hidden="true"
                data-lazy-l10n-id="bookmark-selected-tabs"
169
                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.uniqueSelectedPages);"/>
170
171
      <menuitem id="context_bookmarkTab"
                data-lazy-l10n-id="bookmark-tab"
172
                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.getUniquePages([TabContextMenu.contextTab]));"/>
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
      <menu id="context_reopenInContainer"
            data-lazy-l10n-id="reopen-in-container"
            hidden="true">
        <menupopup oncommand="TabContextMenu.reopenInContainer(event);"
                   onpopupshowing="TabContextMenu.createReopenInContainerMenu(event);"/>
      </menu>
      <menu id="context_moveTabOptions">
        <menupopup id="moveTabOptionsMenu">
          <menuitem id="context_moveToStart"
                    data-lazy-l10n-id="move-to-start"
                    tbattr="tabbrowser-multiple"
                    oncommand="gBrowser.moveTabsToStart(TabContextMenu.contextTab);"/>
          <menuitem id="context_moveToEnd"
                    data-lazy-l10n-id="move-to-end"
                    tbattr="tabbrowser-multiple"
                    oncommand="gBrowser.moveTabsToEnd(TabContextMenu.contextTab);"/>
          <menuitem id="context_openTabInWindow" data-lazy-l10n-id="move-to-new-window"
                    tbattr="tabbrowser-multiple"
                    oncommand="gBrowser.replaceTabsWithWindow(TabContextMenu.contextTab);"/>
        </menupopup>
      </menu>
      <menu id="context_sendTabToDevice"
            class="sync-ui-item">
        <menupopup id="context_sendTabToDevicePopupMenu"
                   onpopupshowing="gSync.populateSendTabToDevicesMenu(event.target, TabContextMenu.contextTab.linkedBrowser.currentURI.spec, TabContextMenu.contextTab.linkedBrowser.contentTitle, TabContextMenu.contextTab.multiselected);"/>
      </menu>
      <menuseparator/>
200
201
202
203
204
205
206
207
208
      <menu id="context_closeTabOptions"
            data-lazy-l10n-id="tab-context-close-multiple-tabs">
        <menupopup id="closeTabOptions">
          <menuitem id="context_closeTabsToTheEnd" data-lazy-l10n-id="close-tabs-to-the-end"
                    oncommand="gBrowser.removeTabsToTheEndFrom(TabContextMenu.contextTab, {animate: true});"/>
          <menuitem id="context_closeOtherTabs" data-lazy-l10n-id="close-other-tabs"
                    oncommand="gBrowser.removeAllTabsBut(TabContextMenu.contextTab);"/>
        </menupopup>
      </menu>
209
      <menuitem id="context_undoCloseTab"
210
211
                data-lazy-l10n-id="tab-context-undo-close-tabs"
                data-l10n-args='{"tabCount": 1}'
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
                observes="History:UndoCloseTab"/>
      <menuitem id="context_closeTab" data-lazy-l10n-id="close-tab"
                oncommand="gBrowser.removeTab(TabContextMenu.contextTab, { animate: true });"/>
      <menuitem id="context_closeSelectedTabs" data-lazy-l10n-id="close-tabs"
                hidden="true"
                oncommand="gBrowser.removeMultiSelectedTabs();"/>
    </menupopup>

    <!-- bug 415444/582485: event.stopPropagation is here for the cloned version
         of this menupopup -->
    <menupopup id="backForwardMenu"
               onpopupshowing="return FillHistoryMenu(event.target);"
               oncommand="gotoHistoryIndex(event); event.stopPropagation();"
               onclick="checkForMiddleClick(this, event);"/>
    <tooltip id="aHTMLTooltip" page="true"/>
    <tooltip id="remoteBrowserTooltip"/>

229
230
231
    <menupopup id="new-tab-button-popup"
               onpopupshowing="return CreateContainerTabMenu(event);"
               onclick="checkForMiddleClick(this, event);"/>
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
    <!-- for search and content formfill/pw manager -->

    <panel is="autocomplete-richlistbox-popup"
           type="autocomplete-richlistbox"
           id="PopupAutoComplete"
           role="group"
           noautofocus="true"
           hidden="true"
           overflowpadding="4"
           norolluponanchor="true"
           nomaxresults="true" />

    <!-- for search with one-off buttons -->
    <panel is="search-autocomplete-richlistbox-popup"
           type="autocomplete-richlistbox"
           id="PopupSearchAutoComplete"
           role="group"
           noautofocus="true"
           hidden="true" />

    <!-- for date/time picker. consumeoutsideclicks is set to never, so that
         clicks on the anchored input box are never consumed. -->
    <panel id="DateTimePickerPanel"
           type="arrow"
           hidden="true"
           orient="vertical"
           noautofocus="true"
           norolluponanchor="true"
           consumeoutsideclicks="never"
           level="parent"
           tabspecific="true">
    </panel>

    <!-- for select dropdowns. The menupopup is what shows the list of options,
         and the popuponly menulist makes things like the menuactive attributes
         work correctly on the menupopup. ContentSelectDropdown expects the
         popuponly menulist to be its immediate parent. -->
    <menulist popuponly="true" id="ContentSelectDropdown" hidden="true">
      <menupopup rolluponmousewheel="true"
                 activateontab="true" position="after_start"
                 level="parent"
#ifdef XP_WIN
                 consumeoutsideclicks="false" ignorekeys="shortcuts"
#endif
        />
    </menulist>

    <!-- for invalid form error message -->
    <panel id="invalid-form-popup" type="arrow" orient="vertical" noautofocus="true" hidden="true" level="parent">
      <description/>
    </panel>

284
    <html:template id="editBookmarkPanelTemplate">
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
      <panel id="editBookmarkPanel"
             class="panel-no-padding"
             type="arrow"
             orient="vertical"
             ignorekeys="true"
             hidden="true"
             tabspecific="true"
             aria-labelledby="editBookmarkPanelTitle">
        <box class="panel-header">
          <label id="editBookmarkPanelTitle"/>
          <toolbarbutton tabindex="0" id="editBookmarkPanelInfoButton" class="panel-info-button" oncommand="StarUI.toggleRecommendation();" >
            <image/>
          </toolbarbutton>
        </box>
        <html:div id="editBookmarkPanelInfoArea">
          <html:div id="editBookmarkPanelRecommendation"></html:div>
          <html:div id="editBookmarkPanelFaviconContainer">
            <html:img id="editBookmarkPanelFavicon"/>
          </html:div>
          <html:div id="editBookmarkPanelImage"></html:div>
305
        </html:div>
306
#include ../../components/places/content/editBookmarkPanel.inc.xhtml
307
308
309
310
311
312
313
314
315
316
          <vbox id="editBookmarkPanelBottomContent"
                flex="1">
            <checkbox id="editBookmarkPanel_showForNewBookmarks"
                      data-l10n-id="bookmark-panel-show-editor-checkbox"
                      oncommand="StarUI.onShowForNewBookmarksCheckboxCommand();"/>
          </vbox>
          <hbox id="editBookmarkPanelBottomButtons"
                class="panel-footer"
                data-l10n-id="bookmark-panel"
                data-l10n-attrs="style">
317
#ifndef XP_UNIX
318
319
320
321
322
323
324
325
            <button id="editBookmarkPanelDoneButton"
                    class="editBookmarkPanelBottomButton"
                    data-l10n-id="bookmark-panel-done-button"
                    default="true"
                    oncommand="StarUI.panel.hidePopup();"/>
            <button id="editBookmarkPanelRemoveButton"
                    class="editBookmarkPanelBottomButton"
                    oncommand="StarUI.removeBookmarkButtonCommand();"/>
326
#else
327
328
329
330
331
332
333
334
            <button id="editBookmarkPanelRemoveButton"
                    class="editBookmarkPanelBottomButton"
                    oncommand="StarUI.removeBookmarkButtonCommand();"/>
            <button id="editBookmarkPanelDoneButton"
                    class="editBookmarkPanelBottomButton"
                    data-l10n-id="bookmark-panel-done-button"
                    default="true"
                    oncommand="StarUI.panel.hidePopup();"/>
335
#endif
336
337
338
          </hbox>
      </panel>
    </html:template>
339

340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
    <html:template id="UITourTooltipTemplate">
      <!-- UI tour experience -->
      <panel id="UITourTooltip"
             type="arrow"
             noautofocus="true"
             noautohide="true"
             align="start"
             orient="vertical"
             role="alert">
       <vbox>
        <hbox id="UITourTooltipBody">
          <image id="UITourTooltipIcon"/>
          <vbox flex="1">
            <hbox id="UITourTooltipTitleContainer">
              <label id="UITourTooltipTitle" flex="1"/>
              <toolbarbutton id="UITourTooltipClose" class="close-icon"
                             tooltiptext="&uiTour.infoPanel.close;"/>
            </hbox>
            <description id="UITourTooltipDescription" flex="1"/>
          </vbox>
        </hbox>
        <hbox id="UITourTooltipButtons" flex="1" align="center"/>
       </vbox>
      </panel>
    </html:template>
    <html:template id="UITourHighlightTemplate">
      <!-- type="default" forces frames to be created so that the panel's size can be determined -->
      <panel id="UITourHighlightContainer"
             type="default"
             noautofocus="true"
             noautohide="true"
             flip="none"
             consumeoutsideclicks="false">
        <box id="UITourHighlight"></box>
      </panel>
    </html:template>
376
377
378
379
380
381
382
383
384
385
386

    <panel id="sidebarMenu-popup"
           class="cui-widget-panel"
           role="group"
           type="arrow"
           hidden="true"
           flip="slide"
           orient="vertical"
           position="bottomcenter topleft">
      <toolbarbutton id="sidebar-switcher-bookmarks"
                     type="checkbox"
387
                     data-l10n-id="sidebar-menu-bookmarks"
388
389
390
391
392
                     class="subviewbutton subviewbutton-iconic"
                     key="viewBookmarksSidebarKb"
                     oncommand="SidebarUI.show('viewBookmarksSidebar');"/>
      <toolbarbutton id="sidebar-switcher-history"
                     type="checkbox"
393
                     data-l10n-id="sidebar-menu-history"
394
395
396
397
398
                     class="subviewbutton subviewbutton-iconic"
                     key="key_gotoHistory"
                     oncommand="SidebarUI.show('viewHistorySidebar');"/>
      <toolbarbutton id="sidebar-switcher-tabs"
                     type="checkbox"
399
                     data-l10n-id="sidebar-menu-synced-tabs"
400
401
402
403
404
405
406
407
408
                     class="subviewbutton subviewbutton-iconic sync-ui-item"
                     oncommand="SidebarUI.show('viewTabsSidebar');"/>
      <toolbarseparator/>
      <!-- Extension toolbarbuttons go here. -->
      <toolbarseparator id="sidebar-extensions-separator"/>
      <toolbarbutton id="sidebar-reverse-position"
                     class="subviewbutton"
                     oncommand="SidebarUI.reversePosition()"/>
      <toolbarseparator/>
409
      <toolbarbutton data-l10n-id="sidebar-menu-close"
410
411
412
413
414
415
416
                     class="subviewbutton"
                     oncommand="SidebarUI.hide()"/>
    </panel>

    <menupopup id="toolbar-context-menu"
               onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator')); ToolbarContextMenu.updateDownloadsAutoHide(this); ToolbarContextMenu.updateExtension(this)">
      <menuitem oncommand="ToolbarContextMenu.openAboutAddonsForContextAction(this.parentElement)"
417
                data-lazy-l10n-id="toolbar-context-menu-manage-extension"
418
419
420
                contexttype="toolbaritem"
                class="customize-context-manageExtension"/>
      <menuitem oncommand="ToolbarContextMenu.removeExtensionForContextAction(this.parentElement)"
421
                data-lazy-l10n-id="toolbar-context-menu-remove-extension"
422
423
424
                contexttype="toolbaritem"
                class="customize-context-removeExtension"/>
      <menuitem oncommand="ToolbarContextMenu.reportExtensionForContextAction(this.parentElement, 'toolbar_context_menu')"
425
                data-lazy-l10n-id="toolbar-context-menu-report-extension"
426
427
428
                contexttype="toolbaritem"
                class="customize-context-reportExtension"/>
      <menuseparator/>
429
      <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode, 'toolbar-context-menu')"
430
                data-lazy-l10n-id="toolbar-context-menu-pin-to-overflow-menu"
431
432
433
434
435
                contexttype="toolbaritem"
                class="customize-context-moveToPanel"/>
      <menuitem id="toolbar-context-autohide-downloads-button"
                oncommand="ToolbarContextMenu.onDownloadsAutoHideChange(event);"
                type="checkbox"
436
                data-lazy-l10n-id="toolbar-context-menu-auto-hide-downloads-button"
437
                contexttype="toolbaritem"/>
438
      <menuitem oncommand="gCustomizeMode.removeFromArea(document.popupNode, 'toolbar-context-menu')"
439
                data-lazy-l10n-id="toolbar-context-menu-remove-from-toolbar"
440
441
442
443
444
445
446
447
448
449
450
451
                contexttype="toolbaritem"
                class="customize-context-removeFromToolbar"/>
      <menuitem id="toolbar-context-reloadSelectedTab"
                contexttype="tabbar"
                oncommand="gBrowser.reloadMultiSelectedTabs();"
                data-lazy-l10n-id="toolbar-context-menu-reload-selected-tab"/>
      <menuitem id="toolbar-context-reloadSelectedTabs"
                contexttype="tabbar"
                oncommand="gBrowser.reloadMultiSelectedTabs();"
                data-lazy-l10n-id="toolbar-context-menu-reload-selected-tabs"/>
      <menuitem id="toolbar-context-bookmarkSelectedTab"
                contexttype="tabbar"
452
                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.uniqueSelectedPages);"
453
454
455
                data-lazy-l10n-id="toolbar-context-menu-bookmark-selected-tab"/>
      <menuitem id="toolbar-context-bookmarkSelectedTabs"
                contexttype="tabbar"
456
                oncommand="PlacesUIUtils.showBookmarkPagesDialog(PlacesCommandHook.uniqueSelectedPages);"
457
458
459
460
461
462
463
                data-lazy-l10n-id="toolbar-context-menu-bookmark-selected-tabs"/>
      <menuitem id="toolbar-context-selectAllTabs"
                contexttype="tabbar"
                oncommand="gBrowser.selectAllTabs();"
                data-lazy-l10n-id="toolbar-context-menu-select-all-tabs"/>
      <menuitem id="toolbar-context-undoCloseTab"
                contexttype="tabbar"
464
                data-lazy-l10n-id="toolbar-context-menu-undo-close-tabs"
465
466
467
468
469
470
471
472
473
474
475
476
                observes="History:UndoCloseTab"/>
      <menuseparator/>
      <menuseparator id="viewToolbarsMenuSeparator"/>
      <!-- XXXgijs: we're using oncommand handler here to avoid the event being
                    redirected to the command element, thus preventing
                    listeners on the menupopup or further up the tree from
                    seeing the command event pass by. The observes attribute is
                    here so that the menuitem is still disabled and re-enabled
                    correctly. -->
      <menuitem oncommand="gCustomizeMode.enter()"
                observes="cmd_CustomizeToolbars"
                class="viewCustomizeToolbar"
477
                data-lazy-l10n-id="toolbar-context-menu-view-customize-toolbar"/>
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
    </menupopup>

    <menupopup id="blockedPopupOptions"
               onpopupshowing="gPopupBlockerObserver.fillPopupList(event);"
               onpopuphiding="gPopupBlockerObserver.onPopupHiding(event);">
      <menuitem id="blockedPopupAllowSite"
                accesskey="&allowPopups.accesskey;"
                oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
      <menuitem
#ifdef XP_WIN
                label="&editPopupSettings.label;"
#else
                label="&editPopupSettingsUnix.label;"
#endif
                accesskey="&editPopupSettings.accesskey;"
                oncommand="gPopupBlockerObserver.editPopupSettings();"/>
      <menuitem id="blockedPopupDontShowMessage"
                accesskey="&dontShowMessage.accesskey;"
                type="checkbox"
                oncommand="gPopupBlockerObserver.dontShowMessage();"/>
      <menuseparator id="blockedPopupsSeparator"/>
    </menupopup>

    <menupopup id="autohide-context"
           onpopupshowing="FullScreen.getAutohide(this.firstChild);">
503
      <menuitem type="checkbox" data-l10n-id="full-screen-autohide"
504
505
                oncommand="FullScreen.setAutohide();"/>
      <menuseparator/>
506
      <menuitem data-l10n-id="full-screen-exit"
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
                oncommand="BrowserFullScreen();"/>
    </menupopup>

    <menupopup id="contentAreaContextMenu" pagemenu="#page-menu-separator"
               onpopupshowing="if (event.target != this)
                                 return true;
                               gContextMenu = new nsContextMenu(this, event.shiftKey);
                               if (gContextMenu.shouldDisplay)
                                 updateEditUIVisibility();
                               return gContextMenu.shouldDisplay;"
               onpopuphiding="if (event.target != this)
                                return;
                              gContextMenu.hiding();
                              gContextMenu = null;
                              updateEditUIVisibility();">
#include browser-context.inc
    </menupopup>

525
526
527
528
529
530
    <menupopup id="pictureInPictureToggleContextMenu">
      <menuitem label="&pictureInPictureHideToggle.label;"
                accesskey="&pictureInPictureHideToggle.accesskey;"
                oncommand="PictureInPicture.hideToggle();" />
    </menupopup>

531
#include ../../components/places/content/placesContextMenu.inc.xhtml
532
533
534
535
536
537
538

    <panel id="ctrlTab-panel" hidden="true" norestorefocus="true" level="top">
      <hbox id="ctrlTab-previews"/>
      <hbox id="ctrlTab-showAll-container" pack="center"/>
    </panel>

    <panel id="pageActionPanel"
539
           class="cui-widget-panel panel-no-padding"
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
           role="group"
           type="arrow"
           hidden="true"
           flip="slide"
           position="bottomcenter topright"
           tabspecific="true"
           noautofocus="true"
           pinTab-title="&pinTab.label;"
           unpinTab-title="&unpinTab.label;"
           pocket-title="&saveToPocketCmd.label;"
           copyURL-title="&pageAction.copyLink.label;"
           emailLink-title="&emailPageCmd.label;"
           sendToDevice-notReadyTitle="&sendToDevice.syncNotReady.label;"
           shareURL-title="&pageAction.shareUrl.label;"
           shareMore-label="&pageAction.shareMore.label;">
      <panelmultiview id="pageActionPanelMultiView"
                      mainViewId="pageActionPanelMainView"
                      viewCacheId="appMenu-viewCache">
        <panelview id="pageActionPanelMainView"
                   context="pageActionContextMenu"
                   class="PanelUI-subView">
          <vbox class="panel-subview-body"/>
        </panelview>
      </panelmultiview>
    </panel>

566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
    <html:template id="confirmation-hint-wrapper">
      <panel id="confirmation-hint"
             role="alert"
             type="arrow"
             flip="slide"
             position="bottomcenter topright"
             tabspecific="true"
             noautofocus="true">
        <hbox id="confirmation-hint-checkmark-animation-container">
         <image id="confirmation-hint-checkmark-image"/>
        </hbox>
        <vbox id="confirmation-hint-message-container">
         <label id="confirmation-hint-message"/>
         <label id="confirmation-hint-description"/>
        </vbox>
      </panel>
    </html:template>
583
584
585
586

    <menupopup id="pageActionContextMenu"
               onpopupshowing="BrowserPageActions.onContextMenuShowing(event, this);">
      <menuitem class="pageActionContextMenuItem builtInUnpinned"
587
588
                oncommand="BrowserPageActions.togglePinningForContextAction();"
                data-l10n-id="page-action-add-to-urlbar"/>
589
      <menuitem class="pageActionContextMenuItem builtInPinned"
590
591
                oncommand="BrowserPageActions.togglePinningForContextAction();"
                data-l10n-id="page-action-remove-from-urlbar"/>
592
      <menuitem class="pageActionContextMenuItem extensionUnpinned"
593
594
                oncommand="BrowserPageActions.togglePinningForContextAction();"
                data-l10n-id="page-action-add-to-urlbar"/>
595
      <menuitem class="pageActionContextMenuItem extensionPinned"
596
597
                oncommand="BrowserPageActions.togglePinningForContextAction();"
                data-l10n-id="page-action-remove-from-urlbar"/>
598
599
      <menuseparator class="pageActionContextMenuItem extensionPinned extensionUnpinned"/>
      <menuitem class="pageActionContextMenuItem extensionPinned extensionUnpinned"
600
601
                oncommand="BrowserPageActions.openAboutAddonsForContextAction();"
                data-l10n-id="page-action-manage-extension"/>
602
603
604
      <menuitem class="pageActionContextMenuItem extensionPinned extensionUnpinned removeExtensionItem"
                oncommand="BrowserPageActions.removeExtensionForContextAction();"
                data-l10n-id="page-action-remove-extension"/>
605
606
    </menupopup>

607
#include ../../components/places/content/bookmarksHistoryTooltip.inc.xhtml
608
609
610
611

    <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>

    <tooltip id="back-button-tooltip">
612
613
      <description class="tooltip-label" data-l10n-id="navbar-tooltip-back"/>
      <description class="tooltip-label" data-l10n-id="navbar-tooltip-instruction"/>
614
615
616
    </tooltip>

    <tooltip id="forward-button-tooltip">
617
618
      <description class="tooltip-label" data-l10n-id="navbar-tooltip-forward"/>
      <description class="tooltip-label" data-l10n-id="navbar-tooltip-instruction"/>
619
620
621
622
    </tooltip>

#include popup-notifications.inc

623
624
625
626
#include ../../components/customizableui/content/panelUI.inc.xhtml
#include ../../components/controlcenter/content/identityPanel.inc.xhtml
#include ../../components/controlcenter/content/protectionsPanel.inc.xhtml
#include ../../components/downloads/content/downloadsPanel.inc.xhtml
627
#include ../../../devtools/startup/enableDevToolsPopup.inc.xhtml
628
#include ../../components/securitylevel/content/securityLevelPanel.inc.xhtml
629
#include browser-allTabsMenu.inc.xhtml
630

631
    <hbox id="downloads-animation-container">
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
      <vbox id="downloads-notification-anchor" hidden="true">
        <vbox id="downloads-indicator-notification"/>
      </vbox>
    </hbox>

    <tooltip id="dynamic-shortcut-tooltip"
             onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/>

    <menupopup id="SyncedTabsSidebarContext">
      <menuitem data-lazy-l10n-id="synced-tabs-context-open"
                id="syncedTabsOpenSelected" where="current"/>
      <menuitem data-lazy-l10n-id="synced-tabs-context-open-in-new-tab"
                id="syncedTabsOpenSelectedInTab" where="tab"/>
      <menuitem data-lazy-l10n-id="synced-tabs-context-open-in-new-window"
                id="syncedTabsOpenSelectedInWindow" where="window"/>
      <menuitem data-lazy-l10n-id="synced-tabs-context-open-in-new-private-window"
                id="syncedTabsOpenSelectedInPrivateWindow" where="window" private="true"/>
      <menuseparator/>
      <menuitem data-lazy-l10n-id="synced-tabs-context-bookmark-single-tab"
                id="syncedTabsBookmarkSelected"/>
      <menuitem data-lazy-l10n-id="synced-tabs-context-copy"
                id="syncedTabsCopySelected"/>
      <menuseparator/>
      <menuitem data-lazy-l10n-id="synced-tabs-context-open-all-in-tabs"
                id="syncedTabsOpenAllInTabs"/>
      <menuitem data-lazy-l10n-id="synced-tabs-context-manage-devices"
                id="syncedTabsManageDevices"
                oncommand="gSync.openDevicesManagementPage('syncedtabs-sidebar');"/>
660
      <menuitem data-lazy-l10n-id="synced-tabs-context-sync-now"
661
662
663
664
                id="syncedTabsRefresh"/>
    </menupopup>
    <menupopup id="SyncedTabsSidebarTabsFilterContext"
               class="textbox-contextmenu">
665
      <menuitem data-l10n-id="text-action-undo"
666
667
                cmd="cmd_undo"/>
      <menuseparator/>
668
      <menuitem data-l10n-id="text-action-cut"
669
                cmd="cmd_cut"/>
670
      <menuitem data-l10n-id="text-action-copy"
671
                cmd="cmd_copy"/>
672
      <menuitem data-l10n-id="text-action-paste"
673
                cmd="cmd_paste"/>
674
      <menuitem data-l10n-id="text-action-delete"
675
676
                cmd="cmd_delete"/>
      <menuseparator/>
677
      <menuitem data-l10n-id="text-action-select-all"
678
679
                cmd="cmd_selectAll"/>
      <menuseparator/>
680
      <menuitem data-lazy-l10n-id="synced-tabs-context-sync-now"
681
682
683
                id="syncedTabsRefreshFilter"/>
    </menupopup>

684
    <hbox id="statuspanel" inactive="true">
685
686
687
688
689
690
691
692
      <hbox id="statuspanel-inner">
        <label id="statuspanel-label"
               role="status"
               aria-live="off"
               flex="1"
               crop="end"/>
      </hbox>
    </hbox>
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726

    <html:template id="sharing-tabs-warning-panel-template">
      <panel id="sharing-tabs-warning-panel"
             role="alert"
             flip="slide"
             type="arrow"
             orient="vertical"
             ignorekeys="true"
             consumeoutsideclicks="never"
             norolluponanchor="true"
             onpopupshown="gSharedTabWarning.sharedTabWarningShown();">
        <hbox type="window" align="start">
          <image class="screen-icon popup-notification-icon"></image>
          <vbox flex="1" pack="start">
            <label>
              <html:span id="sharing-warning-window-panel-header"
                         role="heading"
                         aria-level="1"
                         data-l10n-id="sharing-warning-window"/>
              <html:span id="sharing-warning-screen-panel-header"
                         role="heading"
                         aria-level="1"
                         data-l10n-id="sharing-warning-screen"/>
            </label>
            <hbox align="center">
              <button id="sharing-warning-proceed-to-tab" oncommand="gSharedTabWarning.allowSharedTabSwitch();" flex="1" data-l10n-id="sharing-warning-proceed-to-tab"/>
            </hbox>
            <hbox pack="start">
              <checkbox id="sharing-warning-disable-for-session" data-l10n-id="sharing-warning-disable-for-session"/>
            </hbox>
          </vbox>
        </hbox>
      </panel>
    </html:template>
727
728
729
  </popupset>
  <box id="appMenu-viewCache" hidden="true"/>

730
731
  <!-- Temporary wrapper until we move away from XUL flex to allow a negative
       margin-top to slide the toolbox off screen in fullscreen layout.-->
732
733
  <box>
  <toolbox id="navigator-toolbox" flex="1">
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748

    <vbox id="titlebar">
      <!-- Menu -->
      <toolbar type="menubar" id="toolbar-menubar"
               class="browser-toolbar chromeclass-menubar titlebar-color"
               customizable="true"
               mode="icons"
#ifdef MENUBAR_CAN_AUTOHIDE
               toolbarname="&menubarCmd.label;"
               accesskey="&menubarCmd.accesskey;"
               autohide="true"
#endif
               context="toolbar-context-menu">
        <toolbaritem id="menubar-items" align="center">
# The entire main menubar is placed into browser-menubar.inc, so that it can be
749
# shared with other top level windows in macWindow.inc.xhtml.
750
751
#include browser-menubar.inc
        </toolbaritem>
752
        <spacer flex="1" skipintoolbarset="true" style="-moz-box-ordinal-group: 1000;"/>
753
#include titlebar-items.inc.xhtml
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
      </toolbar>

      <toolbar id="TabsToolbar"
               class="browser-toolbar titlebar-color"
               fullscreentoolbar="true"
               customizable="true"
               customizationtarget="TabsToolbar-customization-target"
               mode="icons"
               aria-label="&tabsToolbar.label;"
               context="toolbar-context-menu"
               flex="1">

        <hbox class="titlebar-spacer" type="pre-tabs"/>

        <hbox flex="1" align="end" class="toolbar-items">
          <hbox id="TabsToolbar-customization-target" flex="1">
            <tabs id="tabbrowser-tabs"
771
                  is="tabbrowser-tabs"
772
                  flex="1"
773
                  aria-multiselectable="true"
774
775
776
                  setfocus="false"
                  tooltip="tabbrowser-tab-tooltip"
                  stopwatchid="FX_TAB_CLICK_MS">
777
              <hbox class="tab-drop-indicator" hidden="true"/>
778
              <arrowscrollbox id="tabbrowser-arrowscrollbox" orient="horizontal" flex="1" style="min-width: 1px;" clicktoscroll="true" scrolledtostart="true" scrolledtoend="true">
779
                <tab is="tabbrowser-tab" class="tabbrowser-tab" selected="true" visuallyselected="true" fadein="true"/>
780
                <toolbarbutton id="tabs-newtab-button"
781
                               class="toolbarbutton-1"
782
783
784
                               command="cmd_newNavigatorTab"
                               onclick="checkForMiddleClick(this, event);"
                               tooltip="dynamic-shortcut-tooltip"/>
785
786
                <spacer class="closing-tabs-spacer" style="width: 0;"/>
              </arrowscrollbox>
787
              <html:span id="tabbrowser-tab-a11y-desc" hidden="true"/>
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
            </tabs>

            <toolbarbutton id="new-tab-button"
                           class="toolbarbutton-1 chromeclass-toolbar-additional"
                           label="&tabCmd.label;"
                           command="cmd_newNavigatorTab"
                           onclick="checkForMiddleClick(this, event);"
                           tooltip="dynamic-shortcut-tooltip"
                           ondrop="newTabButtonObserver.onDrop(event)"
                           ondragover="newTabButtonObserver.onDragOver(event)"
                           ondragenter="newTabButtonObserver.onDragOver(event)"
                           ondragexit="newTabButtonObserver.onDragExit(event)"
                           cui-areatype="toolbar"
                           removable="true"/>

            <toolbarbutton id="alltabs-button"
                           class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
                           badged="true"
806
                           oncommand="gTabsPanel.showAllTabsPanel(event);"
807
808
809
810
811
812
813
814
815
816
817
818
819
820
                           label="&listAllTabs.label;"
                           tooltiptext="&listAllTabs.label;"
                           removable="false"/>
          </hbox>
        </hbox>

        <hbox class="titlebar-spacer" type="post-tabs"/>

#ifndef XP_MACOSX
        <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;"
                aria-live="polite"/>
        <hbox class="private-browsing-indicator"/>
#endif

821
#include titlebar-items.inc.xhtml
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837

#ifdef XP_MACOSX
        <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary
             buttonbox from reversing order in RTL by forcing an LTR direction. -->
        <hbox id="titlebar-secondary-buttonbox" dir="ltr">
          <button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;" aria-live="polite"/>
          <hbox class="private-browsing-indicator"/>
          <hbox id="titlebar-fullscreen-button"/>
        </hbox>
#endif
      </toolbar>

    </vbox>

    <toolbar id="nav-bar"
             class="browser-toolbar"
838
             aria-label="&navbar.accessibleLabel;"
839
840
841
842
843
844
845
846
847
848
849
             fullscreentoolbar="true" mode="icons" customizable="true"
             customizationtarget="nav-bar-customization-target"
             overflowable="true"
             overflowbutton="nav-bar-overflow-button"
             overflowtarget="widget-overflow-list"
             overflowpanel="widget-overflow"
             context="toolbar-context-menu">

      <toolbartabstop/>
      <hbox id="nav-bar-customization-target" flex="1">
        <toolbarbutton id="back-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
850
                       data-l10n-id="toolbar-button-back"
851
852
853
854
855
856
857
                       removable="false" overflows="false"
                       keepbroadcastattributeswhencustomizing="true"
                       command="Browser:BackOrBackDuplicate"
                       onclick="checkForMiddleClick(this, event);"
                       tooltip="back-button-tooltip"
                       context="backForwardMenu"/>
        <toolbarbutton id="forward-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
858
                       data-l10n-id="toolbar-button-forward"
859
860
861
862
863
864
865
                       removable="false" overflows="false"
                       keepbroadcastattributeswhencustomizing="true"
                       command="Browser:ForwardOrForwardDuplicate"
                       onclick="checkForMiddleClick(this, event);"
                       tooltip="forward-button-tooltip"
                       context="backForwardMenu"/>
        <toolbaritem id="stop-reload-button" class="chromeclass-toolbar-additional"
866
                     data-l10n-id="toolbar-button-stop-reload"
867
868
                     removable="true" overflows="false">
          <toolbarbutton id="reload-button" class="toolbarbutton-1"
869
                         data-l10n-id="toolbar-button-reload"
870
871
872
873
874
875
876
877
                         command="Browser:ReloadOrDuplicate"
                         onclick="checkForMiddleClick(this, event);"
                         tooltip="dynamic-shortcut-tooltip">
            <box class="toolbarbutton-animatable-box">
              <image class="toolbarbutton-animatable-image"/>
            </box>
          </toolbarbutton>
          <toolbarbutton id="stop-button" class="toolbarbutton-1"
878
                         data-l10n-id="toolbar-button-stop"
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
                         command="Browser:Stop"
                         tooltip="dynamic-shortcut-tooltip">
            <box class="toolbarbutton-animatable-box">
              <image class="toolbarbutton-animatable-image"/>
            </box>
          </toolbarbutton>
        </toolbaritem>
        <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
                       removable="true"
                       label="&homeButton.label;"
                       ondragover="homeButtonObserver.onDragOver(event)"
                       ondragenter="homeButtonObserver.onDragOver(event)"
                       ondrop="homeButtonObserver.onDrop(event)"
                       ondragexit="homeButtonObserver.onDragExit(event)"
                       key="goHome"
                       onclick="BrowserHome(event);"
                       cui-areatype="toolbar"
                       tooltiptext="&homeButton.defaultPage.tooltip;"/>
        <toolbarspring cui-areatype="toolbar" class="chromeclass-toolbar-additional"/>
        <toolbaritem id="urlbar-container" flex="400" persist="width"
                     removable="false"
                     class="chromeclass-location" overflows="false">
901
902
          <toolbartabstop/>
          <hbox id="urlbar" flex="1"
903
                context=""
904
905
                data-l10n-id="urlbar-default-placeholder"
                data-l10n-attrs="defaultPlaceholder"
906
907
                focused="true"
                pageproxystate="invalid">
908
            <hbox id="urlbar-background"/>
909
910
            <hbox id="urlbar-input-container"
                  flex="1"
911
                  pageproxystate="invalid">
912
              <box id="urlbar-search-button"
913
                   class="chromeclass-toolbar-additional"/>
914
915
              <!-- Use onclick instead of normal popup= syntax since the popup
                   code fires onmousedown, and hence eats our favicon drag events. -->
916
              <box id="tracking-protection-icon-container" align="center"
917
                   role="button"
918
                   onclick="gProtectionsHandler.handleProtectionsButtonEvent(event);"
919
920
                   onkeypress="gProtectionsHandler.handleProtectionsButtonEvent(event);"
                   onmouseover="gProtectionsHandler.onTrackingProtectionIconHoveredOrFocused();"
921
922
                   onfocus="gProtectionsHandler.onTrackingProtectionIconHoveredOrFocused();"
                   tooltip="tracking-protection-icon-tooltip">
923
                <box id="tracking-protection-icon-box">
924
925
926
927
928
                  <image id="tracking-protection-icon"/>
                  <box id="tracking-protection-icon-animatable-box" flex="1">
                    <image id="tracking-protection-icon-animatable-image" flex="1"/>
                  </box>
                </box>
929
930
931
                <tooltip id="tracking-protection-icon-tooltip">
                  <description id="tracking-protection-icon-tooltip-label" class="tooltip-label"/>
                </tooltip>
932
              </box>
933
934
              <box id="identity-box" role="button"
                   align="center"
935
                   data-l10n-id="urlbar-identity-button"
936
                   pageproxystate="invalid"
937
938
939
940
941
942
                   onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
                   onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
                   ondragstart="gIdentityHandler.onDragStart(event);">
                <image id="identity-icon"
                       consumeanchor="identity-box"
                       onclick="PageProxyClickHandler(event);"/>
943
                <image id="permissions-granted-icon"
944
                       data-l10n-id="urlbar-permissions-granted"/>
945
                <box style="pointer-events: none;">
946
947
                    <image class="sharing-icon" id="webrtc-sharing-icon"/>
                    <image class="sharing-icon geo-icon" id="geo-sharing-icon"/>
948
                    <image class="sharing-icon xr-icon" id="xr-sharing-icon"/>
949
                </box>
950
951
                <box id="blocked-permissions-container" align="center">
                  <image data-permission-id="geo" class="blocked-permission-icon geo-icon" role="button"
952
                         data-l10n-id="urlbar-geolocation-blocked"/>
953
954
                  <image data-permission-id="xr" class="blocked-permission-icon xr-icon" role="button"
                         data-l10n-id="urlbar-xr-blocked"/>
955
                  <image data-permission-id="desktop-notification" class="blocked-permission-icon desktop-notification-icon" role="button"
956
                         data-l10n-id="urlbar-web-notifications-blocked"/>
957
                  <image data-permission-id="camera" class="blocked-permission-icon camera-icon" role="button"
958
                         data-l10n-id="urlbar-camera-blocked"/>
959
                  <image data-permission-id="microphone" class="blocked-permission-icon microphone-icon" role="button"
960
                         data-l10n-id="urlbar-microphone-blocked"/>
961
                  <image data-permission-id="screen" class="blocked-permission-icon screen-icon" role="button"
962
                         data-l10n-id="urlbar-screen-blocked"/>
963
                  <image data-permission-id="persistent-storage" class="blocked-permission-icon persistent-storage-icon" role="button"
964
                         data-l10n-id="urlbar-persistent-storage-blocked"/>
965
                  <image data-permission-id="popup" class="blocked-permission-icon popup-icon" role="button"
966
                         data-l10n-id="urlbar-popup-blocked"/>
967
                  <image data-permission-id="autoplay-media" class="blocked-permission-icon autoplay-media-icon" role="button"
968
                         data-l10n-id="urlbar-autoplay-media-blocked"/>
969
                  <image data-permission-id="canvas" class="blocked-permission-icon canvas-icon" role="button"
970
                         data-l10n-id="urlbar-canvas-blocked"/>
971
                  <image data-permission-id="midi" class="blocked-permission-icon midi-icon" role="button"
972
                         data-l10n-id="urlbar-midi-blocked"/>
973
                  <image data-permission-id="install" class="blocked-permission-icon install-icon" role="button"
974
                         data-l10n-id="urlbar-install-blocked"/>
975
976
977
978
979
980
981
                </box>
                <box id="notification-popup-box"
                     hidden="true"
                     onmouseover="document.getElementById('identity-box').classList.add('no-hover');"
                     onmouseout="document.getElementById('identity-box').classList.remove('no-hover');"
                     align="center">
                  <image id="default-notification-icon" class="notification-anchor-icon" role="button"
982
                         data-l10n-id="urlbar-default-notification-anchor"/>
983
                  <image id="geo-notification-icon" class="notification-anchor-icon geo-icon" role="button"
984
                         data-l10n-id="urlbar-geolocation-notification-anchor"/>
985
986
                  <image id="xr-notification-icon" class="notification-anchor-icon xr-icon" role="button"
                         data-l10n-id="urlbar-xr-notification-anchor"/>
987
                  <image id="autoplay-media-notification-icon" class="notification-anchor-icon autoplay-media-icon" role="button"
988
                         data-l10n-id="urlbar-autoplay-notification-anchor"/>
989
                  <image id="addons-notification-icon" class="notification-anchor-icon install-icon" role="button"
990
                         data-l10n-id="urlbar-addons-notification-anchor"/>
991
                  <image id="canvas-notification-icon" class="notification-anchor-icon" role="button"
992
                         data-l10n-id="urlbar-canvas-notification-anchor"/>
993
                  <image id="indexedDB-notification-icon" class="notification-anchor-icon indexedDB-icon" role="button"
994
                         data-l10n-id="urlbar-indexed-db-notification-anchor"/>
995
                  <image id="password-notification-icon" class="notification-anchor-icon login-icon" role="button"
996
997
                         data-l10n-id="urlbar-password-notification-anchor"/>
                  <stack id="plugins-notification-icon" class="notification-anchor-icon" role="button" align="center" data-l10n-id="urlbar-plugins-notification-anchor">
998
999
1000
                    <image class="plugin-icon" />
                    <image id="plugin-icon-badge" />
                  </stack>