1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Added test with iFrame

For #321
This commit is contained in:
kkapsner 2019-05-22 23:39:56 +02:00
parent 2da680bfcb
commit 5785c3c2a0

View File

@ -32,3 +32,23 @@ Object.keys(navigator.__proto__).sort().forEach(function(property){
log(property + ": " + value);
}
});
var section = document.createElement("h2");
section.textContent = "Values in iFrame";
document.getElementById("log").append(section);
log = createLog();
var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
var iframeWindow = frames[frames.length - 1];
Object.keys(navigator.__proto__).sort().forEach(function(property){
"use strict";
var value = iframeWindow.navigator[property];
if ((typeof value) === "string"){
log(property + "@iframe: " + value);
}
});
document.body.removeChild(iframe);