3
<!-- The contents of this file are subject to the Netscape Public
4
License Version 1.1 (the "License"); you may not use this file
5
except in compliance with the License. You may obtain a copy of
6
the License at http://www.mozilla.org/NPL/
8
Software distributed under the License is distributed on an "AS
9
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
implied. See the License for the specific language governing
11
rights and limitations under the License.
13
The Original Code is Mozilla Communicator client code, released
16
The Initial Developer of the Original Code is Netscape
17
Communications Corporation. Portions created by Netscape are
18
Copyright (C) 1998-1999 Netscape Communications Corporation. All
21
Contributor(s): ______________________________________. -->
23
<?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
25
<!-- hiddenwindow is a "minimal" XUL window intended for creating the,
26
er, hidden window. This window is never shown, but on platforms
27
which leave the app running after the last (visible) window is shut
28
down, this window does hold a browser menubar.
29
Though this window looks a lot like navigator.xul, that xul
30
is unsuitable because it's subject to the whims of its associated
31
appcore, which among other things causes it to load content documents
32
undesirable for this window.
33
Arguably a simpler menu structure could be substituted, but
34
the full one was included for now in anticipation of the whole thing
35
becoming an included file someday. -->
37
<!-- Localizable string definitions from navigator.xul. -->
39
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
41
<!ENTITY % buildDTD SYSTEM "chrome://global/content/build.dtd" >
43
<!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
47
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
48
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
50
titlemodifier="&mainWindow.titlemodifier;"
51
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
52
onload="hiddenWindowStartup();">
54
<!-- JS from navigator.xul, to handle the menu commands -->
55
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
56
<script type="application/x-javascript" src="chrome://navigator/content/browser.js"/>
57
<script type="application/x-javascript" src="chrome://navigator/content/navigator.js"/>
59
<!-- Shared Bookmarks Utility Library -->
60
<script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarks.js"/>
61
<script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksMenu.js"/>
63
<stringbundleset id="stringbundleset"/>
65
<!-- keys are appended from the overlay -->
66
<keyset id="tasksKeys">
68
<key id="showHideSidebar"/>
72
<!-- commands are appended from the overlay -->
73
<commandset id="commands">
74
<commandset id="tasksCommands"/>
75
<commandset id="globalEditMenuItems"/>
76
<commandset id="selectEditMenuItems"/>
77
<commandset id="undoEditMenuItems"/>
78
<commandset id="clipboardEditMenuItems"/>
81
<broadcasterset id="navBroadcasters"/>
83
<template id="bookmarksMenuTemplate"/>
85
<!-- it's the whole navigator.xul menubar! hidden windows need to
86
have a menubar for situations where they're the only window remaining
87
on a platform that wants to leave the app running, like the Mac.
89
<toolbox id="toolbox">
90
<menubar id="main-menubar" position="1"/>