2003-08-11 08:41:34 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
# -*- Mode: HTML -*-
|
|
|
|
#
|
2012-05-21 11:12:37 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2005-02-01 17:36:54 +00:00
|
|
|
|
2006-11-11 22:22:36 +00:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
2007-07-17 21:08:24 +00:00
|
|
|
<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
|
2006-11-11 22:22:36 +00:00
|
|
|
|
2007-02-14 21:28:26 +00:00
|
|
|
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
|
2006-11-11 22:22:36 +00:00
|
|
|
<?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
|
2007-01-05 11:45:15 +00:00
|
|
|
<?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
|
2006-11-11 22:22:36 +00:00
|
|
|
|
2003-08-11 08:41:34 +00:00
|
|
|
# All DTD information is stored in a separate file so that it can be shared by
|
|
|
|
# hiddenWindow.xul.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-doctype.inc
|
2003-08-11 08:41:34 +00:00
|
|
|
|
|
|
|
<overlay id="hidden-overlay"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
2005-04-20 15:32:57 +00:00
|
|
|
# All JS files which are not content (only) dependent that browser.xul
|
|
|
|
# wishes to include *must* go into the global-scripts.inc file
|
|
|
|
# so that they can be shared by this overlay.
|
|
|
|
#include global-scripts.inc
|
2003-08-11 08:41:34 +00:00
|
|
|
|
2009-11-05 13:53:26 +00:00
|
|
|
<script type="application/javascript">
|
2012-12-04 04:20:23 +00:00
|
|
|
function OpenBrowserWindowFromDockMenu(options) {
|
|
|
|
let win = OpenBrowserWindow(options);
|
2012-08-07 19:28:16 +00:00
|
|
|
win.addEventListener("load", function listener() {
|
|
|
|
win.removeEventListener("load", listener);
|
|
|
|
let dockSupport = Cc["@mozilla.org/widget/macdocksupport;1"]
|
|
|
|
.getService(Ci.nsIMacDockSupport);
|
|
|
|
dockSupport.activateApplication(true);
|
|
|
|
});
|
|
|
|
|
|
|
|
return win;
|
2010-03-05 00:10:42 +00:00
|
|
|
}
|
|
|
|
|
2012-06-15 19:09:48 +00:00
|
|
|
addEventListener("load", function() { gBrowserInit.nonBrowserWindowStartup() }, false);
|
|
|
|
addEventListener("unload", function() { gBrowserInit.nonBrowserWindowShutdown() }, false);
|
2005-04-19 15:32:38 +00:00
|
|
|
</script>
|
2003-08-11 08:41:34 +00:00
|
|
|
|
|
|
|
# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
|
|
|
|
# browser-sets.inc file for sharing with hiddenWindow.xul.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-sets.inc
|
2003-08-11 08:41:34 +00:00
|
|
|
|
|
|
|
# The entire main menubar is placed into browser-menubar.inc, so that it can be shared by
|
|
|
|
# hiddenWindow.xul.
|
2003-08-13 09:53:32 +00:00
|
|
|
#include browser-menubar.inc
|
2003-08-11 08:41:34 +00:00
|
|
|
|
2010-02-22 20:51:30 +00:00
|
|
|
<!-- Dock menu -->
|
|
|
|
<popupset>
|
|
|
|
<menupopup id="menu_mac_dockmenu">
|
2010-03-05 00:10:42 +00:00
|
|
|
<!-- The command cannot be cmd_newNavigator because we need to activate
|
|
|
|
the application. -->
|
2013-04-08 15:30:50 +00:00
|
|
|
<menuitem label="&newNavigatorCmd.label;" oncommand="OpenBrowserWindowFromDockMenu();"
|
|
|
|
id="macDockMenuNewWindow" />
|
2012-12-04 04:20:23 +00:00
|
|
|
<menuitem label="&newPrivateWindow.label;" oncommand="OpenBrowserWindowFromDockMenu({private: true});" />
|
2010-02-22 20:51:30 +00:00
|
|
|
</menupopup>
|
|
|
|
</popupset>
|
|
|
|
|
2003-08-11 08:41:34 +00:00
|
|
|
</overlay>
|