diff --git a/rewriter/src/rewrite.rs b/rewriter/src/rewrite.rs index 9b64de0..672beec 100644 --- a/rewriter/src/rewrite.rs +++ b/rewriter/src/rewrite.rs @@ -429,6 +429,7 @@ const UNSAFE_GLOBALS: [&str; 9] = [ "location", "document", "eval", + "frames", ]; fn random_string() -> String { diff --git a/src/client/global.ts b/src/client/global.ts index 446ff42..d083ef9 100644 --- a/src/client/global.ts +++ b/src/client/global.ts @@ -14,9 +14,15 @@ export function createGlobalProxy( if ( typeof prop === "string" && - ["window", "top", "self", "globalThis", "parent", "document"].includes( - prop - ) + [ + "window", + "top", + "self", + "globalThis", + "parent", + "document", + "frames", + ].includes(prop) ) return client.wrapfn(self[prop]);