embedder.html (330B)
1 <!DOCTYPE html> 2 <script> 3 window.onmessage = function(e) { 4 window.parent.postMessage(e.data, "*"); 5 if (e.data.status == "protocol") { 6 document.querySelector("iframe").src = "image.html"; 7 } 8 }; 9 </script> 10 <iframe src="http://example.com/tests/dom/serviceworkers/test/fetch/upgrade-insecure/index.html"></iframe>