"); } function listener2() { opener.secondListenerDidRun = true; } window.addEventListener("foo", listener1); window.addEventListener("foo", listener2); function fireFoo() { var e = document.createEvent("Events"); e.initEvent("foo", true, true); window.dispatchEvent(e); } //-->
Test for bug 291653