Skip to content

Commit 24eea69

Browse files
authored
feat(inbound filters): Add cypto "cannot redefine property" (#3231)
1 parent 912a697 commit 24eea69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

relay-filter/src/browser_extensions.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ static EXTENSION_EXC_VALUES: Lazy<Regex> = Lazy::new(|| {
4343
webkit-masked-url:|
4444
# Firefox message when an extension tries to modify a no-longer-existing DOM node
4545
# See https://blog.mozilla.org/addons/2012/09/12/what-does-cant-access-dead-object-mean/
46-
can't\saccess\sdead\sobject
46+
can't\saccess\sdead\sobject|
47+
# Crypocurrency related extension errors
48+
Cannot\sredefine\sproperty:\s(solana|ethereum)
4749
"#,
4850
)
4951
.expect("Invalid browser extensions filter (Exec Vals) Regex")
@@ -260,6 +262,8 @@ mod tests {
260262
"Extension context invalidated",
261263
"useless error webkit-masked-url: please filter",
262264
"TypeError: can't access dead object because dead stuff smells bad",
265+
"Cannot redefine property: solana",
266+
"Cannot redefine property: ethereum",
263267
];
264268

265269
for exc_value in &exceptions {

0 commit comments

Comments
 (0)