1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 12:06:31 +02:00

Improved protection of (i)frame properties

Fixes #364
This commit is contained in:
kkapsner 2019-06-04 08:42:31 +02:00
parent ef1c45efab
commit c3d4a1901c
3 changed files with 45 additions and 32 deletions

View file

@ -200,6 +200,10 @@ addTest("function name", function(log){
func: window.__lookupSetter__("name"),
expectedName: "set name"
},
{
func: HTMLIFrameElement.prototype.__lookupGetter__("contentDocument"),
expectedName: "get contentDocument"
},
].map(checkName).some(function(b){return b;});
});
addTest("property descriptor", function(log){