зеркало из https://github.com/mozilla/pjs.git
Fix for 102066, new tab in open location dialog, r=bryner, sr=brendan
This commit is contained in:
Родитель
bbd574f1a9
Коммит
0034bf8622
|
@ -43,7 +43,7 @@ function onLoad()
|
|||
|
||||
if ("arguments" in window && window.arguments.length >= 1)
|
||||
browser = window.arguments[0];
|
||||
|
||||
|
||||
if (!browser) {
|
||||
// No browser supplied - we are calling from Composer
|
||||
dialog.openAppList.selectedItem = dialog.openEditWindow;
|
||||
|
@ -114,6 +114,12 @@ function open()
|
|||
// 3rd param tells editPage to use "delayedOpenWindow"
|
||||
editPage(url, window.opener, true);
|
||||
break;
|
||||
case "3":
|
||||
if (browser.getBrowser && browser.getBrowser().localName == "tabbrowser")
|
||||
browser.delayedOpenTab(url);
|
||||
else
|
||||
browser.loadURI(url); // Just do a normal load.
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch(exception) {
|
||||
|
|
|
@ -77,6 +77,7 @@
|
|||
<menupopup>
|
||||
<menuitem value="0" id="currentWindow" label="&topWindow.label;"/>
|
||||
<menuitem value="1" label="&newWindow.label;"/>
|
||||
<menuitem value="3" label="&newTab.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem value="2" id="editWindow" label="&editNewWindow.label;"/>
|
||||
</menupopup>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<!ENTITY enter.label "Enter the web location (URL), or specify the local file you would like to open:">
|
||||
<!ENTITY chooseFile.label "Choose File...">
|
||||
<!ENTITY newWindow.label "New Navigator window">
|
||||
<!ENTITY newTab.label "New Navigator tab">
|
||||
<!ENTITY topWindow.label "Current Navigator window">
|
||||
<!ENTITY editNewWindow.label "New Composer window">
|
||||
<!ENTITY cancel.label "Cancel">
|
||||
|
|
Загрузка…
Ссылка в новой задаче