Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | # -*- Mode: HTML -*- |
michael@0 | 3 | # |
michael@0 | 4 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 7 | |
michael@0 | 8 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 9 | <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?> |
michael@0 | 10 | |
michael@0 | 11 | <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?> |
michael@0 | 12 | <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?> |
michael@0 | 13 | <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?> |
michael@0 | 14 | |
michael@0 | 15 | # All DTD information is stored in a separate file so that it can be shared by |
michael@0 | 16 | # hiddenWindow.xul. |
michael@0 | 17 | #include browser-doctype.inc |
michael@0 | 18 | |
michael@0 | 19 | <overlay id="hidden-overlay" |
michael@0 | 20 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
michael@0 | 21 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 22 | |
michael@0 | 23 | # All JS files which are not content (only) dependent that browser.xul |
michael@0 | 24 | # wishes to include *must* go into the global-scripts.inc file |
michael@0 | 25 | # so that they can be shared by this overlay. |
michael@0 | 26 | #include global-scripts.inc |
michael@0 | 27 | |
michael@0 | 28 | <script type="application/javascript"> |
michael@0 | 29 | function OpenBrowserWindowFromDockMenu(options) { |
michael@0 | 30 | let win = OpenBrowserWindow(options); |
michael@0 | 31 | win.addEventListener("load", function listener() { |
michael@0 | 32 | win.removeEventListener("load", listener); |
michael@0 | 33 | let dockSupport = Cc["@mozilla.org/widget/macdocksupport;1"] |
michael@0 | 34 | .getService(Ci.nsIMacDockSupport); |
michael@0 | 35 | dockSupport.activateApplication(true); |
michael@0 | 36 | }); |
michael@0 | 37 | |
michael@0 | 38 | return win; |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | addEventListener("load", function() { gBrowserInit.nonBrowserWindowStartup() }, false); |
michael@0 | 42 | addEventListener("unload", function() { gBrowserInit.nonBrowserWindowShutdown() }, false); |
michael@0 | 43 | </script> |
michael@0 | 44 | |
michael@0 | 45 | # All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the |
michael@0 | 46 | # browser-sets.inc file for sharing with hiddenWindow.xul. |
michael@0 | 47 | #include browser-sets.inc |
michael@0 | 48 | |
michael@0 | 49 | # The entire main menubar is placed into browser-menubar.inc, so that it can be shared by |
michael@0 | 50 | # hiddenWindow.xul. |
michael@0 | 51 | #include browser-menubar.inc |
michael@0 | 52 | |
michael@0 | 53 | <!-- Dock menu --> |
michael@0 | 54 | <popupset> |
michael@0 | 55 | <menupopup id="menu_mac_dockmenu"> |
michael@0 | 56 | <!-- The command cannot be cmd_newNavigator because we need to activate |
michael@0 | 57 | the application. --> |
michael@0 | 58 | <menuitem label="&newNavigatorCmd.label;" oncommand="OpenBrowserWindowFromDockMenu();" |
michael@0 | 59 | id="macDockMenuNewWindow" /> |
michael@0 | 60 | <menuitem label="&newPrivateWindow.label;" oncommand="OpenBrowserWindowFromDockMenu({private: true});" /> |
michael@0 | 61 | </menupopup> |
michael@0 | 62 | </popupset> |
michael@0 | 63 | |
michael@0 | 64 | </overlay> |