Proper screen api whitelisting

This commit is contained in:
kkapsner 2019-12-09 00:31:08 +01:00
parent bf757a5431
commit 8e414becf0
2 changed files with 8 additions and 2 deletions

View File

@ -62,6 +62,12 @@
whitelistValue: false,
protectedValue: true
},
{
title: extension.getTranslation("section_screen-api"),
name: "protectScreen",
whitelistValue: false,
protectedValue: true
},
];
settings.onloaded(function(){

View File

@ -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,