Bug 287677 dropping unknown scheme on a tab produces 2 errors, rather than 1, r=mconnor

This commit is contained in:
jminta@gmail.com 2007-08-21 22:01:23 -07:00
parent 9c355b5476
commit 48621babf9

View File

@ -1652,10 +1652,13 @@
else {
// Load in an existing tab.
var tab = aEvent.target;
this.getBrowserForTab(tab).loadURI(getShortcutOrURI(url));
if (this.mCurrentTab != tab && !bgLoad)
this.selectedTab = tab;
try {
this.getBrowserForTab(tab).loadURI(getShortcutOrURI(url));
if (this.mCurrentTab != tab && !bgLoad)
this.selectedTab = tab;
} catch(ex) {
// Just ignore invalid urls
}
}
}
]]>