Bug 1343498: Don't fail on unparseable host permissions r=kmag

MozReview-Commit-ID: BHIzjjz23N7

--HG--
extra : rebase_source : d8b684281c04fc70e29737fbd67bc92725860114
This commit is contained in:
Andrew Swan 2017-04-14 16:45:10 -07:00
Родитель 659bac6328
Коммит 48d2c6f7c7
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -247,7 +247,8 @@ this.ExtensionsUI = {
}
let match = /^[htps*]+:\/\/([^/]+)\//.exec(permission);
if (!match) {
throw new Error("Unparseable host permission");
Cu.reportError(`Unparseable host permission ${permission}`);
continue;
}
if (match[1] == "*") {
allUrls = true;