mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 287677 dropping unknown scheme on a tab produces 2 errors, rather than 1, r=mconnor
This commit is contained in:
parent
9c355b5476
commit
48621babf9
@ -1652,10 +1652,13 @@
|
||||
else {
|
||||
// Load in an existing tab.
|
||||
var tab = aEvent.target;
|
||||
try {
|
||||
this.getBrowserForTab(tab).loadURI(getShortcutOrURI(url));
|
||||
|
||||
if (this.mCurrentTab != tab && !bgLoad)
|
||||
this.selectedTab = tab;
|
||||
} catch(ex) {
|
||||
// Just ignore invalid urls
|
||||
}
|
||||
}
|
||||
}
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user