mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
Added protection for window.name and window.opener
As requested by #231. But this protection is disabled by default.
This commit is contained in:
parent
fd7c4fabbd
commit
83efac5e49
13 changed files with 195 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<title>Test</title>
|
||||
<script>
|
||||
console.log(new Date(), "starting first fingerprint");
|
||||
console.log(new Date(), "starting first fingerprint", window.name);
|
||||
function fingerPrint(){
|
||||
"use strict";var canvas = document.createElement("canvas");
|
||||
canvas.setAttribute("width", 220);
|
||||
|
@ -50,7 +50,7 @@
|
|||
if (firstFingerprint){
|
||||
document.body.textContent = "context API not blocked";
|
||||
window.setTimeout(function(){
|
||||
console.log(new Date(), "starting second fingerprint");
|
||||
console.log(new Date(), "starting second fingerprint", window.name);
|
||||
document.body.appendChild(document.createElement("br"));
|
||||
var secondFingerprint = fingerPrint();
|
||||
if (firstFingerprint === secondFingerprint){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue