Bug 816936 - Add a "New Private Window" dock menu item for per-window private browsing builds on Mac; r=jdm

DONTBUILD since this is NPOTB for global PB builds
This commit is contained in:
Ehsan Akhgari 2012-12-03 23:20:23 -05:00
parent e779a59ea0
commit 97b99365ed

View File

@ -26,8 +26,8 @@
#include global-scripts.inc
<script type="application/javascript">
function OpenBrowserWindowFromDockMenu() {
let win = OpenBrowserWindow();
function OpenBrowserWindowFromDockMenu(options) {
let win = OpenBrowserWindow(options);
win.addEventListener("load", function listener() {
win.removeEventListener("load", listener);
let dockSupport = Cc["@mozilla.org/widget/macdocksupport;1"]
@ -56,6 +56,9 @@
<!-- The command cannot be cmd_newNavigator because we need to activate
the application. -->
<menuitem label="&newNavigatorCmd.label;" oncommand="OpenBrowserWindowFromDockMenu();" />
#ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
<menuitem label="&newPrivateWindow.label;" oncommand="OpenBrowserWindowFromDockMenu({private: true});" />
#endif
</menupopup>
</popupset>