1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

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!
This commit is contained in:
Dan Finlay 2023-05-15 02:39:48 -07:00 committed by GitHub
parent aa9ee8af6c
commit 5b5e5d222f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ function documentElementCheck() {
*/
function blockedDomainCheck() {
const blockedDomains = [
'execution.metamask.io',
'uscourts.gov',
'dropbox.com',
'webbyawards.com',