1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Future proof: getters my be values in other browsers

Example: window.opener is a value property in Chrome.
This commit is contained in:
kkapsner 2019-08-16 17:34:16 +02:00
parent d666d68812
commit a95fae3de8
2 changed files with 39 additions and 0 deletions

View file

@ -36,6 +36,12 @@
}
};
return Object.getOwnPropertyDescriptor(temp, "opener").get;
},
valueGenerator: function({original, notify}){
if (original !== null){
notify("fakedWindowReadout");
}
return null;
}
},
{