browser.xul 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993
  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. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  9. # Restore title to AppMenu windowed use
  10. <?xml-stylesheet href="chrome://browser/content/browser-title.css" type="text/css"?>
  11. <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
  12. #ifdef MOZ_DEVTOOLS
  13. <?xml-stylesheet href="chrome://devtools/skin/devtools-browser.css" type="text/css"?>
  14. #endif
  15. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
  16. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  17. <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
  18. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  19. # Padlock feature
  20. <?xul-overlay href="chrome://browser/content/padlock.xul"?>
  21. # Improve bookmark menu dragging
  22. <?xul-overlay href="chrome://browser/content/browser-menudragging.xul"?>
  23. # Automatic browser recovery
  24. <?xul-overlay href="chrome://browser/content/autorecovery.xul"?>
  25. # All DTD information is stored in a separate file so that it can be shared by
  26. # hiddenWindow.xul.
  27. #include browser-doctype.inc
  28. <window id="main-window"
  29. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  30. xmlns:svg="http://www.w3.org/2000/svg"
  31. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  32. onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();"
  33. title="&mainWindow.title;"
  34. title_normal="&mainWindow.title;"
  35. title_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
  36. titlemodifier="&mainWindow.titlemodifier;"
  37. titlemodifier_normal="&mainWindow.titlemodifier;"
  38. titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
  39. titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  40. #ifdef MOZ_PERSONAS
  41. lightweightthemes="true"
  42. lightweightthemesfooter="browser-bottombox"
  43. #endif
  44. windowtype="navigator:browser"
  45. macanimationtype="document"
  46. screenX="4" screenY="4"
  47. fullscreenbutton="true"
  48. retargetdocumentfocus="urlbar"
  49. persist="screenX screenY width height sizemode">
  50. # All JS files which are not content (only) dependent that browser.xul
  51. # wishes to include *must* go into the global-scripts.inc file
  52. # so that they can be shared by macBrowserOverlay.xul.
  53. #include global-scripts.inc
  54. #ifdef MOZ_DEVTOOLS
  55. #include global-devtools-theme-scripts.inc
  56. #endif
  57. <script type="application/javascript" src="chrome://browser/content/nsContextMenu.js"/>
  58. <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
  59. <script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
  60. # All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
  61. # browser-sets.inc file for sharing with hiddenWindow.xul.
  62. #define FULL_BROWSER_WINDOW
  63. #include browser-sets.inc
  64. #undef FULL_BROWSER_WINDOW
  65. <popupset id="mainPopupSet">
  66. <menupopup id="tabContextMenu"
  67. onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);"
  68. onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
  69. <menuitem id="context_reloadTab" label="&reloadTab.label;" accesskey="&reloadTab.accesskey;"
  70. oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
  71. <menuitem id="context_toggleMuteTab" oncommand="TabContextMenu.contextTab.toggleMuteAudio();"/>
  72. <menuseparator/>
  73. <menuitem id="context_pinTab" label="&pinTab.label;"
  74. accesskey="&pinTab.accesskey;"
  75. oncommand="gBrowser.pinTab(TabContextMenu.contextTab);"/>
  76. <menuitem id="context_unpinTab" label="&unpinTab.label;" hidden="true"
  77. accesskey="&unpinTab.accesskey;"
  78. oncommand="gBrowser.unpinTab(TabContextMenu.contextTab);"/>
  79. <menuitem id="context_openTabInWindow" label="&moveToNewWindow.label;"
  80. accesskey="&moveToNewWindow.accesskey;"
  81. tbattr="tabbrowser-multiple"
  82. oncommand="gBrowser.replaceTabWithWindow(TabContextMenu.contextTab);"/>
  83. <menuseparator/>
  84. <menuitem id="context_reloadAllTabs" label="&reloadAllTabs.label;" accesskey="&reloadAllTabs.accesskey;"
  85. tbattr="tabbrowser-multiple-visible"
  86. oncommand="gBrowser.reloadAllTabs();"/>
  87. <menuitem id="context_bookmarkAllTabs"
  88. label="&bookmarkAllTabs.label;"
  89. accesskey="&bookmarkAllTabs.accesskey;"
  90. command="Browser:BookmarkAllTabs"/>
  91. <menuitem id="context_closeTabsToTheEnd" label="&closeTabsToTheEnd.label;" accesskey="&closeTabsToTheEnd.accesskey;"
  92. oncommand="gBrowser.removeTabsToTheEndFrom(TabContextMenu.contextTab);"/>
  93. <menuitem id="context_closeOtherTabs" label="&closeOtherTabs.label;" accesskey="&closeOtherTabs.accesskey;"
  94. oncommand="gBrowser.removeAllTabsBut(TabContextMenu.contextTab);"/>
  95. <menuseparator/>
  96. <menuitem id="context_undoCloseTab"
  97. label="&undoCloseTab.label;"
  98. accesskey="&undoCloseTab.accesskey;"
  99. observes="History:UndoCloseTab"/>
  100. <menuitem id="context_closeTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;"
  101. oncommand="gBrowser.removeTab(TabContextMenu.contextTab, { animate: true });"/>
  102. </menupopup>
  103. <!-- bug 415444/582485: event.stopPropagation is here for the cloned version
  104. of this menupopup -->
  105. <menupopup id="backForwardMenu"
  106. onpopupshowing="return FillHistoryMenu(event.target);"
  107. oncommand="gotoHistoryIndex(event); event.stopPropagation();"
  108. onclick="checkForMiddleClick(this, event);"/>
  109. <tooltip id="aHTMLTooltip" page="true"/>
  110. <!-- for search and content formfill/pw manager -->
  111. <panel type="private-autocomplete" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
  112. <!-- for url bar autocomplete -->
  113. <panel type="private-autocomplete-richlistbox" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
  114. <!-- for date/time picker. consumeoutsideclicks is set to never, so that
  115. clicks on the anchored input box are never consumed. -->
  116. <panel id="DateTimePickerPanel"
  117. type="arrow"
  118. hidden="true"
  119. orient="vertical"
  120. noautofocus="true"
  121. norolluponanchor="true"
  122. consumeoutsideclicks="never"
  123. level="parent"
  124. tabspecific="true">
  125. <iframe id="dateTimePopupFrame"/>
  126. </panel>
  127. <!-- for invalid form error message -->
  128. <panel id="invalid-form-popup" type="arrow" orient="vertical" noautofocus="true" hidden="true" level="parent">
  129. <description/>
  130. </panel>
  131. <panel id="editBookmarkPanel"
  132. type="arrow"
  133. orient="vertical"
  134. ignorekeys="true"
  135. consumeoutsideclicks="true"
  136. hidden="true"
  137. onpopupshown="StarUI.panelShown(event);"
  138. aria-labelledby="editBookmarkPanelTitle">
  139. <row id="editBookmarkPanelHeader" align="center" hidden="true">
  140. <vbox align="center">
  141. <image id="editBookmarkPanelStarIcon"/>
  142. </vbox>
  143. <vbox>
  144. <label id="editBookmarkPanelTitle"/>
  145. <description id="editBookmarkPanelDescription"/>
  146. <hbox>
  147. <button id="editBookmarkPanelRemoveButton"
  148. class="editBookmarkPanelHeaderButton"
  149. oncommand="StarUI.removeBookmarkButtonCommand();"
  150. accesskey="&editBookmark.removeBookmark.accessKey;"/>
  151. </hbox>
  152. </vbox>
  153. </row>
  154. <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
  155. <hbox id="editBookmarkPanelBottomButtons" pack="end">
  156. #ifndef XP_UNIX
  157. <button id="editBookmarkPanelDoneButton"
  158. class="editBookmarkPanelBottomButton"
  159. label="&editBookmark.done.label;"
  160. default="true"
  161. oncommand="StarUI.panel.hidePopup();"/>
  162. <button id="editBookmarkPanelDeleteButton"
  163. class="editBookmarkPanelBottomButton"
  164. label="&editBookmark.cancel.label;"
  165. oncommand="StarUI.cancelButtonOnCommand();"/>
  166. #else
  167. <button id="editBookmarkPanelDeleteButton"
  168. class="editBookmarkPanelBottomButton"
  169. label="&editBookmark.cancel.label;"
  170. oncommand="StarUI.cancelButtonOnCommand();"/>
  171. <button id="editBookmarkPanelDoneButton"
  172. class="editBookmarkPanelBottomButton"
  173. label="&editBookmark.done.label;"
  174. default="true"
  175. oncommand="StarUI.panel.hidePopup();"/>
  176. #endif
  177. </hbox>
  178. </panel>
  179. <menupopup id="toolbar-context-menu"
  180. onpopupshowing="onViewToolbarsPopupShowing(event);">
  181. <menuseparator/>
  182. <menuitem command="cmd_ToggleTabsOnTop"
  183. type="checkbox"
  184. label="&viewTabsOnTop.label;"
  185. accesskey="&viewTabsOnTop.accesskey;"/>
  186. <menuitem command="cmd_CustomizeToolbars"
  187. label="&viewCustomizeToolbar.label;"
  188. accesskey="&viewCustomizeToolbar.accesskey;"/>
  189. </menupopup>
  190. <menupopup id="blockedPopupOptions"
  191. onpopupshowing="gPopupBlockerObserver.fillPopupList(event);"
  192. onpopuphiding="gPopupBlockerObserver.onPopupHiding(event);">
  193. <menuitem observes="blockedPopupAllowSite"/>
  194. <menuitem observes="blockedPopupEditSettings"/>
  195. <menuitem observes="blockedPopupDontShowMessage"/>
  196. <menuseparator observes="blockedPopupsSeparator"/>
  197. </menupopup>
  198. <menupopup id="autohide-context"
  199. onpopupshowing="FullScreen.getAutohide(this.firstChild);">
  200. <menuitem type="checkbox" label="&fullScreenAutohide.label;"
  201. accesskey="&fullScreenAutohide.accesskey;"
  202. oncommand="FullScreen.setAutohide();"/>
  203. <menuseparator/>
  204. <menuitem label="&fullScreenExit.label;"
  205. accesskey="&fullScreenExit.accesskey;"
  206. oncommand="BrowserFullScreen();"/>
  207. </menupopup>
  208. <menupopup id="contentAreaContextMenu" pagemenu="start"
  209. onpopupshowing="if (event.target != this)
  210. return true;
  211. gContextMenu = new nsContextMenu(this, event.shiftKey);
  212. if (gContextMenu.shouldDisplay)
  213. updateEditUIVisibility();
  214. return gContextMenu.shouldDisplay;"
  215. onpopuphiding="if (event.target != this)
  216. return;
  217. gContextMenu.hiding();
  218. gContextMenu = null;
  219. updateEditUIVisibility();">
  220. #include browser-context.inc
  221. </menupopup>
  222. <menupopup id="placesContext"/>
  223. <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
  224. <hbox>
  225. <button class="ctrlTab-preview" flex="1"/>
  226. <button class="ctrlTab-preview" flex="1"/>
  227. <button class="ctrlTab-preview" flex="1"/>
  228. <button class="ctrlTab-preview" flex="1"/>
  229. <button class="ctrlTab-preview" flex="1"/>
  230. <button class="ctrlTab-preview" flex="1"/>
  231. </hbox>
  232. <hbox pack="center">
  233. <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/>
  234. </hbox>
  235. </panel>
  236. <panel id="allTabs-panel" hidden="true" norestorefocus="true" ignorekeys="true"
  237. onmouseover="allTabs._updateTabCloseButton(event);">
  238. <hbox id="allTabs-meta" align="center">
  239. <spacer flex="1"/>
  240. <textbox id="allTabs-filter"
  241. tooltiptext="&allTabs.filter.emptyText;"
  242. type="search"
  243. oncommand="allTabs.filter();"/>
  244. <spacer flex="1"/>
  245. <toolbarbutton class="KUI-panel-closebutton"
  246. oncommand="allTabs.close()"
  247. tooltiptext="&closeCmd.label;"/>
  248. </hbox>
  249. <stack id="allTabs-stack">
  250. <vbox id="allTabs-container"><hbox/></vbox>
  251. <toolbarbutton id="allTabs-tab-close-button"
  252. class="tabs-closebutton close-icon"
  253. oncommand="allTabs.closeTab(event);"
  254. tooltiptext="&closeCmd.label;"
  255. style="visibility:hidden"/>
  256. </stack>
  257. </panel>
  258. <!-- Bookmarks and history tooltip -->
  259. <tooltip id="bhTooltip"/>
  260. <panel id="customizeToolbarSheetPopup"
  261. noautohide="true"
  262. sheetstyle="&dialog.dimensions;"/>
  263. <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
  264. <tooltip id="back-button-tooltip">
  265. <label class="tooltip-label" value="&backButton.tooltip;"/>
  266. <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/>
  267. </tooltip>
  268. <tooltip id="forward-button-tooltip">
  269. <label class="tooltip-label" value="&forwardButton.tooltip;"/>
  270. <label class="tooltip-label" value="&backForwardButtonMenu.tooltip;"/>
  271. </tooltip>
  272. #include popup-notifications.inc
  273. </popupset>
  274. #ifdef MOZ_CAN_DRAW_IN_TITLEBAR
  275. <vbox id="titlebar">
  276. <hbox id="titlebar-content">
  277. #ifdef MENUBAR_CAN_AUTOHIDE
  278. <hbox id="appmenu-button-container">
  279. <button id="appmenu-button"
  280. type="menu"
  281. label="&brandShortName;"
  282. tooltiptext="&appMenuButton.tooltip;"
  283. style="-moz-user-focus: ignore;">
  284. #include browser-appmenu.inc
  285. </button>
  286. </hbox>
  287. #endif
  288. <spacer id="titlebar-spacer" flex="1"/>
  289. <hbox id="titlebar-buttonbox-container" align="start">
  290. <hbox id="titlebar-buttonbox">
  291. <toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/>
  292. <toolbarbutton class="titlebar-button" id="titlebar-max" oncommand="onTitlebarMaxClick();"/>
  293. <toolbarbutton class="titlebar-button" id="titlebar-close" command="cmd_closeWindow"/>
  294. </hbox>
  295. </hbox>
  296. </hbox>
  297. </vbox>
  298. #endif
  299. <deck flex="1" id="tab-view-deck">
  300. <vbox flex="1" id="browser-panel">
  301. <toolbox id="navigator-toolbox"
  302. defaultmode="icons" mode="icons"
  303. iconsize="large">
  304. <!-- Menu -->
  305. <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
  306. defaultset="menubar-items"
  307. mode="icons" iconsize="small" defaulticonsize="small"
  308. lockiconsize="true"
  309. #ifdef MENUBAR_CAN_AUTOHIDE
  310. toolbarname="&menubarCmd.label;"
  311. accesskey="&menubarCmd.accesskey;"
  312. #endif
  313. context="toolbar-context-menu">
  314. <toolbaritem id="menubar-items" align="center">
  315. # The entire main menubar is placed into browser-menubar.inc, so that it can be shared by
  316. # hiddenWindow.xul.
  317. #include browser-menubar.inc
  318. </toolbaritem>
  319. #ifdef MOZ_CAN_DRAW_IN_TITLEBAR
  320. <hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/>
  321. <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"/>
  322. #endif
  323. </toolbar>
  324. <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
  325. toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
  326. fullscreentoolbar="true" mode="icons" customizable="true"
  327. iconsize="large"
  328. defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,bookmarks-menu-button,history-menu-button,downloads-button,window-controls"
  329. context="toolbar-context-menu">
  330. <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional"
  331. context="backForwardMenu" removable="true"
  332. forwarddisabled="true"
  333. title="&backForwardItem.title;">
  334. <toolbarbutton id="back-button" class="toolbarbutton-1"
  335. label="&backCmd.label;"
  336. command="Browser:BackOrBackDuplicate"
  337. onclick="checkForMiddleClick(this, event);"
  338. tooltip="back-button-tooltip"/>
  339. <toolbarbutton id="forward-button" class="toolbarbutton-1"
  340. label="&forwardCmd.label;"
  341. command="Browser:ForwardOrForwardDuplicate"
  342. onclick="checkForMiddleClick(this, event);"
  343. tooltip="forward-button-tooltip"/>
  344. <dummyobservertarget hidden="true"
  345. onbroadcast="if (this.getAttribute('disabled') == 'true')
  346. this.parentNode.setAttribute('forwarddisabled', 'true');
  347. else
  348. this.parentNode.removeAttribute('forwarddisabled');">
  349. <observes element="Browser:ForwardOrForwardDuplicate" attribute="disabled"/>
  350. </dummyobservertarget>
  351. </toolbaritem>
  352. <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  353. label="&reloadCmd.label;" removable="true"
  354. command="Browser:ReloadOrDuplicate"
  355. onclick="checkForMiddleClick(this, event);"
  356. tooltiptext="&reloadButton.tooltip;"/>
  357. <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  358. label="&stopCmd.label;" removable="true"
  359. command="Browser:Stop"
  360. tooltiptext="&stopButton.tooltip;"/>
  361. <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  362. persist="class" removable="true"
  363. label="&homeButton.label;"
  364. ondragover="homeButtonObserver.onDragOver(event)"
  365. ondragenter="homeButtonObserver.onDragOver(event)"
  366. ondrop="homeButtonObserver.onDrop(event)"
  367. ondragexit="homeButtonObserver.onDragExit(event)"
  368. onclick="BrowserGoHome(event);"
  369. aboutHomeOverrideTooltip="&abouthome.pageTitle;"/>
  370. <toolbaritem id="urlbar-container" align="center" flex="400" persist="width" combined="true"
  371. title="&locationItem.title;" class="chromeclass-location" removable="true">
  372. <textbox id="urlbar" flex="1"
  373. placeholder=""
  374. type="private-autocomplete"
  375. autocompletesearch="urlinline history"
  376. autocompletesearchparam="enable-actions"
  377. autocompletepopup="PopupAutoCompleteRichResult"
  378. completeselectedindex="true"
  379. tabscrolling="true"
  380. showcommentcolumn="true"
  381. showimagecolumn="true"
  382. enablehistory="true"
  383. maxrows="6"
  384. newlines="stripsurroundingwhitespace"
  385. oninput="gBrowser.userTypedValue = this.value;"
  386. ontextentered="this.handleCommand(param);"
  387. ontextreverted="return this.handleRevert();"
  388. pageproxystate="invalid"
  389. onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
  390. onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);">
  391. <box id="notification-popup-box" hidden="true" align="center">
  392. <image id="default-notification-icon" class="notification-anchor-icon" role="button"/>
  393. <image id="geo-notification-icon" class="notification-anchor-icon" role="button"/>
  394. <image id="addons-notification-icon" class="notification-anchor-icon" role="button"/>
  395. <image id="indexedDB-notification-icon" class="notification-anchor-icon" role="button"/>
  396. <image id="password-notification-icon" class="notification-anchor-icon" role="button"/>
  397. <image id="plugins-notification-icon" class="notification-anchor-icon" role="button"/>
  398. <image id="web-notifications-notification-icon" class="notification-anchor-icon" role="button"/>
  399. <image id="alert-plugins-notification-icon" class="notification-anchor-icon" role="button"/>
  400. <image id="blocked-plugins-notification-icon" class="notification-anchor-icon" role="button"/>
  401. <image id="mixed-content-blocked-notification-icon" class="notification-anchor-icon" role="button"/>
  402. #ifdef MOZ_WEBRTC
  403. <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon" role="button"/>
  404. <image id="webRTC-sharingDevices-notification-icon" class="notification-anchor-icon" role="button"/>
  405. #endif
  406. <image id="pointerLock-notification-icon" class="notification-anchor-icon" role="button"/>
  407. <image id="servicesInstall-notification-icon" class="notification-anchor-icon" role="button"/>
  408. </box>
  409. <!-- Use onclick instead of normal popup= syntax since the popup
  410. code fires onmousedown, and hence eats our favicon drag events.
  411. We only add the identity-box button to the tab order when the location bar
  412. has focus, otherwise pressing F6 focuses it instead of the location bar -->
  413. <box id="identity-box" role="button"
  414. align="center"
  415. onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
  416. onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
  417. ondragstart="gIdentityHandler.onDragStart(event);">
  418. <image id="page-proxy-favicon"
  419. onclick="PageProxyClickHandler(event);"
  420. pageproxystate="invalid"/>
  421. <hbox id="identity-icon-labels">
  422. <label id="identity-icon-label" class="plain" flex="1"/>
  423. <label id="identity-icon-country-label" class="plain"/>
  424. </hbox>
  425. </box>
  426. <box id="urlbar-display-box" align="center">
  427. <label id="urlbar-display" value="&urlbar.switchToTab.label;"/>
  428. </box>
  429. <hbox id="urlbar-icons">
  430. <image id="page-report-button"
  431. class="urlbar-icon"
  432. hidden="true"
  433. tooltiptext="&pageReportIcon.tooltip;"
  434. onclick="gPopupBlockerObserver.onReportButtonClick(event);"/>
  435. <button type="menu"
  436. style="-moz-user-focus: none"
  437. class="plain urlbar-icon"
  438. id="ub-feed-button"
  439. collapsed="true"
  440. tooltiptext="&feedButton.tooltip;"
  441. onclick="return FeedHandler.onFeedButtonPMClick(event);">
  442. <menupopup position="after_end"
  443. id="ub-feed-menu"
  444. onpopupshowing="return FeedHandler.buildFeedList(this);"
  445. oncommand="return FeedHandler.subscribeToFeed(null, event);"
  446. onclick="checkForMiddleClick(this, event);"/>
  447. </button>
  448. <image id="star-button"
  449. class="urlbar-icon"
  450. onclick="BookmarkingUI.onCommand(event);"/>
  451. <image id="go-button"
  452. class="urlbar-icon"
  453. tooltiptext="&goEndCap.tooltip;"
  454. onclick="gURLBar.handleCommand(event);"/>
  455. </hbox>
  456. <toolbarbutton id="urlbar-go-button"
  457. class="chromeclass-toolbar-additional"
  458. onclick="gURLBar.handleCommand(event);"
  459. tooltiptext="&goEndCap.tooltip;"/>
  460. <toolbarbutton id="urlbar-reload-button"
  461. class="chromeclass-toolbar-additional"
  462. command="Browser:ReloadOrDuplicate"
  463. onclick="checkForMiddleClick(this, event);"
  464. tooltiptext="&reloadButton.tooltip;"/>
  465. <toolbarbutton id="urlbar-stop-button"
  466. class="chromeclass-toolbar-additional"
  467. command="Browser:Stop"
  468. tooltiptext="&stopButton.tooltip;"/>
  469. </textbox>
  470. </toolbaritem>
  471. <toolbaritem id="search-container" title="&searchItem.title;"
  472. align="center" class="chromeclass-toolbar-additional"
  473. flex="100" persist="width" removable="true">
  474. <searchbar id="searchbar" flex="1"/>
  475. </toolbaritem>
  476. #ifdef MOZ_WEBRTC
  477. <toolbarbutton id="webrtc-status-button"
  478. class="toolbarbutton-1 chromeclass-toolbar-additional"
  479. type="menu"
  480. hidden="true"
  481. orient="horizontal"
  482. label="&webrtcIndicatorButton.label;"
  483. tooltiptext="&webrtcIndicatorButton.tooltip;">
  484. <menupopup onpopupshowing="WebrtcIndicator.fillPopup(this);"
  485. onpopuphiding="WebrtcIndicator.clearPopup(this);"
  486. oncommand="WebrtcIndicator.menuCommand(event.target);"/>
  487. </toolbarbutton>
  488. #endif
  489. <toolbarbutton id="bookmarks-menu-button"
  490. class="toolbarbutton-1 chromeclass-toolbar-additional"
  491. persist="class"
  492. removable="true"
  493. type="menu"
  494. label="&bookmarksMenuButton.label;"
  495. tooltiptext="&bookmarksMenuButton.tooltip;"
  496. onclick="if (event.button == 1)
  497. toggleSidebar('viewBookmarksSidebar');"
  498. ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
  499. ondragover="PlacesMenuDNDHandler.onDragOver(event);"
  500. ondragleave="PlacesMenuDNDHandler.onDragLeave(event);"
  501. ondrop="PlacesMenuDNDHandler.onDrop(event);">
  502. <menupopup id="BMB_bookmarksPopup"
  503. placespopup="true"
  504. context="placesContext"
  505. openInTabs="children"
  506. oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);"
  507. onclick="event.stopPropagation();
  508. BookmarksEventHandler.onClick(event, this.parentNode._placesView);"
  509. onpopupshowing="BookmarkingUI.onPopupShowing(event);
  510. if (!this.parentNode._placesView)
  511. new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');"
  512. tooltip="bhTooltip" popupsinherittooltip="true">
  513. <menuitem id="BMB_viewBookmarksToolbar"
  514. placesanonid="view-toolbar"
  515. toolbarId="PersonalToolbar"
  516. type="checkbox"
  517. oncommand="onViewToolbarCommand(event)"
  518. label="&viewBookmarksToolbar.label;"/>
  519. <menuseparator/>
  520. <menuitem id="BMB_bookmarksShowAll"
  521. class="menuitem-iconic"
  522. label="&organizeBookmarks.label;"
  523. command="Browser:ShowAllBookmarks"
  524. key="manBookmarkKb"/>
  525. <menuseparator/>
  526. <menuitem id="BMB_bookmarkThisPage"
  527. class="menuitem-iconic"
  528. label="&bookmarkThisPageCmd.label;"
  529. command="Browser:AddBookmarkAs"
  530. key="addBookmarkAsKb"/>
  531. <menuitem id="BMB_subscribeToPageMenuitem"
  532. class="menuitem-iconic"
  533. label="&subscribeToPageMenuitem.label;"
  534. oncommand="return FeedHandler.subscribeToFeed(null, event);"
  535. onclick="checkForMiddleClick(this, event);"
  536. observes="singleFeedMenuitemState"/>
  537. <menu id="BMB_subscribeToPageMenupopup"
  538. class="menu-iconic"
  539. label="&subscribeToPageMenupopup.label;"
  540. observes="multipleFeedsMenuState">
  541. <menupopup id="BMB_subscribeToPageSubmenuMenupopup"
  542. onpopupshowing="return FeedHandler.buildFeedList(event.target);"
  543. oncommand="return FeedHandler.subscribeToFeed(null, event);"
  544. onclick="checkForMiddleClick(this, event);"/>
  545. </menu>
  546. <menuseparator/>
  547. <menu id="BMB_bookmarksToolbar"
  548. placesanonid="toolbar-autohide"
  549. class="menu-iconic bookmark-item"
  550. label="&personalbarCmd.label;"
  551. container="true">
  552. <menupopup id="BMB_bookmarksToolbarPopup"
  553. placespopup="true"
  554. context="placesContext"
  555. onpopupshowing="if (!this.parentNode._placesView)
  556. new PlacesMenu(event, 'place:folder=TOOLBAR');"/>
  557. </menu>
  558. <menuseparator/>
  559. <!-- Bookmarks menu items -->
  560. <menuseparator builder="end"
  561. class="hide-if-empty-places-result"/>
  562. <menuitem id="BMB_unsortedBookmarks"
  563. class="menuitem-iconic"
  564. label="&bookmarksMenuButton.unsorted.label;"
  565. oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"/>
  566. </menupopup>
  567. </toolbarbutton>
  568. <toolbarbutton id="history-menu-button"
  569. class="toolbarbutton-1 chromeclass-toolbar-additional"
  570. persist="class"
  571. removable="true"
  572. type="menu"
  573. label="&historyButton.label;"
  574. tooltiptext="&historyButton.tooltip;"
  575. onclick="if (event.button == 1)
  576. toggleSidebar('viewHistorySidebar');">
  577. <menupopup id="HMB_historyPopup"
  578. placespopup="true"
  579. context="placesContext"
  580. oncommand="this.parentNode._placesView._onCommand(event);"
  581. onclick="event.stopPropagation();
  582. checkForMiddleClick(this, event);"
  583. onpopupshowing="if (!this.parentNode._placesView)
  584. new HistoryMenu(event);"
  585. tooltip="bhTooltip"
  586. popupsinherittooltip="true">
  587. <menuitem id="HMB_showAllHistory"
  588. label="&showAllHistoryCmd2.label;"
  589. class="menuitem-iconic"
  590. key="showAllHistoryKb"
  591. command="Browser:ShowAllHistory"/>
  592. <menuitem id="HMB_sanitizeItem"
  593. class="menuitem-iconic"
  594. label="&clearRecentHistory.label;"
  595. key="key_sanitize"
  596. command="Tools:Sanitize"/>
  597. <menuseparator id="HMB_sanitizeSeparator"/>
  598. #ifdef MOZ_SERVICES_SYNC
  599. <menuitem id="HMB_sync-tabs-menuitem"
  600. class="syncTabsMenuItem"
  601. label="&syncTabsMenu2.label;"
  602. oncommand="BrowserOpenSyncTabs();"
  603. disabled="true"/>
  604. #endif
  605. <menuitem id="HMB_historyRestoreLastSession"
  606. label="&historyRestoreLastSession.label;"
  607. command="Browser:RestoreLastSession"/>
  608. <menu id="HMB_historyUndoMenu"
  609. class="recentlyClosedTabsMenu"
  610. label="&historyUndoMenu.label;"
  611. disabled="true">
  612. <menupopup id="HMB_historyUndoPopup"
  613. placespopup="true"
  614. onpopupshowing="document.getElementById('history-menu-button')._placesView.populateUndoSubmenu();"/>
  615. </menu>
  616. <menu id="HMB_historyUndoWindowMenu"
  617. class="recentlyClosedWindowsMenu"
  618. label="&historyUndoWindowMenu.label;"
  619. disabled="true">
  620. <menupopup id="HMB_historyUndoWindowPopup"
  621. placespopup="true"
  622. onpopupshowing="document.getElementById('history-menu-button')._placesView.populateUndoWindowSubmenu();"/>
  623. </menu>
  624. <menuseparator id="HMB_startHistorySeparator"
  625. class="hide-if-empty-places-result"/>
  626. <!-- History menu items -->
  627. </menupopup>
  628. </toolbarbutton>
  629. <hbox id="window-controls" hidden="true" pack="end">
  630. <toolbarbutton id="minimize-button"
  631. tooltiptext="&fullScreenMinimize.tooltip;"
  632. oncommand="window.minimize();"/>
  633. <toolbarbutton id="restore-button"
  634. tooltiptext="&fullScreenRestore.tooltip;"
  635. oncommand="BrowserFullScreen();"/>
  636. <toolbarbutton id="close-button"
  637. tooltiptext="&fullScreenClose.tooltip;"
  638. oncommand="BrowserTryToCloseWindow();"/>
  639. </hbox>
  640. </toolbar>
  641. <toolbarset id="customToolbars" context="toolbar-context-menu"/>
  642. <toolbar id="PersonalToolbar"
  643. mode="icons" iconsize="small" defaulticonsize="small"
  644. lockiconsize="true"
  645. class="chromeclass-directories"
  646. context="toolbar-context-menu"
  647. defaultset="personal-bookmarks"
  648. toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
  649. collapsed="false"
  650. customizable="true">
  651. <toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksItem.title;"
  652. removable="true">
  653. <hbox flex="1"
  654. id="PlacesToolbar"
  655. context="placesContext"
  656. onclick="BookmarksEventHandler.onClick(event, this._placesView);"
  657. oncommand="BookmarksEventHandler.onCommand(event, this._placesView);"
  658. tooltip="bhTooltip"
  659. popupsinherittooltip="true">
  660. <toolbarbutton class="bookmark-item bookmarks-toolbar-customize"
  661. mousethrough="never"
  662. label="&bookmarksToolbarItem.label;"/>
  663. <hbox flex="1">
  664. <hbox align="center">
  665. <image id="PlacesToolbarDropIndicator"
  666. mousethrough="always"
  667. collapsed="true"/>
  668. </hbox>
  669. <scrollbox orient="horizontal"
  670. id="PlacesToolbarItems"
  671. flex="1"/>
  672. <toolbarbutton type="menu"
  673. id="PlacesChevron"
  674. class="chevron"
  675. mousethrough="never"
  676. collapsed="true"
  677. tooltiptext="&bookmarksToolbarChevron.tooltip;"
  678. onpopupshowing="document.getElementById('PlacesToolbar')
  679. ._placesView._onChevronPopupShowing(event);">
  680. <menupopup id="PlacesChevronPopup"
  681. placespopup="true"
  682. tooltip="bhTooltip" popupsinherittooltip="true"
  683. context="placesContext"/>
  684. </toolbarbutton>
  685. </hbox>
  686. </hbox>
  687. </toolbaritem>
  688. </toolbar>
  689. #ifdef MENUBAR_CAN_AUTOHIDE
  690. #ifndef MOZ_CAN_DRAW_IN_TITLEBAR
  691. #define APPMENU_ON_TABBAR
  692. #endif
  693. #endif
  694. <toolbar id="TabsToolbar"
  695. class="toolbar-primary"
  696. fullscreentoolbar="true"
  697. customizable="true"
  698. mode="icons" lockmode="true"
  699. iconsize="small" defaulticonsize="small" lockiconsize="true"
  700. aria-label="&tabsToolbar.label;"
  701. context="toolbar-context-menu"
  702. #ifdef APPMENU_ON_TABBAR
  703. defaultset="appmenu-toolbar-button,tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton"
  704. #else
  705. defaultset="tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton"
  706. #endif
  707. collapsed="true">
  708. #ifdef APPMENU_ON_TABBAR
  709. <toolbarbutton id="appmenu-toolbar-button"
  710. class="chromeclass-toolbar-additional"
  711. type="menu"
  712. label="&brandShortName;"
  713. tooltiptext="&appMenuButton.tooltip;">
  714. #include browser-appmenu.inc
  715. </toolbarbutton>
  716. #endif
  717. <tabs id="tabbrowser-tabs"
  718. class="tabbrowser-tabs"
  719. tabbrowser="content"
  720. flex="1"
  721. setfocus="false"
  722. tooltip="tabbrowser-tab-tooltip">
  723. <tab class="tabbrowser-tab" selected="true" fadein="true"/>
  724. </tabs>
  725. <toolbarbutton id="new-tab-button"
  726. class="toolbarbutton-1 chromeclass-toolbar-additional"
  727. label="&tabCmd.label;"
  728. command="cmd_newNavigatorTab"
  729. onclick="checkForMiddleClick(this, event);"
  730. tooltiptext="&newTabButton.tooltip;"
  731. ondrop="newTabButtonObserver.onDrop(event)"
  732. ondragover="newTabButtonObserver.onDragOver(event)"
  733. ondragenter="newTabButtonObserver.onDragOver(event)"
  734. ondragexit="newTabButtonObserver.onDragExit(event)"
  735. removable="true"/>
  736. <toolbarbutton id="alltabs-button"
  737. class="toolbarbutton-1 chromeclass-toolbar-additional tabs-alltabs-button"
  738. type="menu"
  739. label="&listAllTabs.label;"
  740. tooltiptext="&listAllTabs.label;"
  741. removable="true">
  742. <menupopup id="alltabs-popup" position="after_end"/>
  743. </toolbarbutton>
  744. <toolbarbutton id="tabs-closebutton"
  745. class="close-button tabs-closebutton close-icon"
  746. command="cmd_close"
  747. label="&closeTab.label;"
  748. tooltiptext="&closeTab.label;"/>
  749. #ifdef MOZ_CAN_DRAW_IN_TITLEBAR
  750. <hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/>
  751. <hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"/>
  752. #endif
  753. </toolbar>
  754. <toolbarpalette id="BrowserToolbarPalette">
  755. # Update primaryToolbarButtons in browser/themes/shared/browser.inc when adding
  756. # or removing default items with the toolbarbutton-1 class.
  757. <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  758. label="&printButton.label;" command="cmd_print"
  759. tooltiptext="&printButton.tooltip;"/>
  760. <!-- This is a placeholder for the Downloads Indicator. It is visible
  761. during the customization of the toolbar, in the palette, and before
  762. the Downloads Indicator overlay is loaded. -->
  763. <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  764. oncommand="DownloadsIndicatorView.onCommand(event);"
  765. ondrop="DownloadsIndicatorView.onDrop(event);"
  766. ondragover="DownloadsIndicatorView.onDragOver(event);"
  767. ondragenter="DownloadsIndicatorView.onDragOver(event);"
  768. label="&downloads.label;"
  769. tooltiptext="&downloads.tooltip;"/>
  770. <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  771. observes="viewHistorySidebar" label="&historyButton.label;"
  772. tooltiptext="&historyButton.tooltip;"/>
  773. <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  774. observes="viewBookmarksSidebar" label="&bookmarksButton.label;"
  775. tooltiptext="&bookmarksButton.tooltip;"
  776. ondrop="bookmarksButtonObserver.onDrop(event)"
  777. ondragover="bookmarksButtonObserver.onDragOver(event)"
  778. ondragenter="bookmarksButtonObserver.onDragOver(event)"
  779. ondragexit="bookmarksButtonObserver.onDragExit(event)"/>
  780. <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  781. label="&newNavigatorCmd.label;"
  782. command="key_newNavigator"
  783. tooltiptext="&newWindowButton.tooltip;"
  784. ondrop="newWindowButtonObserver.onDrop(event)"
  785. ondragover="newWindowButtonObserver.onDragOver(event)"
  786. ondragenter="newWindowButtonObserver.onDragOver(event)"
  787. ondragexit="newWindowButtonObserver.onDragExit(event)"/>
  788. <toolbarbutton id="fullscreen-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  789. observes="View:FullScreen"
  790. type="checkbox"
  791. label="&fullScreenCmd.label;"
  792. tooltiptext="&fullScreenButton.tooltip;"/>
  793. <toolbaritem id="zoom-controls" class="chromeclass-toolbar-additional"
  794. title="&zoomControls.label;">
  795. <toolbarbutton id="zoom-out-button" class="toolbarbutton-1"
  796. label="&fullZoomReduceCmd.label;"
  797. command="cmd_fullZoomReduce"
  798. tooltiptext="&zoomOutButton.tooltip;"/>
  799. <toolbarbutton id="zoom-in-button" class="toolbarbutton-1"
  800. label="&fullZoomEnlargeCmd.label;"
  801. command="cmd_fullZoomEnlarge"
  802. tooltiptext="&zoomInButton.tooltip;"/>
  803. </toolbaritem>
  804. <toolbarbutton id="feed-button"
  805. type="menu"
  806. class="toolbarbutton-1 chromeclass-toolbar-additional"
  807. disabled="true"
  808. label="&feedButton.label;"
  809. tooltiptext="&feedButton.tooltip;"
  810. onclick="return FeedHandler.onFeedButtonClick(event);">
  811. <menupopup position="after_end"
  812. id="feed-menu"
  813. onpopupshowing="return FeedHandler.buildFeedList(this);"
  814. oncommand="return FeedHandler.subscribeToFeed(null, event);"
  815. onclick="checkForMiddleClick(this, event);"/>
  816. </toolbarbutton>
  817. <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  818. label="&cutCmd.label;"
  819. command="cmd_cut"
  820. tooltiptext="&cutButton.tooltip;"/>
  821. <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  822. label="&copyCmd.label;"
  823. command="cmd_copy"
  824. tooltiptext="&copyButton.tooltip;"/>
  825. <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  826. label="&pasteCmd.label;"
  827. command="cmd_paste"
  828. tooltiptext="&pasteButton.tooltip;"/>
  829. #ifdef MOZ_SERVICES_SYNC
  830. <toolbarbutton id="sync-button"
  831. class="toolbarbutton-1 chromeclass-toolbar-additional"
  832. label="&syncToolbarButton.label;"
  833. oncommand="gSyncUI.handleToolbarButton()"/>
  834. #endif
  835. <toolbaritem id="navigator-throbber" title="&throbberItem.title;" align="center" pack="center"
  836. mousethrough="always">
  837. <image/>
  838. </toolbaritem>
  839. </toolbarpalette>
  840. </toolbox>
  841. <hbox id="fullscr-toggler" hidden="true"/>
  842. <hbox flex="1" id="browser">
  843. <vbox id="browser-border-start" hidden="true" layer="true"/>
  844. <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
  845. <sidebarheader id="sidebar-header" align="center">
  846. <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
  847. <image id="sidebar-throbber"/>
  848. <toolbarbutton class="tabs-closebutton close-icon" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
  849. </sidebarheader>
  850. <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
  851. style="min-width: 14em; width: 18em; max-width: 36em;"/>
  852. </vbox>
  853. <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" hidden="true"/>
  854. <vbox id="appcontent" flex="1">
  855. <tabbrowser id="content" disablehistory="true"
  856. flex="1" contenttooltip="aHTMLTooltip"
  857. tabcontainer="tabbrowser-tabs"
  858. contentcontextmenu="contentAreaContextMenu"
  859. autocompletepopup="PopupAutoComplete"
  860. datetimepicker="DateTimePickerPanel"
  861. authdosprotected="true"/>
  862. <chatbar id="pinnedchats" layer="true" mousethrough="always" hidden="true"/>
  863. <statuspanel id="statusbar-display" inactive="true"/>
  864. </vbox>
  865. <vbox id="browser-border-end" hidden="true" layer="true"/>
  866. </hbox>
  867. <hbox id="full-screen-warning-container" hidden="true" fadeout="true">
  868. <hbox style="width: 100%;" pack="center"> <!-- Inner hbox needed due to bug 579776. -->
  869. <vbox id="full-screen-warning-message" align="center">
  870. <description id="full-screen-domain-text"/>
  871. <description class="full-screen-description" value="&fullscreenExitHint.value;"/>
  872. </vbox>
  873. </hbox>
  874. </hbox>
  875. <vbox id="browser-bottombox" layer="true">
  876. <notificationbox id="global-notificationbox"/>
  877. <toolbar id="addon-bar"
  878. toolbarname="&statusBar.label;" accesskey="&statusBar.accesskey;"
  879. collapsed="true"
  880. class="toolbar-primary chromeclass-toolbar"
  881. context="toolbar-context-menu" toolboxid="navigator-toolbox"
  882. mode="icons" iconsize="small" defaulticonsize="small"
  883. lockiconsize="true"
  884. defaultset="addonbar-closebutton,spring,status-bar"
  885. customizable="true"
  886. key="key_toggleAddonBar">
  887. <toolbarbutton id="addonbar-closebutton"
  888. class="close-icon"
  889. tooltiptext="&addonBarCloseButton.tooltip;"
  890. oncommand="setToolbarVisibility(this.parentNode, false);"/>
  891. <statusbar id="status-bar" ordinal="1000"/>
  892. </toolbar>
  893. </vbox>
  894. #ifndef XP_UNIX
  895. <svg:svg height="0">
  896. <svg:clipPath id="windows-keyhole-forward-clip-path" clipPathUnits="objectBoundingBox">
  897. <svg:path d="M 0,0 C 0.16,0.11 0.28,0.29 0.28,0.5 0.28,0.71 0.16,0.89 0,1 L 1,1 1,0 0,0 z"/>
  898. </svg:clipPath>
  899. <svg:clipPath id="windows-urlbar-back-button-clip-path" clipPathUnits="userSpaceOnUse">
  900. <svg:path d="M 0,0 0,7.8 C 2.5,11 4,14 4,18 4,22 2.5,25 0,28 l 0,22 10000,0 0,-50 L 0,0 z"/>
  901. </svg:clipPath>
  902. </svg:svg>
  903. #endif
  904. </vbox>
  905. # <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck.
  906. # Introducing the iframe dynamically, as needed, was found to be better than
  907. # starting with an empty iframe here in browser.xul from a Ts standpoint.
  908. </deck>
  909. </window>