mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-29 11:57:55 +00:00
fix Bug 245588, certain malformed URL or missing local pages break startup
This commit is contained in:
parent
ea41dbc112
commit
b5a05344dd
@ -1230,8 +1230,15 @@ function loadOneOrMoreURIs(aURIString)
|
||||
{
|
||||
var urls = aURIString.split("|");
|
||||
loadURI(urls[0]);
|
||||
for (var i = 1; i < urls.length; ++i)
|
||||
gBrowser.addTab(urls[i]);
|
||||
for (var i = 1; i < urls.length; ++i) {
|
||||
// addTab throws for certain malformed URIs
|
||||
// catch this so we don't hork startup.
|
||||
try {
|
||||
gBrowser.addTab(urls[i]);
|
||||
} catch (ex) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function constructGoMenuItem(goMenu, beforeItem, url, title)
|
||||
|
Loading…
Reference in New Issue
Block a user