fix for regression 89345 - open link in new window broke.. doh.

sr=blake, r=jag


git-svn-id: svn://10.0.0.236/trunk@98719 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com 2001-07-05 22:18:54 +00:00
parent b7a9813cc2
commit 49fbe3b54d

View File

@ -312,6 +312,10 @@ function Startup()
if (!isPageCycling) {
var uriToLoad;
// Check for window.arguments[0]. If present, use that for uriToLoad.
if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0])
uriToLoad = window.arguments[0];
if (!turboMode) {
var cmdLineService =
Components.classes["@mozilla.org/appshell/commandLineService;1"]
@ -333,11 +337,6 @@ function Startup()
}
}
if (!uriToLoad) {
// Check for window.arguments[0]. If present, use that for uriToLoad.
if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0])
uriToLoad = window.arguments[0];
}
if (uriToLoad && uriToLoad != "about:blank") {
gURLBar.value = uriToLoad;