From 9c1b1d9c15955939586ee87a90c630ef99ef237c Mon Sep 17 00:00:00 2001 From: cyfung1031 <44498510+cyfung1031@users.noreply.github.com> Date: Mon, 6 Apr 2026 00:54:05 +0900 Subject: [PATCH] fix-window.parent --- src/runtime/content/utils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/runtime/content/utils.ts b/src/runtime/content/utils.ts index 613d3d7df..64b5f59c1 100644 --- a/src/runtime/content/utils.ts +++ b/src/runtime/content/utils.ts @@ -134,7 +134,7 @@ export function proxyContext( if (global[name] === global.self) { return special.global || proxy; } - return global.top; + return global[name]; default: break; } @@ -192,12 +192,8 @@ export function proxyContext( case "window": case "self": case "globalThis": - return true; case "top": case "parent": - if (global[name] === global.self) { - return true; - } return true; default: break;