Bug 841616 Open Location should have Private Window option r=IanN,Ratty
This commit is contained in:
Родитель
451c706c34
Коммит
84ebdb62bd
|
@ -2096,6 +2096,9 @@ var nsOpenRemoteCommand =
|
|||
var browser = win.getBrowser();
|
||||
browser.selectedTab = browser.addTab(params.url, {allowThirdPartyFixup: true});
|
||||
break;
|
||||
case "4": // private
|
||||
openNewPrivateWith(params.url);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1302,6 +1302,9 @@ function BrowserOpenWindow()
|
|||
case "3": // new tab
|
||||
gBrowser.selectedTab = gBrowser.addTab(url, {allowThirdPartyFixup: true, postData: postData.value});
|
||||
break;
|
||||
case "4": // private
|
||||
openNewPrivateWith(params.url);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -70,8 +70,11 @@ function accept()
|
|||
{
|
||||
var params = window.arguments[0];
|
||||
params.url = gInput.value;
|
||||
params.action = gOpenAppList.value;
|
||||
if (params.action == "4")
|
||||
return; // private, don't set any preferences
|
||||
|
||||
if (gAction != "4") { // open web page
|
||||
params.action = gOpenAppList.value;
|
||||
// If there were no browser windows open and not set to open in composer
|
||||
// then set to open in a new window.
|
||||
if (gAction == "-1" && params.action != "2")
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
selected="true"/>
|
||||
<menuitem value="3" id="newTab" label="&newTab.label;"/>
|
||||
<menuitem value="1" id="newWindow" label="&newWindow.label;"/>
|
||||
<menuitem value="4" id="newPrivate" label="&newPrivate.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem value="2" id="editWindow" label="&editNewWindow.label;"/>
|
||||
</menupopup>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<!ENTITY enter.accesskey "E">
|
||||
<!ENTITY chooseFile.label "Choose File…">
|
||||
<!ENTITY chooseFile.accesskey "C">
|
||||
<!ENTITY newPrivate.label "New private window">
|
||||
<!ENTITY newWindow.label "New browser window">
|
||||
<!ENTITY newTab.label "New browser tab">
|
||||
<!ENTITY currentTab.label "Current browser tab">
|
||||
|
|
Загрузка…
Ссылка в новой задаче