From 5b5e5d222fba8ac66d6ef9f3e65df269546adb75 Mon Sep 17 00:00:00 2001 From: Dan Finlay <542863+danfinlay@users.noreply.github.com> Date: Mon, 15 May 2023 02:39:48 -0700 Subject: [PATCH] Skip injection on snaps iframe (#19096) * skip injection on snaps iframe * escape periods from regex block list These values are used as regex inputs, so plain periods are wild characters, and mean these can be interpreted as more domains than intended. * remove period escaping It's already escaped below. Whoops! Bad AI advice! --- shared/modules/provider-injection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/modules/provider-injection.js b/shared/modules/provider-injection.js index c4d741823..1fff08854 100644 --- a/shared/modules/provider-injection.js +++ b/shared/modules/provider-injection.js @@ -65,6 +65,7 @@ function documentElementCheck() { */ function blockedDomainCheck() { const blockedDomains = [ + 'execution.metamask.io', 'uscourts.gov', 'dropbox.com', 'webbyawards.com',