mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
fix for regression 89345 - open link in new window broke.. doh.
sr=blake, r=jag
This commit is contained in:
parent
32d8d1f61c
commit
2e5a47dd8f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user