diff --git a/src/web_accessible_resources/window.open-defuser.js b/src/web_accessible_resources/window.open-defuser.js index 3e218df22..b89542a80 100644 --- a/src/web_accessible_resources/window.open-defuser.js +++ b/src/web_accessible_resources/window.open-defuser.js @@ -80,6 +80,7 @@ const decoy1 = createDecoy('iframe', 'src', url); const decoy2 = createDecoy('object', 'data', url); const popup = decoy1.contentWindow || decoy2.contentWindow; + Object.defineProperty(popup, 'closed', { value: false }); if ( arg3 === '' ) { return popup; } return new Proxy(popup, { get: function(target, prop) {