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:
parent
d666d68812
commit
a95fae3de8
2 changed files with 39 additions and 0 deletions
|
@ -36,6 +36,12 @@
|
|||
}
|
||||
};
|
||||
return Object.getOwnPropertyDescriptor(temp, "opener").get;
|
||||
},
|
||||
valueGenerator: function({original, notify}){
|
||||
if (original !== null){
|
||||
notify("fakedWindowReadout");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue