From 524ee4d7bdd9584ddd2f5144469a0ea409358d3b Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Thu, 13 Mar 2003 00:14:58 +0000 Subject: [PATCH] Bug 103329: don't show undefined either. r=lumpy,sr=jack --- xpfe/browser/resources/content/navigator.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index fc3e557a9481..6bc1ba36fb5f 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -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) {