1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 18:42:00 +01:00

Aded blob scheme test.

To reprooduce #212 and #213.
This commit is contained in:
kkapsner 2018-07-21 13:20:45 +02:00
parent 698ead8097
commit eb1a441625
2 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,13 @@
(function(){ (function(){
"use strict"; "use strict";
document.getElementById("code").textContent = atob( var iframeCode = atob(
document.getElementById("iframe").src.replace(/^.+base64,/, "") document.getElementById("iframe").src.replace(/^.+base64,/, "")
); );
document.getElementById("code").textContent = iframeCode;
var blob = new Blob([iframeCode], {type : 'text/html'});
var newurl = window.URL.createObjectURL(blob);
document.getElementById("blobIframe").src = newurl;
}()); }());

View File

@ -25,6 +25,8 @@
) )
); );
?>"></iframe> ?>"></iframe>
<h1>blob iFrame</h1>
<iframe id="blobIframe"></iframe>
<h1>Data-URL object</h1> <h1>Data-URL object</h1>
<object <object
type="invalid" type="invalid"