Skip to content

Commit

Permalink
Fine tune nowoif scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Aug 16, 2020
1 parent f4bdee6 commit b33065e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web_accessible_resources/window.open-defuser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b33065e

Please sign in to comment.