public
Last active — forked from kmaglione/stdin.xul

  • Download Gist
stdin.xul
XML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 
<window id="foo" orient="vertical"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
<script type="application/javascript"><![CDATA[
onload = function onload(event) {
let iframe = document.getElementById("foo-iframe");
iframe.addEventListener("DOMContentLoaded", function (event) {
alert("You'll never see me - but no one knows why...");
if (this != event.originalTarget)
return;
// doStuffWith(this.contentWindow);
}, true);
iframe.setAttribute("src", "http://www.google.com/");
}
]]></script>
 
<iframe id="foo-iframe" type="content"/>
</window>

This is all I see:

(No alert pop-up.)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.