зеркало из https://github.com/mozilla/gecko-dev.git
Bug 317733: browser.js's startup doesn't do anything with passed in postData (open location dialog can't open keywords with postData), r=mconnor
This commit is contained in:
Родитель
498d7f0f10
Коммит
9cf7411fbd
|
@ -596,7 +596,7 @@ function BrowserStartup()
|
|||
|
||||
var uriToLoad = null;
|
||||
// Check for window.arguments[0]. If present, use that for uriToLoad.
|
||||
if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0])
|
||||
if ("arguments" in window && window.arguments[0])
|
||||
uriToLoad = window.arguments[0];
|
||||
|
||||
gIsLoadingBlank = uriToLoad == "about:blank";
|
||||
|
@ -607,15 +607,13 @@ function BrowserStartup()
|
|||
#ifdef ENABLE_PAGE_CYCLER
|
||||
appCore.startPageCycler();
|
||||
#else
|
||||
// only load url passed in when we're not page cycling
|
||||
|
||||
# only load url passed in when we're not page cycling
|
||||
if (uriToLoad && !gIsLoadingBlank) {
|
||||
if ("arguments" in window && window.arguments.length >= 3)
|
||||
loadURI(uriToLoad, window.arguments[2], null);
|
||||
if (window.arguments.length >= 3)
|
||||
loadURI(uriToLoad, window.arguments[2], window.arguments[3] || null);
|
||||
else
|
||||
loadOneOrMoreURIs(uriToLoad);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
var sidebarSplitter;
|
||||
|
|
|
@ -106,7 +106,7 @@ function open()
|
|||
browser.loadURI(url, null, postData.value);
|
||||
break;
|
||||
case "1":
|
||||
window.opener.delayedOpenWindow(getBrowserURL(), "all,dialog=no", url, postData);
|
||||
window.opener.delayedOpenWindow(getBrowserURL(), "all,dialog=no", url, postData.value);
|
||||
break;
|
||||
case "3":
|
||||
if (browser.getBrowser && browser.getBrowser().localName == "tabbrowser")
|
||||
|
|
Загрузка…
Ссылка в новой задаче