From 6464a28abd9687090142f08793f7c7e07a9feb8e Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Mon, 17 Sep 2007 15:21:34 -0700 Subject: [PATCH] Bug 366705 - "error when you try to load a non existing page from a local drive" [p=sciguyryan@gmail.com (Ryan Jones) r=gavin a1.9=mconnor] --- browser/base/content/tabbrowser.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 8ff4ead7f24..7c9533e608a 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -1275,7 +1275,11 @@ if (aAllowThirdPartyFixup) { flags = nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP; } - b.loadURIWithFlags(aURI, flags, aReferrerURI, aCharset, aPostData); + try { + b.loadURIWithFlags(aURI, flags, aReferrerURI, aCharset, aPostData); + } + catch (ex) { + } } // |setTimeout| here to ensure we're post reflow