From 3047c3ab24442a718f3252a0220e7fc2d284247c Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 12 Sep 2022 17:05:41 -0400 Subject: [PATCH] Resolve inconsistency between browsers (#15800) Resolve an inconsistency between Chrome and Firefox with how the contentscript runs in an iframe. This should have no user-facing impact, it's just meant as a safeguard in case something unintentionally gets included in the contentscript. --- app/manifest/v2/chrome.json | 1 + app/manifest/v3/chrome.json | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/manifest/v2/chrome.json b/app/manifest/v2/chrome.json index e4bb01cdd..9a2d91271 100644 --- a/app/manifest/v2/chrome.json +++ b/app/manifest/v2/chrome.json @@ -1,4 +1,5 @@ { + "content_security_policy": "frame-ancestors 'none'", "externally_connectable": { "matches": ["https://metamask.io/*"], "ids": ["*"] diff --git a/app/manifest/v3/chrome.json b/app/manifest/v3/chrome.json index e4bb01cdd..9e21aa058 100644 --- a/app/manifest/v3/chrome.json +++ b/app/manifest/v3/chrome.json @@ -1,4 +1,7 @@ { + "content_security_policy": { + "extension_pages": "default-src 'self'; frame-ancestors 'none'" + }, "externally_connectable": { "matches": ["https://metamask.io/*"], "ids": ["*"]