Source code

Revision control

Other Tools

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