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

window.name protection was detectable

This commit is contained in:
kkapsner 2020-01-01 00:30:16 +01:00
parent ccabfc2a6f
commit 85c88ad3d8
2 changed files with 4 additions and 3 deletions

View file

@ -48,9 +48,9 @@
const temp = {
get name(){
return checkerWrapper(checker, this, arguments, function(args, check){
const {notify, window, original} = check;
const {notify, original} = check;
const originalName = original.call(this, ...args);
const returnedName = windowNames.get(window) || "";
const returnedName = windowNames.get(this) || "";
if (originalName !== returnedName){
notify("fakedWindowReadout");
}
@ -64,7 +64,7 @@
const temp = {
set name(name){
original.call(this, ...arguments);
windowNames.set(window, name);
windowNames.set(this, name);
}
};
return Object.getOwnPropertyDescriptor(temp, "name").set;