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