mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
dont remove CSP on browser dist (#4651)
This commit is contained in:
@@ -59,7 +59,6 @@ function dist(browserName, manifest) {
|
|||||||
|
|
||||||
function distFirefox() {
|
function distFirefox() {
|
||||||
return dist("firefox", (manifest) => {
|
return dist("firefox", (manifest) => {
|
||||||
delete manifest.content_security_policy;
|
|
||||||
delete manifest.storage;
|
delete manifest.storage;
|
||||||
return manifest;
|
return manifest;
|
||||||
});
|
});
|
||||||
@@ -68,7 +67,6 @@ function distFirefox() {
|
|||||||
function distOpera() {
|
function distOpera() {
|
||||||
return dist("opera", (manifest) => {
|
return dist("opera", (manifest) => {
|
||||||
delete manifest.applications;
|
delete manifest.applications;
|
||||||
delete manifest.content_security_policy;
|
|
||||||
return manifest;
|
return manifest;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -76,7 +74,6 @@ function distOpera() {
|
|||||||
function distChrome() {
|
function distChrome() {
|
||||||
return dist("chrome", (manifest) => {
|
return dist("chrome", (manifest) => {
|
||||||
delete manifest.applications;
|
delete manifest.applications;
|
||||||
delete manifest.content_security_policy;
|
|
||||||
delete manifest.sidebar_action;
|
delete manifest.sidebar_action;
|
||||||
delete manifest.commands._execute_sidebar_action;
|
delete manifest.commands._execute_sidebar_action;
|
||||||
return manifest;
|
return manifest;
|
||||||
@@ -86,7 +83,6 @@ function distChrome() {
|
|||||||
function distEdge() {
|
function distEdge() {
|
||||||
return dist("edge", (manifest) => {
|
return dist("edge", (manifest) => {
|
||||||
delete manifest.applications;
|
delete manifest.applications;
|
||||||
delete manifest.content_security_policy;
|
|
||||||
delete manifest.sidebar_action;
|
delete manifest.sidebar_action;
|
||||||
delete manifest.commands._execute_sidebar_action;
|
delete manifest.commands._execute_sidebar_action;
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
"webRequestBlocking"
|
"webRequestBlocking"
|
||||||
],
|
],
|
||||||
"optional_permissions": ["nativeMessaging"],
|
"optional_permissions": ["nativeMessaging"],
|
||||||
"content_security_policy": "script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval'; object-src 'self'",
|
"content_security_policy": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'",
|
||||||
"commands": {
|
"commands": {
|
||||||
"_execute_browser_action": {
|
"_execute_browser_action": {
|
||||||
"suggested_key": {
|
"suggested_key": {
|
||||||
|
|||||||
Reference in New Issue
Block a user