Bug 1864861: part 2) Remove `aIsPreload` argument from `FontLoaderUtils::BuildChannel...
[gecko.git] / browser / base / content / browser.xhtml
blob2e8f74d89024dd530a2c7e0cb505d87db8f60841
1 #filter substitution
2 <?xml version="1.0"?>
3 # -*- Mode: HTML -*-
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/.
9 <html id="main-window"
10 xmlns:html="http://www.w3.org/1999/xhtml"
11 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
12 xmlns="http://www.w3.org/1999/xhtml"
13 #ifdef XP_MACOSX
14 data-l10n-id="browser-main-window-mac-window-titles"
15 #else
16 data-l10n-id="browser-main-window-window-titles"
17 #endif
18 data-l10n-args="{&quot;content-title&quot;:&quot;CONTENTTITLE&quot;}"
19 data-l10n-attrs="data-content-title-default, data-content-title-private, data-title-default, data-title-private"
20 #ifdef XP_WIN
21 chromemargin="0,2,2,2"
22 #else
23 chromemargin="0,-1,-1,-1"
24 #endif
25 tabsintitlebar="true"
26 windowtype="navigator:browser"
27 macanimationtype="document"
28 macnativefullscreen="true"
29 screenX="4" screenY="4"
30 sizemode="normal"
31 retargetdocumentfocus="urlbar-input"
32 scrolling="false"
33 persist="screenX screenY width height sizemode"
34 data-l10n-sync="true">
35 <head>
36 <!-- The "global.css" stylesheet is imported first to allow other stylesheets to
37 override rules using selectors with the same specificity. This applies to
38 both "content" and "skin" packages, which bug 1385444 will unify later. -->
39 <link rel="stylesheet" href="chrome://global/skin/global.css" />
41 <link rel="stylesheet" href="chrome://global/content/tabprompts.css" />
42 <link rel="stylesheet" href="chrome://global/skin/tabprompts.css" />
44 <link rel="stylesheet" href="chrome://browser/content/browser.css" />
45 <link rel="stylesheet" href="chrome://browser/content/tabbrowser.css" />
46 <link
47 rel="stylesheet"
48 href="chrome://browser/content/downloads/downloads.css"
50 <link rel="stylesheet" href="chrome://browser/content/places/places.css" />
51 <link
52 rel="stylesheet"
53 href="chrome://browser/content/usercontext/usercontext.css"
55 <link rel="stylesheet" href="chrome://browser/skin/" />
57 <link rel="stylesheet" href="chrome://browser/skin/controlcenter/panel.css" />
58 <link
59 rel="stylesheet"
60 href="chrome://browser/skin/customizableui/panelUI.css"
62 <link rel="stylesheet" href="chrome://browser/skin/downloads/downloads.css" />
63 <link rel="stylesheet" href="chrome://browser/skin/searchbar.css" />
64 <link rel="stylesheet" href="chrome://browser/skin/translations/panel.css" />
65 <link rel="stylesheet" href="chrome://browser/skin/places/tree-icons.css" />
66 <link rel="stylesheet" href="chrome://browser/skin/places/editBookmark.css" />
68 <link rel="localization" href="branding/brand.ftl"/>
69 <link rel="localization" href="browser/allTabsMenu.ftl"/>
70 <link rel="localization" href="browser/appmenu.ftl"/>
71 <link rel="localization" href="browser/browser.ftl"/>
72 <link rel="localization" href="browser/browserContext.ftl"/>
73 <link rel="localization" href="browser/browserSets.ftl"/>
74 <link rel="localization" href="browser/firefoxView.ftl"/>
75 <link rel="localization" href="browser/identityCredentialNotification.ftl" />
76 <link rel="localization" href="browser/menubar.ftl"/>
77 <link rel="localization" href="browser/originControls.ftl"/>
78 <link rel="localization" href="browser/panelUI.ftl"/>
79 <link rel="localization" href="browser/places.ftl"/>
80 <link rel="localization" href="browser/protectionsPanel.ftl"/>
81 <link rel="localization" href="browser/reportBrokenSite.ftl"/>
82 <link rel="localization" href="browser/screenshots.ftl"/>
83 <link rel="localization" href="browser/search.ftl"/>
84 <link rel="localization" href="browser/sidebarMenu.ftl"/>
85 <link rel="localization" href="browser/tabbrowser.ftl"/>
86 <link rel="localization" href="browser/toolbarContextMenu.ftl"/>
87 <link rel="localization" href="browser/translations.ftl" />
88 <link rel="localization" href="browser/unifiedExtensions.ftl"/>
89 <link rel="localization" href="browser/webrtcIndicator.ftl"/>
90 <link rel="localization" href="toolkit/branding/accounts.ftl"/>
91 <link rel="localization" href="toolkit/branding/brandings.ftl"/>
92 <link rel="localization" href="toolkit/global/textActions.ftl"/>
93 <link rel="localization" href="toolkit/printing/printUI.ftl"/>
94 <!-- Untranslated FTL files -->
95 <link rel="localization" href="preview/enUS-searchFeatures.ftl" />
96 <link rel="localization" href="preview/interventions.ftl" />
97 <link rel="localization" href="browser/shopping.ftl"/>
98 <link rel="localization" href="preview/shopping.ftl"/>
100 <title data-l10n-id="browser-main-window-title"></title>
102 # All JS files which are needed by browser.xhtml and other top level windows to
103 # support MacOS specific features *must* go into the global-scripts.inc file so
104 # that they can be shared with macWindow.inc.xhtml.
105 #include global-scripts.inc
107 <script>
108 /* eslint-env mozilla/browser-window */
109 Services.scriptloader.loadSubScript("chrome://global/content/contentAreaUtils.js", this);
110 Services.scriptloader.loadSubScript("chrome://browser/content/browser-captivePortal.js", this);
111 if (AppConstants.MOZ_DATA_REPORTING) {
112 Services.scriptloader.loadSubScript("chrome://browser/content/browser-data-submission-info-bar.js", this);
114 if (!AppConstants.MOZILLA_OFFICIAL) {
115 Services.scriptloader.loadSubScript("chrome://browser/content/browser-development-helpers.js", this);
117 Services.scriptloader.loadSubScript("chrome://browser/content/browser-pageActions.js", this);
118 Services.scriptloader.loadSubScript("chrome://browser/content/browser-sidebar.js", this);
119 Services.scriptloader.loadSubScript("chrome://browser/content/browser-tabsintitlebar.js", this);
120 Services.scriptloader.loadSubScript("chrome://browser/content/browser-unified-extensions.js", this);
121 Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser.js", this);
122 Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tab.js", this);
123 Services.scriptloader.loadSubScript("chrome://browser/content/tabbrowser-tabs.js", this);
124 Services.scriptloader.loadSubScript("chrome://browser/content/places/places-menupopup.js", this);
125 Services.scriptloader.loadSubScript("chrome://browser/content/search/autocomplete-popup.js", this);
126 Services.scriptloader.loadSubScript("chrome://browser/content/search/searchbar.js", this);
127 Services.scriptloader.loadSubScript("chrome://browser/content/shopping/shopping-sidebar.js", this);
129 window.onload = gBrowserInit.onLoad.bind(gBrowserInit);
130 window.onunload = gBrowserInit.onUnload.bind(gBrowserInit);
131 window.onclose = WindowIsClosing;
133 window.addEventListener("MozBeforeInitialXULLayout",
134 gBrowserInit.onBeforeInitialXULLayout.bind(gBrowserInit), { once: true });
136 // The listener of DOMContentLoaded must be set on window, rather than
137 // document, because the window can go away before the event is fired.
138 // In that case, we don't want to initialize anything, otherwise we
139 // may be leaking things because they will never be destroyed after.
140 window.addEventListener("DOMContentLoaded",
141 gBrowserInit.onDOMContentLoaded.bind(gBrowserInit), { once: true });
142 </script>
143 </head>
144 <html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
145 # All sets except for popupsets (commands, keys, and stringbundles)
146 # *must* go into the browser-sets.inc file so that they can be shared with other
147 # top level windows in macWindow.inc.xhtml.
148 #include browser-sets.inc
150 #include main-popupset.inc.xhtml
152 #include appmenu-viewcache.inc.xhtml
153 #include unified-extensions-viewcache.inc.xhtml
155 <html:dialog id="window-modal-dialog" style="visibility: hidden; height: 0; width: 0"/>
156 <html:template id="window-modal-dialog-template">
157 <vbox class="dialogTemplate dialogOverlay" topmost="true">
158 <hbox class="dialogBox">
159 <browser class="dialogFrame" autoscroll="false" disablehistory="true"/>
160 </hbox>
161 </vbox>
162 </html:template>
164 #include navigator-toolbox.inc.xhtml
166 #include browser-box.inc.xhtml
168 <html:template id="customizationPanel">
169 <box id="customization-container" flex="1" hidden="true"><![CDATA[
170 #include ../../components/customizableui/content/customizeMode.inc.xhtml
171 ]]></box>
172 </html:template>
174 #include fullscreen-and-pointerlock.inc.xhtml
176 <html:div id="a11y-announcement" role="alert"/>
178 <!-- Put it at the very end to make sure it's not covered by anything. -->
179 <html:div id="fullscr-toggler" hidden="hidden"/>
180 </html:body>
181 </html>