From 8e414becf074f32965fb80a6c7d03e98dd568c13 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Mon, 9 Dec 2019 00:31:08 +0100 Subject: [PATCH] Proper screen api whitelisting --- options/whitelist.js | 6 ++++++ pageAction/pageAction.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/options/whitelist.js b/options/whitelist.js index 440d789..195fa77 100644 --- a/options/whitelist.js +++ b/options/whitelist.js @@ -62,6 +62,12 @@ whitelistValue: false, protectedValue: true }, + { + title: extension.getTranslation("section_screen-api"), + name: "protectScreen", + whitelistValue: false, + protectedValue: true + }, ]; settings.onloaded(function(){ diff --git a/pageAction/pageAction.js b/pageAction/pageAction.js index 14f908c..32bfb81 100644 --- a/pageAction/pageAction.js +++ b/pageAction/pageAction.js @@ -82,8 +82,8 @@ domRect: {name: "protectDOMRect", value: false}, history: {name: "historyLengthThreshold", value: 10000}, navigator: {name: "protectNavigator", value: false}, - windows: {name: "protectWindow", value: false} - + windows: {name: "protectWindow", value: false}, + screen: {name: "protectScreen", value: false}, }; return domainOrUrlPicker( domain,