mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
window.name protection was detectable
This commit is contained in:
parent
ccabfc2a6f
commit
85c88ad3d8
@ -48,9 +48,9 @@
|
|||||||
const temp = {
|
const temp = {
|
||||||
get name(){
|
get name(){
|
||||||
return checkerWrapper(checker, this, arguments, function(args, check){
|
return checkerWrapper(checker, this, arguments, function(args, check){
|
||||||
const {notify, window, original} = check;
|
const {notify, original} = check;
|
||||||
const originalName = original.call(this, ...args);
|
const originalName = original.call(this, ...args);
|
||||||
const returnedName = windowNames.get(window) || "";
|
const returnedName = windowNames.get(this) || "";
|
||||||
if (originalName !== returnedName){
|
if (originalName !== returnedName){
|
||||||
notify("fakedWindowReadout");
|
notify("fakedWindowReadout");
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@
|
|||||||
const temp = {
|
const temp = {
|
||||||
set name(name){
|
set name(name){
|
||||||
original.call(this, ...arguments);
|
original.call(this, ...arguments);
|
||||||
windowNames.set(window, name);
|
windowNames.set(this, name);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return Object.getOwnPropertyDescriptor(temp, "name").set;
|
return Object.getOwnPropertyDescriptor(temp, "name").set;
|
||||||
|
@ -16,6 +16,7 @@ Version 1.0:
|
|||||||
- resetting the settings had undesired side effects
|
- resetting the settings had undesired side effects
|
||||||
- added window.open protection
|
- added window.open protection
|
||||||
- cross origin DOM manipulations
|
- cross origin DOM manipulations
|
||||||
|
- window.name protection was detectable
|
||||||
|
|
||||||
known issues:
|
known issues:
|
||||||
- if a data URL is blocked the page action button does not appear
|
- if a data URL is blocked the page action button does not appear
|
||||||
|
Loading…
x
Reference in New Issue
Block a user