1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-23 05:10:27 +01:00

Prevented bypass with empty <iframe>.

Fixes #58
This commit is contained in:
kkapsner 2016-01-28 23:46:39 +01:00
parent 39ffe4d3b2
commit 424b88f04f
2 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@ -35,7 +35,12 @@ function check(stack, url, blockMode){
function checkURL(url, blockMode){ function checkURL(url, blockMode){
"use strict"; "use strict";
if (url.protocol === "about:" || url.protocol === "chrome:") { switch (url.protocol){
case "about:":
if (url.href === "about:blank"){
break;
}
case "chrome:":
return "allow"; return "allow";
} }