зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
659bac6328
Коммит
48d2c6f7c7
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче