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<html id="main-window" 34 xmlns:html="http://www.w3.org/1999/xhtml" 35 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 36 xmlns="http://www.w3.org/1999/xhtml" 37#ifdef XP_MACOSX 38 data-l10n-id="browser-main-window-mac" 39#else 40 data-l10n-id="browser-main-window" 41#endif 42 data-l10n-args="{"content-title":"CONTENTTITLE"}" 43 data-l10n-attrs="data-content-title-default, data-content-title-private, data-title-default, data-title-private" 44#ifdef XP_WIN 45 chromemargin="0,2,2,2" 46#else 47 chromemargin="0,-1,-1,-1" 48#endif 49 tabsintitlebar="true" 50 windowtype="navigator:browser" 51 macanimationtype="document" 52 macnativefullscreen="true" 53 screenX="4" screenY="4" 54 sizemode="normal" 55 retargetdocumentfocus="urlbar-input" 56 scrolling="false" 57 persist="screenX screenY width height sizemode" 58 data-l10n-sync="true"> 59<head> 60 <link rel="localization" href="browser/search.ftl"/> 61 <link rel="localization" href="branding/brand.ftl"/> 62 <link rel="localization" href="browser/branding/sync-brand.ftl"/> 63 <link rel="localization" href="browser/branding/brandings.ftl"/> 64 <link rel="localization" href="toolkit/global/textActions.ftl"/> 65 <link rel="localization" href="browser/browser.ftl"/> 66 <link rel="localization" href="browser/browserContext.ftl"/> 67 <link rel="localization" href="browser/browserSets.ftl"/> 68 <link rel="localization" href="browser/menubar.ftl"/> 69 <link rel="localization" href="browser/protectionsPanel.ftl"/> 70 <link rel="localization" href="browser/appmenu.ftl"/> 71 <link rel="localization" href="browser/panelUI.ftl"/> 72 <link rel="localization" href="preview/interventions.ftl"/> 73 <link rel="localization" href="browser/sidebarMenu.ftl"/> 74 <link rel="localization" href="browser/allTabsMenu.ftl"/> 75 <link rel="localization" href="browser/places.ftl"/> 76 <link rel="localization" href="toolkit/printing/printUI.ftl"/> 77 <link rel="localization" href="browser/tabbrowser.ftl"/> 78 <link rel="localization" href="preview/firefoxSuggest.ftl"/> 79 <link rel="localization" href="browser/toolbarContextMenu.ftl"/> 80 <link rel="localization" href="browser/screenshots.ftl"/> 81 82 <title data-l10n-id="browser-main-window-title"></title> 83 84# All JS files which are needed by browser.xhtml and other top level windows to 85# support MacOS specific features *must* go into the global-scripts.inc file so 86# that they can be shared with macWindow.inc.xhtml. 87#include global-scripts.inc 88 89<script> 90 /* eslint-env mozilla/browser-window */ 91 Services.scriptloader.loadSubScript("chrome://global/content/contentAreaUtils.js", this); 92 Services.scriptloader.loadSubScript("chrome://browser/content/browser-captivePortal.js", this); 93 if (AppConstants.MOZ_DATA_REPORTING) { 94 Services.scriptloader.loadSubScript("chrome://browser/content/browser-data-submission-info-bar.js", this); 95 } 96 if (!AppConstants.MOZILLA_OFFICIAL) { 97 Services.scriptloader.loadSubScript("chrome://browser/content/browser-development-helpers.js", this); 98 } 99 Services.scriptloader.loadSubScript("chrome://browser/content/browser-pageActions.js", this); 100 Services.scriptloader.loadSubScript("chrome://browser/content/browser-sidebar.js", this); 101 Services.scriptloader.loadSubScript("chrome://browser/content/browser-tabsintitlebar.js", this); 102 Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser.js", this); 103 Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tab.js", this); 104 Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tabs.js", this); 105 Services.scriptloader.loadSubScript("chrome://browser/content/places/places-menupopup.js", this); 106 Services.scriptloader.loadSubScript("chrome://browser/content/search/autocomplete-popup.js", this); 107 Services.scriptloader.loadSubScript("chrome://browser/content/search/searchbar.js", this); 108 109 window.onload = gBrowserInit.onLoad.bind(gBrowserInit); 110 window.onunload = gBrowserInit.onUnload.bind(gBrowserInit); 111 window.onclose = WindowIsClosing; 112 113 window.addEventListener("MozBeforeInitialXULLayout", 114 gBrowserInit.onBeforeInitialXULLayout.bind(gBrowserInit), { once: true }); 115 116 // The listener of DOMContentLoaded must be set on window, rather than 117 // document, because the window can go away before the event is fired. 118 // In that case, we don't want to initialize anything, otherwise we 119 // may be leaking things because they will never be destroyed after. 120 window.addEventListener("DOMContentLoaded", 121 gBrowserInit.onDOMContentLoaded.bind(gBrowserInit), { once: true }); 122</script> 123</head> 124<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 125# All sets except for popupsets (commands, keys, and stringbundles) 126# *must* go into the browser-sets.inc file so that they can be shared with other 127# top level windows in macWindow.inc.xhtml. 128#include browser-sets.inc 129 130#include main-popupset.inc.xhtml 131 132#include appmenu-viewcache.inc.xhtml 133 134 <html:dialog id="window-modal-dialog" style="visibility: hidden; height: 0; width: 0"/> 135 <html:template id="window-modal-dialog-template"> 136 <vbox class="dialogTemplate dialogOverlay" align="center" topmost="true"> 137 <hbox class="dialogBox"> 138 <browser class="dialogFrame" 139 autoscroll="false" 140 selectmenulist="ContentSelectDropdown" 141 disablehistory="true"/> 142 </hbox> 143 </vbox> 144 </html:template> 145 146#include navigator-toolbox.inc.xhtml 147 148#include browser-box.inc.xhtml 149 150 <html:template id="customizationPanel"> 151 <box id="customization-container" flex="1" hidden="true"><![CDATA[ 152#include ../../components/customizableui/content/customizeMode.inc.xhtml 153 ]]></box> 154 </html:template> 155 156#include fullscreen-and-pointerlock.inc.xhtml 157 158 <vbox id="browser-bottombox" layer="true"> 159 <!-- gNotificationBox will be added here lazily. --> 160 </vbox> 161 162 <html:div id="a11y-announcement" role="alert"/> 163 164 <!-- Put it at the very end to make sure it's not covered by anything. --> 165 <html:div id="fullscr-toggler" hidden="hidden"/> 166</html:body> 167</html> 168