Don't let WebIDE break when trying to debug Chrome settings (bug 1134619). r=ochameau

This commit is contained in:
Panos Astithas 2015-03-04 19:00:52 +02:00
parent be35106b9d
commit af655d427c

View File

@ -1212,7 +1212,13 @@ let Cmds = {
for (let i = 0; i < tabs.length; i++) {
let tab = tabs[i];
let url = new URL(tab.url);
let url;
try {
url = new URL(tab.url);
} catch (e) {
// Don't try to handle invalid URLs, especially from Valence.
continue;
}
// Wanted to use nsIFaviconService here, but it only works for visited
// tabs, so that's no help for any remote tabs. Maybe some favicon wizard
// knows how to get high-res favicons easily, or we could offer actor