incumbent.sub.html (840B)
1 <!DOCTYPE html> 2 <title>Incumbent page used as a test helper</title> 3 4 <iframe src="//{{domains[www1]}}:{{location[port]}}/FileAPI/support/document-domain-setter.sub.html" id="c"></iframe> 5 <iframe src="//{{domains[www2]}}:{{location[port]}}/FileAPI/support/document-domain-setter.sub.html" id="r"></iframe> 6 <iframe src="//{{domains[élève]}}:{{location[port]}}/FileAPI/support/document-domain-setter.sub.html" id="bs"></iframe> 7 8 <script> 9 "use strict"; 10 document.domain = "{{host}}"; 11 12 window.createBlobURL = () => { 13 const current = document.querySelector("#c").contentWindow; 14 const relevant = document.querySelector("#r").contentWindow; 15 const blobSource = document.querySelector("#bs").contentWindow; 16 17 const blob = new blobSource.Blob(["Test Blob"]); 18 19 return current.URL.createObjectURL.call(relevant, blob); 20 }; 21 22 </script>