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<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?> 10<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?> 11<?xml-stylesheet href="chrome://browser/content/usercontext/usercontext.css" type="text/css"?> 12<?xml-stylesheet href="chrome://devtools/skin/devtools-browser.css" type="text/css"?> 13<?xml-stylesheet href="chrome://browser/skin/controlcenter/panel.css" type="text/css"?> 14<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUI.css" type="text/css"?> 15<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 16<?xml-stylesheet href="chrome://browser/skin/browser-lightweightTheme.css" type="text/css"?> 17 18<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?> 19<?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?> 20<?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?> 21 22# All DTD information is stored in a separate file so that it can be shared by 23# hiddenWindow.xul. 24#include browser-doctype.inc 25 26<window id="main-window" 27 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 28 xmlns:svg="http://www.w3.org/2000/svg" 29 xmlns:html="http://www.w3.org/1999/xhtml" 30 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 31 onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();" 32 title="&mainWindow.title;" 33 title_normal="&mainWindow.title;" 34#ifdef XP_MACOSX 35 title_privatebrowsing="&mainWindow.title;&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;" 36 titledefault="&mainWindow.title;" 37 titlemodifier="" 38 titlemodifier_normal="" 39 titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;" 40#else 41 title_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;" 42 titlemodifier="&mainWindow.titlemodifier;" 43 titlemodifier_normal="&mainWindow.titlemodifier;" 44 titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;" 45#endif 46#ifdef CAN_DRAW_IN_TITLEBAR 47#ifdef XP_WIN 48 chromemargin="0,2,2,2" 49#else 50 chromemargin="0,-1,-1,-1" 51#endif 52 tabsintitlebar="true" 53#endif 54 titlemenuseparator="&mainWindow.titlemodifiermenuseparator;" 55 lightweightthemes="true" 56 lightweightthemesfooter="browser-bottombox" 57 windowtype="navigator:browser" 58 macanimationtype="document" 59 screenX="4" screenY="4" 60 fullscreenbutton="true" 61 sizemode="normal" 62 retargetdocumentfocus="urlbar" 63 persist="screenX screenY width height sizemode"> 64 65# All JS files which are not content (only) dependent that browser.xul 66# wishes to include *must* go into the global-scripts.inc file 67# so that they can be shared by macBrowserOverlay.xul. 68#include global-scripts.inc 69<script type="application/javascript" src="chrome://browser/content/nsContextMenu.js"/> 70 71<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/> 72 73<script type="application/javascript" src="chrome://browser/content/downloads/downloads.js"/> 74<script type="application/javascript" src="chrome://browser/content/downloads/indicator.js"/> 75<script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/> 76 77# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the 78# browser-sets.inc file for sharing with hiddenWindow.xul. 79#define FULL_BROWSER_WINDOW 80#include browser-sets.inc 81#undef FULL_BROWSER_WINDOW 82 83 <popupset id="mainPopupSet"> 84 <menupopup id="tabContextMenu" 85 onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);" 86 onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;"> 87 <menuitem id="context_reloadTab" label="&reloadTab.label;" accesskey="&reloadTab.accesskey;" 88 oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/> 89 <menuitem id="context_toggleMuteTab" oncommand="TabContextMenu.contextTab.toggleMuteAudio();"/> 90 <menuseparator/> 91 <menuitem id="context_pinTab" label="&pinTab.label;" 92 accesskey="&pinTab.accesskey;" 93 oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/> 94 <menuitem id="context_unpinTab" label="&unpinTab.label;" hidden="true" 95 accesskey="&unpinTab.accesskey;" 96 oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/> 97 <menuitem id="context_openTabInWindow" label="&moveToNewWindow.label;" 98 accesskey="&moveToNewWindow.accesskey;" 99 tbattr="tabbrowser-multiple" 100 oncommand="gBrowser.replaceTabWithWindow(TabContextMenu.contextTab);"/> 101#ifdef E10S_TESTING_ONLY 102 <menuitem id="context_openNonRemoteWindow" label="Open in new non-e10s window" 103 tbattr="tabbrowser-remote" 104 hidden="true" 105 oncommand="gBrowser.openNonRemoteWindow(TabContextMenu.contextTab);"/> 106#endif 107 <menuseparator id="context_sendTabToDevice_separator" hidden="true"/> 108 <menu id="context_sendTabToDevice" label="&sendTabToDevice.label;" 109 accesskey="&sendTabToDevice.accesskey;" hidden="true"> 110 <menupopup id="context_sendTabToDevicePopupMenu" 111 onpopupshowing="gFxAccounts.populateSendTabToDevicesMenu(event.target, TabContextMenu.contextTab.linkedBrowser.currentURI.spec, TabContextMenu.contextTab.linkedBrowser.contentTitle);"/> 112 </menu> 113 <menuseparator/> 114 <menuitem id="context_reloadAllTabs" label="&reloadAllTabs.label;" accesskey="&reloadAllTabs.accesskey;" 115 tbattr="tabbrowser-multiple-visible" 116 oncommand="gBrowser.reloadAllTabs();"/> 117 <menuitem id="context_bookmarkAllTabs" 118 label="&bookmarkAllTabs.label;" 119 accesskey="&bookmarkAllTabs.accesskey;" 120 command="Browser:BookmarkAllTabs"/> 121 <menuitem id="context_closeTabsToTheEnd" label="&closeTabsToTheEnd.label;" accesskey="&closeTabsToTheEnd.accesskey;" 122 oncommand="gBrowser.removeTabsToTheEndFrom(TabContextMenu.contextTab, {animate: true});"/> 123 <menuitem id="context_closeOtherTabs" label="&closeOtherTabs.label;" accesskey="&closeOtherTabs.accesskey;" 124 oncommand="gBrowser.removeAllTabsBut(TabContextMenu.contextTab);"/> 125 <menuseparator/> 126 <menuitem id="context_undoCloseTab" 127 label="&undoCloseTab.label;" 128 accesskey="&undoCloseTab.accesskey;" 129 observes="History:UndoCloseTab"/> 130 <menuitem id="context_closeTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;" 131 oncommand="gBrowser.removeTab(TabContextMenu.contextTab, { animate: true });"/> 132 </menupopup> 133 134 <!-- bug 415444/582485: event.stopPropagation is here for the cloned version 135 of this menupopup --> 136 <menupopup id="backForwardMenu" 137 onpopupshowing="return FillHistoryMenu(event.target);" 138 oncommand="gotoHistoryIndex(event); event.stopPropagation();" 139 onclick="checkForMiddleClick(this, event);"/> 140 <tooltip id="aHTMLTooltip" page="true"/> 141 <tooltip id="remoteBrowserTooltip"/> 142 143 <!-- for search and content formfill/pw manager --> 144 145 <panel type="autocomplete-richlistbox" 146 id="PopupAutoComplete" 147 noautofocus="true" 148 hidden="true" 149 overflowpadding="4" 150 norolluponanchor="true" /> 151 152 <!-- for search with one-off buttons --> 153 <panel type="autocomplete" id="PopupSearchAutoComplete" noautofocus="true" hidden="true"/> 154 155 <!-- for url bar autocomplete --> 156 <panel type="autocomplete-richlistbox" 157 id="PopupAutoCompleteRichResult" 158 noautofocus="true" 159 hidden="true" 160 flip="none" 161 level="parent" 162 overflowpadding="30" /> 163 164 <panel id="DateTimePickerPanel" 165 type="arrow" 166 hidden="true" 167 orient="vertical" 168 noautofocus="true" 169 consumeoutsideclicks="false" 170 level="parent"> 171 <iframe id="dateTimePopupFrame"/> 172 </panel> 173 174 <!-- for select dropdowns. The menupopup is what shows the list of options, 175 and the popuponly menulist makes things like the menuactive attributes 176 work correctly on the menupopup. ContentSelectDropdown expects the 177 popuponly menulist to be its immediate parent. --> 178 <menulist popuponly="true" id="ContentSelectDropdown" hidden="true"> 179 <menupopup rolluponmousewheel="true" 180 activateontab="true" position="after_start" 181#ifdef XP_WIN 182 consumeoutsideclicks="false" ignorekeys="shortcuts" 183#endif 184 /> 185 </menulist> 186 187 <!-- for invalid form error message --> 188 <panel id="invalid-form-popup" type="arrow" orient="vertical" noautofocus="true" hidden="true" level="parent"> 189 <description/> 190 </panel> 191 192 <panel id="editBookmarkPanel" 193 type="arrow" 194 orient="vertical" 195 ignorekeys="true" 196 hidden="true" 197 tabspecific="true" 198 onpopupshown="StarUI.panelShown(event);" 199 aria-labelledby="editBookmarkPanelTitle"> 200 <row id="editBookmarkPanelHeader" align="center" hidden="true"> 201 <vbox align="center"> 202 <image id="editBookmarkPanelStarIcon"/> 203 </vbox> 204 <vbox> 205 <label id="editBookmarkPanelTitle"/> 206 <description id="editBookmarkPanelDescription"/> 207 </vbox> 208 </row> 209 <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/> 210 <hbox id="editBookmarkPanelBottomButtons" pack="end"> 211#ifndef XP_UNIX 212 <button id="editBookmarkPanelDoneButton" 213 class="editBookmarkPanelBottomButton" 214 label="&editBookmark.done.label;" 215 default="true" 216 oncommand="StarUI.panel.hidePopup();"/> 217 <button id="editBookmarkPanelRemoveButton" 218 class="editBookmarkPanelBottomButton" 219 oncommand="StarUI.removeBookmarkButtonCommand();" 220 accesskey="&editBookmark.removeBookmark.accessKey;"/> 221#else 222 <button id="editBookmarkPanelRemoveButton" 223 class="editBookmarkPanelBottomButton" 224 oncommand="StarUI.removeBookmarkButtonCommand();" 225 accesskey="&editBookmark.removeBookmark.accessKey;"/> 226 <button id="editBookmarkPanelDoneButton" 227 class="editBookmarkPanelBottomButton" 228 label="&editBookmark.done.label;" 229 default="true" 230 oncommand="StarUI.panel.hidePopup();"/> 231#endif 232 </hbox> 233 </panel> 234 235 <!-- UI tour experience --> 236 <panel id="UITourTooltip" 237 type="arrow" 238 hidden="true" 239 noautofocus="true" 240 noautohide="true" 241 align="start" 242 orient="vertical" 243 role="alert"> 244 <vbox> 245 <hbox id="UITourTooltipBody"> 246 <image id="UITourTooltipIcon"/> 247 <vbox flex="1"> 248 <hbox id="UITourTooltipTitleContainer"> 249 <label id="UITourTooltipTitle" flex="1"/> 250 <toolbarbutton id="UITourTooltipClose" class="close-icon" 251 tooltiptext="&uiTour.infoPanel.close;"/> 252 </hbox> 253 <description id="UITourTooltipDescription" flex="1"/> 254 </vbox> 255 </hbox> 256 <hbox id="UITourTooltipButtons" flex="1" align="center"/> 257 </vbox> 258 </panel> 259 <!-- type="default" forces frames to be created so that the panel's size can be determined --> 260 <panel id="UITourHighlightContainer" 261 type="default" 262 hidden="true" 263 noautofocus="true" 264 noautohide="true" 265 flip="none" 266 consumeoutsideclicks="false" 267 mousethrough="always"> 268 <box id="UITourHighlight"></box> 269 </panel> 270 271 <panel id="social-share-panel" 272 class="social-panel" 273 type="arrow" 274 orient="vertical" 275 onpopupshowing="SocialShare.onShowing()" 276 onpopuphidden="SocialShare.onHidden()" 277 hidden="true"> 278 <hbox class="social-share-toolbar"> 279 <toolbarbutton id="manage-share-providers" class="share-provider-button" 280 tooltiptext="&social.addons.label;" 281 oncommand="BrowserOpenAddonsMgr('addons://list/service'); 282 this.parentNode.parentNode.hidePopup();"/> 283 <arrowscrollbox id="social-share-provider-buttons" orient="horizontal" flex="1" pack="end"> 284 <toolbarbutton id="add-share-provider" class="share-provider-button" type="radio" 285 group="share-providers" tooltiptext="&findShareServices.label;" 286 oncommand="SocialShare.showDirectory()"/> 287 </arrowscrollbox> 288 </hbox> 289 <hbox id="share-container" flex="1"/> 290 </panel> 291 292 <menupopup id="toolbar-context-menu" 293 onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator'));"> 294 <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode)" 295 accesskey="&customizeMenu.moveToPanel.accesskey;" 296 label="&customizeMenu.moveToPanel.label;" 297 contexttype="toolbaritem" 298 class="customize-context-moveToPanel"/> 299 <menuitem oncommand="gCustomizeMode.removeFromArea(document.popupNode)" 300 accesskey="&customizeMenu.removeFromToolbar.accesskey;" 301 label="&customizeMenu.removeFromToolbar.label;" 302 contexttype="toolbaritem" 303 class="customize-context-removeFromToolbar"/> 304 <menuitem id="toolbar-context-reloadAllTabs" 305 class="toolbaritem-tabsmenu" 306 contexttype="tabbar" 307 oncommand="gBrowser.reloadAllTabs();" 308 label="&toolbarContextMenu.reloadAllTabs.label;" 309 accesskey="&toolbarContextMenu.reloadAllTabs.accesskey;"/> 310 <menuitem id="toolbar-context-bookmarkAllTabs" 311 class="toolbaritem-tabsmenu" 312 contexttype="tabbar" 313 command="Browser:BookmarkAllTabs" 314 label="&toolbarContextMenu.bookmarkAllTabs.label;" 315 accesskey="&toolbarContextMenu.bookmarkAllTabs.accesskey;"/> 316 <menuitem id="toolbar-context-undoCloseTab" 317 class="toolbaritem-tabsmenu" 318 contexttype="tabbar" 319 label="&toolbarContextMenu.undoCloseTab.label;" 320 accesskey="&toolbarContextMenu.undoCloseTab.accesskey;" 321 observes="History:UndoCloseTab"/> 322 <menuseparator/> 323 <menuseparator id="viewToolbarsMenuSeparator"/> 324 <!-- XXXgijs: we're using oncommand handler here to avoid the event being 325 redirected to the command element, thus preventing 326 listeners on the menupopup or further up the tree from 327 seeing the command event pass by. The observes attribute is 328 here so that the menuitem is still disabled and re-enabled 329 correctly. --> 330 <menuitem oncommand="BrowserCustomizeToolbar()" 331 observes="cmd_CustomizeToolbars" 332 class="viewCustomizeToolbar" 333 label="&viewCustomizeToolbar.label;" 334 accesskey="&viewCustomizeToolbar.accesskey;"/> 335 </menupopup> 336 337 <menupopup id="blockedPopupOptions" 338 onpopupshowing="gPopupBlockerObserver.fillPopupList(event);" 339 onpopuphiding="gPopupBlockerObserver.onPopupHiding(event);"> 340 <menuitem observes="blockedPopupAllowSite"/> 341 <menuitem observes="blockedPopupEditSettings"/> 342 <menuitem observes="blockedPopupDontShowMessage"/> 343 <menuseparator observes="blockedPopupsSeparator"/> 344 </menupopup> 345 346 <menupopup id="autohide-context" 347 onpopupshowing="FullScreen.getAutohide(this.firstChild);"> 348 <menuitem type="checkbox" label="&fullScreenAutohide.label;" 349 accesskey="&fullScreenAutohide.accesskey;" 350 oncommand="FullScreen.setAutohide();"/> 351 <menuseparator/> 352 <menuitem label="&fullScreenExit.label;" 353 accesskey="&fullScreenExit.accesskey;" 354 oncommand="BrowserFullScreen();"/> 355 </menupopup> 356 357 <menupopup id="contentAreaContextMenu" pagemenu="#page-menu-separator" 358 onpopupshowing="if (event.target != this) 359 return true; 360 gContextMenu = new nsContextMenu(this, event.shiftKey); 361 if (gContextMenu.shouldDisplay) 362 updateEditUIVisibility(); 363 return gContextMenu.shouldDisplay;" 364 onpopuphiding="if (event.target != this) 365 return; 366 gContextMenu.hiding(); 367 gContextMenu = null; 368 updateEditUIVisibility();"> 369#include browser-context.inc 370 </menupopup> 371 372 <menupopup id="placesContext"> 373 <menuseparator id="placesContext_recentlyBookmarkedSeparator" 374 ignoreitem="true" 375 hidden="true"/> 376 <menuitem id="placesContext_hideRecentlyBookmarked" 377 label="&hideRecentlyBookmarked.label;" 378 accesskey="&hideRecentlyBookmarked.accesskey;" 379 oncommand="BookmarkingUI.hideRecentlyBookmarked();" 380 closemenu="single" 381 ignoreitem="true" 382 hidden="true"/> 383 <menuitem id="placesContext_showRecentlyBookmarked" 384 label="&showRecentlyBookmarked.label;" 385 accesskey="&showRecentlyBookmarked.accesskey;" 386 oncommand="BookmarkingUI.showRecentlyBookmarked();" 387 closemenu="single" 388 ignoreitem="true" 389 hidden="true"/> 390 </menupopup> 391 392 <panel id="ctrlTab-panel" hidden="true" norestorefocus="true" level="top"> 393 <hbox> 394 <button class="ctrlTab-preview" flex="1"/> 395 <button class="ctrlTab-preview" flex="1"/> 396 <button class="ctrlTab-preview" flex="1"/> 397 <button class="ctrlTab-preview" flex="1"/> 398 <button class="ctrlTab-preview" flex="1"/> 399 <button class="ctrlTab-preview" flex="1"/> 400 </hbox> 401 <hbox pack="center"> 402 <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/> 403 </hbox> 404 </panel> 405 406 <!-- Bookmarks and history tooltip --> 407 <tooltip id="bhTooltip"/> 408 409 <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/> 410 411 <tooltip id="back-button-tooltip"> 412 <label class="tooltip-label" value="&backButton.tooltip;"/> 413#ifdef XP_MACOSX 414 <label class="tooltip-label" value="&backForwardButtonMenuMac.tooltip;"/> 415#else 416 <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/> 417#endif 418 </tooltip> 419 420 <tooltip id="forward-button-tooltip"> 421 <label class="tooltip-label" value="&forwardButton.tooltip;"/> 422#ifdef XP_MACOSX 423 <label class="tooltip-label" value="&backForwardButtonMenuMac.tooltip;"/> 424#else 425 <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/> 426#endif 427 </tooltip> 428 429 <tooltip id="share-button-tooltip" onpopupshowing="SocialShare.createTooltip(event);"> 430 <label class="tooltip-label"/> 431 <label class="tooltip-label"/> 432 </tooltip> 433 434#include popup-notifications.inc 435 436#include ../../components/customizableui/content/panelUI.inc.xul 437#include ../../components/controlcenter/content/panel.inc.xul 438 439 <hbox id="downloads-animation-container" mousethrough="always"> 440 <vbox id="downloads-notification-anchor"> 441 <vbox id="downloads-indicator-notification"/> 442 </vbox> 443 </hbox> 444 445 <hbox id="bookmarked-notification-container" mousethrough="always"> 446 <vbox id="bookmarked-notification-anchor"> 447 <vbox id="bookmarked-notification"/> 448 </vbox> 449 <vbox id="bookmarked-notification-dropmarker-anchor"> 450 <image id="bookmarked-notification-dropmarker-icon"/> 451 </vbox> 452 </hbox> 453 454 <tooltip id="dynamic-shortcut-tooltip" 455 onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/> 456 457 <menupopup id="SyncedTabsSidebarContext"> 458 <menuitem label="&syncedTabs.context.open.label;" 459 accesskey="&syncedTabs.context.open.accesskey;" 460 id="syncedTabsOpenSelected" where="current"/> 461 <menuitem label="&syncedTabs.context.openInNewTab.label;" 462 accesskey="&syncedTabs.context.openInNewTab.accesskey;" 463 id="syncedTabsOpenSelectedInTab" where="tab"/> 464 <menuitem label="&syncedTabs.context.openInNewWindow.label;" 465 accesskey="&syncedTabs.context.openInNewWindow.accesskey;" 466 id="syncedTabsOpenSelectedInWindow" where="window"/> 467 <menuitem label="&syncedTabs.context.openInNewPrivateWindow.label;" 468 accesskey="&syncedTabs.context.openInNewPrivateWindow.accesskey;" 469 id="syncedTabsOpenSelectedInPrivateWindow" where="window" private="true"/> 470 <menuseparator/> 471 <menuitem label="&syncedTabs.context.bookmarkSingleTab.label;" 472 accesskey="&syncedTabs.context.bookmarkSingleTab.accesskey;" 473 id="syncedTabsBookmarkSelected"/> 474 <menuitem label="&syncedTabs.context.copy.label;" 475 accesskey="&syncedTabs.context.copy.accesskey;" 476 id="syncedTabsCopySelected"/> 477 <menuseparator/> 478 <menuitem label="&syncSyncNowItem.label;" 479 accesskey="&syncSyncNowItem.accesskey;" 480 id="syncedTabsRefresh"/> 481 </menupopup> 482 <menupopup id="SyncedTabsSidebarTabsFilterContext" 483 class="textbox-contextmenu"> 484 <menuitem label="&undoCmd.label;" 485 accesskey="&undoCmd.accesskey;" 486 cmd="cmd_undo"/> 487 <menuseparator/> 488 <menuitem label="&cutCmd.label;" 489 accesskey="&cutCmd.accesskey;" 490 cmd="cmd_cut"/> 491 <menuitem label="©Cmd.label;" 492 accesskey="©Cmd.accesskey;" 493 cmd="cmd_copy"/> 494 <menuitem label="&pasteCmd.label;" 495 accesskey="&pasteCmd.accesskey;" 496 cmd="cmd_paste"/> 497 <menuitem label="&deleteCmd.label;" 498 accesskey="&deleteCmd.accesskey;" 499 cmd="cmd_delete"/> 500 <menuseparator/> 501 <menuitem label="&selectAllCmd.label;" 502 accesskey="&selectAllCmd.accesskey;" 503 cmd="cmd_selectAll"/> 504 <menuseparator/> 505 <menuitem label="&syncSyncNowItem.label;" 506 accesskey="&syncSyncNowItem.accesskey;" 507 id="syncedTabsRefreshFilter"/> 508 </menupopup> 509 </popupset> 510 511#ifdef CAN_DRAW_IN_TITLEBAR 512<vbox id="titlebar"> 513 <hbox id="titlebar-content"> 514 <spacer id="titlebar-spacer" flex="1"/> 515 <hbox id="titlebar-buttonbox-container"> 516#ifdef XP_WIN 517 <hbox id="private-browsing-indicator-titlebar"> 518 <hbox class="private-browsing-indicator"/> 519 </hbox> 520#endif 521 <hbox id="titlebar-buttonbox"> 522 <toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/> 523 <toolbarbutton class="titlebar-button" id="titlebar-max" oncommand="onTitlebarMaxClick();"/> 524 <toolbarbutton class="titlebar-button" id="titlebar-close" command="cmd_closeWindow"/> 525 </hbox> 526 </hbox> 527#ifdef XP_MACOSX 528 <!-- OS X does not natively support RTL for its titlebar items, so we prevent this secondary 529 buttonbox from reversing order in RTL by forcing an LTR direction. --> 530 <hbox id="titlebar-secondary-buttonbox" dir="ltr"> 531 <hbox class="private-browsing-indicator"/> 532 <hbox id="titlebar-fullscreen-button"/> 533 </hbox> 534#endif 535 </hbox> 536</vbox> 537#endif 538 539<deck flex="1" id="tab-view-deck"> 540<vbox flex="1" id="browser-panel"> 541 542 <toolbox id="navigator-toolbox" mode="icons"> 543 <!-- Menu --> 544 <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true" 545 mode="icons" iconsize="small" 546#ifdef MENUBAR_CAN_AUTOHIDE 547 toolbarname="&menubarCmd.label;" 548 accesskey="&menubarCmd.accesskey;" 549#if defined(MOZ_WIDGET_GTK) 550 autohide="true" 551#endif 552#endif 553 context="toolbar-context-menu"> 554 <toolbaritem id="menubar-items" align="center"> 555# The entire main menubar is placed into browser-menubar.inc, so that it can be shared by 556# hiddenWindow.xul. 557#include browser-menubar.inc 558 </toolbaritem> 559 560#ifdef CAN_DRAW_IN_TITLEBAR 561#ifndef XP_MACOSX 562 <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000" 563 id="titlebar-placeholder-on-menubar-for-caption-buttons" persist="width" 564 skipintoolbarset="true"/> 565#endif 566#endif 567 </toolbar> 568 569 <toolbar id="TabsToolbar" 570 fullscreentoolbar="true" 571 customizable="true" 572 mode="icons" 573 iconsize="small" 574 aria-label="&tabsToolbar.label;" 575 context="toolbar-context-menu" 576 collapsed="true"> 577 578#if defined(MOZ_WIDGET_GTK) 579 <hbox id="private-browsing-indicator" 580 skipintoolbarset="true"/> 581#endif 582 583 <tabs id="tabbrowser-tabs" 584 class="tabbrowser-tabs" 585 tabbrowser="content" 586 flex="1" 587 setfocus="false" 588 tooltip="tabbrowser-tab-tooltip" 589 stopwatchid="FX_TAB_CLICK_MS"> 590 <tab class="tabbrowser-tab" selected="true" visuallyselected="true" fadein="true"/> 591 </tabs> 592 593 <toolbarbutton id="new-tab-button" 594 class="toolbarbutton-1 chromeclass-toolbar-additional" 595 label="&tabCmd.label;" 596 command="cmd_newNavigatorTab" 597 onclick="checkForMiddleClick(this, event);" 598 tooltip="dynamic-shortcut-tooltip" 599 ondrop="newTabButtonObserver.onDrop(event)" 600 ondragover="newTabButtonObserver.onDragOver(event)" 601 ondragenter="newTabButtonObserver.onDragOver(event)" 602 ondragexit="newTabButtonObserver.onDragExit(event)" 603 cui-areatype="toolbar" 604 removable="true"/> 605 606 <toolbarbutton id="alltabs-button" 607 class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button" 608 type="menu" 609 label="&listAllTabs.label;" 610 tooltiptext="&listAllTabs.label;" 611 removable="false"> 612 <menupopup id="alltabs-popup" 613 position="after_end"> 614 <menuitem id="alltabs_undoCloseTab" 615 class="menuitem-iconic" 616 key="key_undoCloseTab" 617 label="&undoCloseTab.label;" 618 observes="History:UndoCloseTab"/> 619 <menuseparator id="alltabs-popup-separator-1"/> 620 <menu id="alltabs_containersTab" 621 label="&newUserContext.label;"> 622 <menupopup id="alltabs_containersMenuTab" /> 623 </menu> 624 <menuseparator id="alltabs-popup-separator-2"/> 625 </menupopup> 626 </toolbarbutton> 627 628#if !defined(MOZ_WIDGET_GTK) 629 <hbox class="private-browsing-indicator" skipintoolbarset="true"/> 630#endif 631#ifdef CAN_DRAW_IN_TITLEBAR 632 <hbox class="titlebar-placeholder" type="caption-buttons" 633 id="titlebar-placeholder-on-TabsToolbar-for-captions-buttons" persist="width" 634#ifndef XP_MACOSX 635 ordinal="1000" 636#endif 637 skipintoolbarset="true"/> 638 639#ifdef XP_MACOSX 640 <hbox class="titlebar-placeholder" type="fullscreen-button" 641 id="titlebar-placeholder-on-TabsToolbar-for-fullscreen-button" persist="width" 642 skipintoolbarset="true"/> 643#endif 644#endif 645 </toolbar> 646 647 <toolbar id="nav-bar" 648 aria-label="&navbarCmd.label;" 649 fullscreentoolbar="true" mode="icons" customizable="true" 650 iconsize="small" 651 customizationtarget="nav-bar-customization-target" 652 overflowable="true" 653 overflowbutton="nav-bar-overflow-button" 654 overflowtarget="widget-overflow-list" 655 overflowpanel="widget-overflow" 656 context="toolbar-context-menu"> 657 658 <hbox id="nav-bar-customization-target" flex="1"> 659 <toolbaritem id="urlbar-container" flex="400" persist="width" 660 removable="false" 661 class="chromeclass-location" overflows="false"> 662 <toolbarbutton id="back-button" class="toolbarbutton-1 chromeclass-toolbar-additional" 663 label="&backCmd.label;" 664 command="Browser:BackOrBackDuplicate" 665 onclick="checkForMiddleClick(this, event);" 666 tooltip="back-button-tooltip" 667 context="backForwardMenu"/> 668 <hbox id="urlbar-wrapper" flex="1"> 669 <toolbarbutton id="forward-button" class="toolbarbutton-1 chromeclass-toolbar-additional" 670 label="&forwardCmd.label;" 671 command="Browser:ForwardOrForwardDuplicate" 672 onclick="checkForMiddleClick(this, event);" 673 tooltip="forward-button-tooltip" 674 context="backForwardMenu"/> 675 <textbox id="urlbar" flex="1" 676 placeholder="&urlbar.placeholder2;" 677 type="autocomplete" 678 autocompletesearch="unifiedcomplete" 679 autocompletesearchparam="enable-actions" 680 autocompletepopup="PopupAutoCompleteRichResult" 681 completeselectedindex="true" 682 shrinkdelay="250" 683 tabscrolling="true" 684 showcommentcolumn="true" 685 showimagecolumn="true" 686 enablehistory="true" 687 maxrows="10" 688 newlines="stripsurroundingwhitespace" 689 ontextentered="this.handleCommand(param);" 690 ontextreverted="return this.handleRevert();" 691 pageproxystate="invalid"> 692 <!-- Use onclick instead of normal popup= syntax since the popup 693 code fires onmousedown, and hence eats our favicon drag events. --> 694 <box id="identity-box" role="button" 695 align="center" 696 aria-label="&urlbar.viewSiteInfo.label;" 697 onclick="gIdentityHandler.handleIdentityButtonEvent(event);" 698 onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);" 699 ondragstart="gIdentityHandler.onDragStart(event);"> 700 <image id="identity-icon" 701 consumeanchor="identity-box" 702 onclick="PageProxyClickHandler(event);"/> 703 <image id="sharing-icon" mousethrough="always"/> 704 <box id="blocked-permissions-container" align="center"> 705 <image data-permission-id="geo" class="blocked-permission-icon geo-icon" role="button" 706 tooltiptext="&urlbar.geolocationBlocked.tooltip;"/> 707 <image data-permission-id="desktop-notification" class="blocked-permission-icon desktop-notification-icon" role="button" 708 tooltiptext="&urlbar.webNotificationsBlocked.tooltip;"/> 709 <image data-permission-id="camera" class="blocked-permission-icon camera-icon" role="button" 710 tooltiptext="&urlbar.cameraBlocked.tooltip;"/> 711 <image data-permission-id="indexedDB" class="blocked-permission-icon indexedDB-icon" role="button" 712 tooltiptext="&urlbar.indexedDBBlocked.tooltip;"/> 713 <image data-permission-id="microphone" class="blocked-permission-icon microphone-icon" role="button" 714 tooltiptext="&urlbar.microphoneBlocked.tooltip;"/> 715 <image data-permission-id="screen" class="blocked-permission-icon screen-icon" role="button" 716 tooltiptext="&urlbar.screenBlocked.tooltip;"/> 717 </box> 718 <box id="notification-popup-box" 719 hidden="true" 720 onmouseover="document.getElementById('identity-icon').classList.add('no-hover');" 721 onmouseout="document.getElementById('identity-icon').classList.remove('no-hover');" 722 align="center"> 723 <image id="default-notification-icon" class="notification-anchor-icon" role="button" 724 tooltiptext="&urlbar.defaultNotificationAnchor.tooltip;"/> 725 <image id="geo-notification-icon" class="notification-anchor-icon geo-icon" role="button" 726 tooltiptext="&urlbar.geolocationNotificationAnchor.tooltip;"/> 727 <image id="addons-notification-icon" class="notification-anchor-icon install-icon" role="button" 728 tooltiptext="&urlbar.addonsNotificationAnchor.tooltip;"/> 729 <image id="indexedDB-notification-icon" class="notification-anchor-icon indexedDB-icon" role="button" 730 tooltiptext="&urlbar.indexedDBNotificationAnchor.tooltip;"/> 731 <image id="password-notification-icon" class="notification-anchor-icon login-icon" role="button" 732 tooltiptext="&urlbar.passwordNotificationAnchor.tooltip;"/> 733 <image id="plugins-notification-icon" class="notification-anchor-icon plugin-icon" role="button" 734 tooltiptext="&urlbar.pluginsNotificationAnchor.tooltip;"/> 735 <image id="web-notifications-notification-icon" class="notification-anchor-icon desktop-notification-icon" role="button" 736 tooltiptext="&urlbar.webNotificationAnchor.tooltip;"/> 737 <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon camera-icon" role="button" 738 tooltiptext="&urlbar.webRTCShareDevicesNotificationAnchor.tooltip;"/> 739 <image id="webRTC-shareMicrophone-notification-icon" class="notification-anchor-icon microphone-icon" role="button" 740 tooltiptext="&urlbar.webRTCShareMicrophoneNotificationAnchor.tooltip;"/> 741 <image id="webRTC-shareScreen-notification-icon" class="notification-anchor-icon screen-icon" role="button" 742 tooltiptext="&urlbar.webRTCShareScreenNotificationAnchor.tooltip;"/> 743 <image id="servicesInstall-notification-icon" class="notification-anchor-icon service-icon" role="button" 744 tooltiptext="&urlbar.servicesNotificationAnchor.tooltip;"/> 745 <image id="translate-notification-icon" class="notification-anchor-icon translation-icon" role="button" 746 tooltiptext="&urlbar.translateNotificationAnchor.tooltip;"/> 747 <image id="translated-notification-icon" class="notification-anchor-icon translation-icon in-use" role="button" 748 tooltiptext="&urlbar.translatedNotificationAnchor.tooltip;"/> 749 <image id="eme-notification-icon" class="notification-anchor-icon drm-icon" role="button" 750 tooltiptext="&urlbar.emeNotificationAnchor.tooltip;"/> 751 </box> 752 <image id="tracking-protection-icon"/> 753 <image id="connection-icon"/> 754 <hbox id="identity-icon-labels"> 755 <label id="identity-icon-label" class="plain" flex="1"/> 756 <label id="identity-icon-country-label" class="plain"/> 757 </hbox> 758 </box> 759 <box id="urlbar-display-box" align="center"> 760 <label id="switchtab" class="urlbar-display urlbar-display-switchtab" value="&urlbar.switchToTab.label;"/> 761 <label id="extension" class="urlbar-display urlbar-display-extension" value="&urlbar.extension.label;"/> 762 </box> 763 <hbox id="urlbar-icons"> 764 <image id="page-report-button" 765 class="urlbar-icon" 766 hidden="true" 767 tooltiptext="&pageReportIcon.tooltip;" 768 onmousedown="gPopupBlockerObserver.onReportButtonMousedown(event);"/> 769 <image id="reader-mode-button" 770 class="urlbar-icon" 771 hidden="true" 772 onclick="ReaderParent.buttonClick(event);"/> 773 <toolbarbutton id="urlbar-zoom-button" 774 onclick="FullZoom.reset();" 775 tooltiptext="&urlbar.zoomReset.tooltip;" 776 hidden="true"/> 777 </hbox> 778 <hbox id="userContext-icons" hidden="true"> 779 <label id="userContext-label"/> 780 <image id="userContext-indicator"/> 781 </hbox> 782 <toolbarbutton id="urlbar-go-button" 783 class="chromeclass-toolbar-additional" 784 onclick="gURLBar.handleCommand(event);" 785 tooltiptext="&goEndCap.tooltip;"/> 786 <toolbarbutton id="urlbar-reload-button" 787 class="chromeclass-toolbar-additional" 788 command="Browser:ReloadOrDuplicate" 789 onclick="checkForMiddleClick(this, event);" 790 tooltiptext="&reloadButton.tooltip;"/> 791 <toolbarbutton id="urlbar-stop-button" 792 class="chromeclass-toolbar-additional" 793 command="Browser:Stop" 794 tooltiptext="&stopButton.tooltip;"/> 795 </textbox> 796 </hbox> 797 </toolbaritem> 798 799 <toolbaritem id="search-container" title="&searchItem.title;" 800 align="center" class="chromeclass-toolbar-additional panel-wide-item" 801 cui-areatype="toolbar" 802 flex="100" persist="width" removable="true"> 803 <searchbar id="searchbar" flex="1"/> 804 </toolbaritem> 805 806 <toolbarbutton id="bookmarks-menu-button" 807 class="toolbarbutton-1 chromeclass-toolbar-additional" 808 removable="true" 809 type="menu-button" 810 label="&bookmarksMenuButton.label;" 811 tooltip="dynamic-shortcut-tooltip" 812 anchor="dropmarker" 813 ondragenter="PlacesMenuDNDHandler.onDragEnter(event);" 814 ondragover="PlacesMenuDNDHandler.onDragOver(event);" 815 ondragleave="PlacesMenuDNDHandler.onDragLeave(event);" 816 ondrop="PlacesMenuDNDHandler.onDrop(event);" 817 cui-areatype="toolbar" 818 oncommand="BookmarkingUI.onCommand(event);"> 819 <observes element="bookmarkThisPageBroadcaster" attribute="starred"/> 820 <observes element="bookmarkThisPageBroadcaster" attribute="buttontooltiptext"/> 821 <menupopup id="BMB_bookmarksPopup" 822 class="cui-widget-panel cui-widget-panelview cui-widget-panelWithFooter PanelUI-subView" 823 placespopup="true" 824 context="placesContext" 825 openInTabs="children" 826 oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);" 827 onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);" 828 onpopupshowing="BookmarkingUI.onPopupShowing(event); 829 BookmarkingUI.attachPlacesView(event, this);" 830 tooltip="bhTooltip" popupsinherittooltip="true"> 831 <menuitem id="BMB_viewBookmarksSidebar" 832 class="subviewbutton" 833 label="&viewBookmarksSidebar2.label;" 834 type="checkbox" 835 oncommand="SidebarUI.toggle('viewBookmarksSidebar');"> 836 <observes element="viewBookmarksSidebar" attribute="checked"/> 837 </menuitem> 838 <!-- NB: temporary solution for bug 985024, this should go away soon. --> 839 <menuitem id="BMB_bookmarksShowAllTop" 840 class="menuitem-iconic subviewbutton" 841 label="&showAllBookmarks2.label;" 842 command="Browser:ShowAllBookmarks" 843 key="manBookmarkKb"/> 844 <menuseparator/> 845 <menuitem label="&recentBookmarks.label;" 846 id="BMB_recentBookmarks" 847 disabled="true" 848 class="menuitem-iconic subviewbutton"/> 849 <menuseparator/> 850 <menu id="BMB_bookmarksToolbar" 851 class="menu-iconic bookmark-item subviewbutton" 852 label="&personalbarCmd.label;" 853 container="true"> 854 <menupopup id="BMB_bookmarksToolbarPopup" 855 placespopup="true" 856 context="placesContext" 857 onpopupshowing="if (!this.parentNode._placesView) 858 new PlacesMenu(event, 'place:folder=TOOLBAR', 859 PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"> 860 <menuitem id="BMB_viewBookmarksToolbar" 861 placesanonid="view-toolbar" 862 toolbarId="PersonalToolbar" 863 type="checkbox" 864 oncommand="onViewToolbarCommand(event)" 865 label="&viewBookmarksToolbar.label;"/> 866 <menuseparator/> 867 <!-- Bookmarks toolbar items --> 868 </menupopup> 869 </menu> 870 <menu id="BMB_unsortedBookmarks" 871 class="menu-iconic bookmark-item subviewbutton" 872 label="&bookmarksMenuButton.other.label;" 873 container="true"> 874 <menupopup id="BMB_unsortedBookmarksPopup" 875 placespopup="true" 876 context="placesContext" 877 onpopupshowing="if (!this.parentNode._placesView) 878 new PlacesMenu(event, 'place:folder=UNFILED_BOOKMARKS', 879 PlacesUIUtils.getViewForNode(this.parentNode.parentNode).options);"/> 880 </menu> 881 <menuseparator/> 882 <!-- Bookmarks menu items will go here --> 883 <menuitem id="BMB_bookmarksShowAll" 884 class="subviewbutton panel-subview-footer" 885 label="&showAllBookmarks2.label;" 886 command="Browser:ShowAllBookmarks" 887 key="manBookmarkKb"/> 888 </menupopup> 889 </toolbarbutton> 890 891 <!-- This is a placeholder for the Downloads Indicator. It is visible 892 during the customization of the toolbar, in the palette, and before 893 the Downloads Indicator overlay is loaded. --> 894 <toolbarbutton id="downloads-button" 895 class="toolbarbutton-1 chromeclass-toolbar-additional badged-button" 896 key="key_openDownloads" 897 oncommand="DownloadsIndicatorView.onCommand(event);" 898 ondrop="DownloadsIndicatorView.onDrop(event);" 899 ondragover="DownloadsIndicatorView.onDragOver(event);" 900 ondragenter="DownloadsIndicatorView.onDragOver(event);" 901 label="&downloads.label;" 902 removable="true" 903 cui-areatype="toolbar" 904 tooltip="dynamic-shortcut-tooltip"/> 905 906 <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional" 907 removable="true" 908 label="&homeButton.label;" 909 ondragover="homeButtonObserver.onDragOver(event)" 910 ondragenter="homeButtonObserver.onDragOver(event)" 911 ondrop="homeButtonObserver.onDrop(event)" 912 ondragexit="homeButtonObserver.onDragExit(event)" 913 key="goHome" 914 onclick="BrowserGoHome(event);" 915 cui-areatype="toolbar" 916 aboutHomeOverrideTooltip="&abouthome.pageTitle;"/> 917 </hbox> 918 919 <toolbarbutton id="nav-bar-overflow-button" 920 class="toolbarbutton-1 chromeclass-toolbar-additional overflow-button" 921 skipintoolbarset="true" 922 tooltiptext="&navbarOverflow.label;"/> 923 924 <toolbaritem id="PanelUI-button" 925 class="chromeclass-toolbar-additional" 926 removable="false"> 927 <toolbarbutton id="PanelUI-menu-button" 928 class="toolbarbutton-1 badged-button" 929 consumeanchor="PanelUI-button" 930 label="&brandShortName;" 931 tooltiptext="&appmenu.tooltip;"/> 932 </toolbaritem> 933 934 <hbox id="window-controls" hidden="true" pack="end" skipintoolbarset="true" 935 ordinal="1000"> 936 <toolbarbutton id="minimize-button" 937 tooltiptext="&fullScreenMinimize.tooltip;" 938 oncommand="window.minimize();"/> 939 940 <toolbarbutton id="restore-button" 941#ifdef XP_MACOSX 942# Prior to 10.7 there wasn't a native fullscreen button so we use #restore-button 943# to exit fullscreen and want it to behave like other toolbar buttons. 944 class="toolbarbutton-1" 945#endif 946 tooltiptext="&fullScreenRestore.tooltip;" 947 oncommand="BrowserFullScreen();"/> 948 949 <toolbarbutton id="close-button" 950 tooltiptext="&fullScreenClose.tooltip;" 951 oncommand="BrowserTryToCloseWindow();"/> 952 </hbox> 953 </toolbar> 954 955 <toolbarset id="customToolbars" context="toolbar-context-menu"/> 956 957 <toolbar id="PersonalToolbar" 958 mode="icons" iconsize="small" 959 class="chromeclass-directories" 960 context="toolbar-context-menu" 961 toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;" 962 collapsed="true" 963 customizable="true"> 964 <toolbaritem id="personal-bookmarks" 965 title="&bookmarksToolbarItem.label;" 966 cui-areatype="toolbar" 967 removable="true"> 968 <toolbarbutton id="bookmarks-toolbar-placeholder" 969 class="toolbarbutton-1" 970 mousethrough="never" 971 label="&bookmarksToolbarItem.label;" 972 oncommand="PlacesToolbarHelper.onPlaceholderCommand();"/> 973 <hbox flex="1" 974 id="PlacesToolbar" 975 context="placesContext" 976 onclick="BookmarksEventHandler.onClick(event, this._placesView);" 977 oncommand="BookmarksEventHandler.onCommand(event, this._placesView);" 978 tooltip="bhTooltip" 979 popupsinherittooltip="true"> 980 <hbox flex="1"> 981 <hbox id="PlacesToolbarDropIndicatorHolder" align="center" collapsed="true"> 982 <image id="PlacesToolbarDropIndicator" 983 mousethrough="always" 984 collapsed="true"/> 985 </hbox> 986 <scrollbox orient="horizontal" 987 id="PlacesToolbarItems" 988 flex="1"/> 989 <toolbarbutton type="menu" 990 id="PlacesChevron" 991 class="chevron" 992 mousethrough="never" 993 collapsed="true" 994 tooltiptext="&bookmarksToolbarChevron.tooltip;" 995 onpopupshowing="document.getElementById('PlacesToolbar') 996 ._placesView._onChevronPopupShowing(event);"> 997 <menupopup id="PlacesChevronPopup" 998 placespopup="true" 999 tooltip="bhTooltip" popupsinherittooltip="true" 1000 context="placesContext"/> 1001 </toolbarbutton> 1002 </hbox> 1003 </hbox> 1004 </toolbaritem> 1005 </toolbar> 1006 1007 <!-- This is a shim which will go away ASAP. See bug 749804 for details --> 1008 <toolbar id="addon-bar" toolbar-delegate="nav-bar" mode="icons" iconsize="small" 1009 customizable="true"> 1010 <hbox id="addonbar-closebutton"/> 1011 <statusbar id="status-bar"/> 1012 </toolbar> 1013 1014 <toolbarpalette id="BrowserToolbarPalette"> 1015 1016# Update primaryToolbarButtons in browser/themes/shared/browser.inc when adding 1017# or removing default items with the toolbarbutton-1 class. 1018 1019 <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional" 1020#ifdef XP_MACOSX 1021 command="cmd_print" 1022 tooltip="dynamic-shortcut-tooltip" 1023#else 1024 command="cmd_printPreview" 1025 tooltiptext="&printButton.tooltip;" 1026#endif 1027 label="&printButton.label;"/> 1028 1029 1030 <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional" 1031 label="&newNavigatorCmd.label;" 1032 command="key_newNavigator" 1033 tooltip="dynamic-shortcut-tooltip" 1034 ondrop="newWindowButtonObserver.onDrop(event)" 1035 ondragover="newWindowButtonObserver.onDragOver(event)" 1036 ondragenter="newWindowButtonObserver.onDragOver(event)" 1037 ondragexit="newWindowButtonObserver.onDragExit(event)"/> 1038 1039 <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional" 1040 observes="View:FullScreen" 1041 type="checkbox" 1042 label="&fullScreenCmd.label;" 1043 tooltip="dynamic-shortcut-tooltip"/> 1044 </toolbarpalette> 1045 </toolbox> 1046 1047 <hbox id="fullscr-toggler" hidden="true"/> 1048 1049 <deck id="content-deck" flex="1"> 1050 <hbox flex="1" id="browser"> 1051 <vbox id="browser-border-start" hidden="true" layer="true"/> 1052 <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome"> 1053 <sidebarheader id="sidebar-header" align="center"> 1054 <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/> 1055 <image id="sidebar-throbber"/> 1056 <toolbarbutton class="close-icon tabbable" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="SidebarUI.hide();"/> 1057 </sidebarheader> 1058 <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true" disablefullscreen="true" 1059 style="min-width: 14em; width: 18em; max-width: 36em;" tooltip="aHTMLTooltip"/> 1060 </vbox> 1061 1062 <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" hidden="true"/> 1063 <vbox id="appcontent" flex="1"> 1064 <notificationbox id="high-priority-global-notificationbox" notificationside="top"/> 1065 <tabbrowser id="content" 1066 flex="1" contenttooltip="aHTMLTooltip" 1067 tabcontainer="tabbrowser-tabs" 1068 contentcontextmenu="contentAreaContextMenu" 1069 autocompletepopup="PopupAutoComplete" 1070 selectmenulist="ContentSelectDropdown" 1071 datetimepicker="DateTimePickerPanel"/> 1072 </vbox> 1073 <vbox id="browser-border-end" hidden="true" layer="true"/> 1074 </hbox> 1075#include ../../components/customizableui/content/customizeMode.inc.xul 1076 </deck> 1077 1078 <html:div id="fullscreen-warning" class="pointerlockfswarning" hidden="true"> 1079 <html:div class="pointerlockfswarning-domain-text"> 1080 &fullscreenWarning.beforeDomain.label; 1081 <html:span class="pointerlockfswarning-domain"/> 1082 &fullscreenWarning.afterDomain.label; 1083 </html:div> 1084 <html:div class="pointerlockfswarning-generic-text"> 1085 &fullscreenWarning.generic.label; 1086 </html:div> 1087 <html:button id="fullscreen-exit-button" 1088 onclick="FullScreen.exitDomFullScreen();"> 1089#ifdef XP_MACOSX 1090 &exitDOMFullscreenMac.button; 1091#else 1092 &exitDOMFullscreen.button; 1093#endif 1094 </html:button> 1095 </html:div> 1096 1097 <html:div id="pointerlock-warning" class="pointerlockfswarning" hidden="true"> 1098 <html:div class="pointerlockfswarning-domain-text"> 1099 &pointerlockWarning.beforeDomain.label; 1100 <html:span class="pointerlockfswarning-domain"/> 1101 &pointerlockWarning.afterDomain.label; 1102 </html:div> 1103 <html:div class="pointerlockfswarning-generic-text"> 1104 &pointerlockWarning.generic.label; 1105 </html:div> 1106 </html:div> 1107 1108 <vbox id="browser-bottombox" layer="true"> 1109 <notificationbox id="global-notificationbox" notificationside="bottom"/> 1110 </vbox> 1111 1112 <svg:svg height="0"> 1113#include tab-shape.inc.svg 1114 <svg:clipPath id="urlbar-back-button-clip-path"> 1115#ifndef XP_MACOSX 1116 <svg:path d="M -9,-4 l 0,1 a 15 15 0 0,1 0,30 l 0,1 l 10000,0 l 0,-32 l -10000,0 z" /> 1117#else 1118 <svg:path d="M -11,-5 a 16 16 0 0 1 0,34 l 10000,0 l 0,-34 l -10000,0 z"/> 1119#endif 1120 </svg:clipPath> 1121#ifdef XP_WIN 1122 <svg:clipPath id="urlbar-back-button-clip-path-win10"> 1123 <svg:path d="M -6,-2 l 0,1 a 15 15 0 0,1 0,30 l 0,1 l 10000,0 l 0,-32 l -10000,0 z" /> 1124 </svg:clipPath> 1125#endif 1126 </svg:svg> 1127 1128</vbox> 1129# <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck. 1130# Introducing the iframe dynamically, as needed, was found to be better than 1131# starting with an empty iframe here in browser.xul from a Ts standpoint. 1132</deck> 1133 1134</window> 1135