mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
parent
be2f4d8904
commit
b4dbd71d11
@ -127,6 +127,7 @@
|
|||||||
function interceptWindow(window){
|
function interceptWindow(window){
|
||||||
try {
|
try {
|
||||||
var href = window.location.href;
|
var href = window.location.href;
|
||||||
|
var wrappedTry = getWrapped(window);
|
||||||
}
|
}
|
||||||
catch (e){
|
catch (e){
|
||||||
// we are unable to read the location due to SOP
|
// we are unable to read the location due to SOP
|
||||||
@ -134,7 +135,7 @@
|
|||||||
warning("NOT intercepting window due to SOP", window);
|
warning("NOT intercepting window due to SOP", window);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const wrappedWindow = getWrapped(window);
|
const wrappedWindow = wrappedTry;
|
||||||
|
|
||||||
if (!enabled || interceptedWindows.get(wrappedWindow)){
|
if (!enabled || interceptedWindows.get(wrappedWindow)){
|
||||||
return false;
|
return false;
|
||||||
|
@ -28,6 +28,7 @@ Version 0.5.9:
|
|||||||
- detection over navigator and DOMRect getters was possible
|
- detection over navigator and DOMRect getters was possible
|
||||||
- audio cache could break readout
|
- audio cache could break readout
|
||||||
- improved iFrame protection
|
- improved iFrame protection
|
||||||
|
- SOP detection did not work all the time
|
||||||
|
|
||||||
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