summaryrefslogtreecommitdiffstats
path: root/browser/components/extensions/ext-pageAction.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/extensions/ext-pageAction.js')
-rw-r--r--browser/components/extensions/ext-pageAction.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/browser/components/extensions/ext-pageAction.js b/browser/components/extensions/ext-pageAction.js
index 153f05d7a..5bf3a9c70 100644
--- a/browser/components/extensions/ext-pageAction.js
+++ b/browser/components/extensions/ext-pageAction.js
@@ -273,6 +273,9 @@ extensions.registerSchemaAPI("pageAction", "addon_parent", context => {
// For internal consistency, we currently resolve both relative to the
// calling context.
let url = details.popup && context.uri.resolve(details.popup);
+ if (url && !context.checkLoadURL(url)) {
+ return Promise.reject({message: `Access denied for URL ${url}`});
+ }
PageAction.for(extension).setProperty(tab, "popup", url);
},