mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Bug 103329: don't show undefined either. r=lumpy,sr=jack
This commit is contained in:
parent
d2024c99d5
commit
524ee4d7bd
@ -544,19 +544,20 @@ function Startup()
|
||||
|
||||
// only load url passed in when we're not page cycling
|
||||
if (!isPageCycling) {
|
||||
var uriToLoad;
|
||||
var uriToLoad = "";
|
||||
|
||||
// Check for window.arguments[0]. If present, use that for uriToLoad.
|
||||
if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) {
|
||||
var uriArray = window.arguments[0].toString().split('\n'); // stringify and split
|
||||
uriToLoad = uriArray.splice(0, 1)[0];
|
||||
if (/^\s*$/.test(uriToLoad))
|
||||
uriToLoad = "about:blank";
|
||||
|
||||
if (uriArray.length > 0)
|
||||
window.setTimeout(function(arg) { for (var i in arg) gBrowser.addTab(arg[i]); }, 0, uriArray);
|
||||
}
|
||||
|
||||
if (/^\s*$/.test(uriToLoad))
|
||||
uriToLoad = "about:blank";
|
||||
|
||||
if (uriToLoad != "about:blank") {
|
||||
gURLBar.value = uriToLoad;
|
||||
if ("arguments" in window && window.arguments.length >= 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user