gecko-dev/docshell/test/chrome/test_bug690056.xul
Boris Zbarsky 8614a6bea8 Bug 690056. Implement a vendor-prefixed version of the visibility API. r=sicking
The idea is to fire the visibilitychange event synchronously during pageshow and pagehide, since we're
already running script there for the pageshow/pagehide events.  For docshell active state changes, we
fire the event asynchronously.  In all cases, the actual state changes just before the event fires.
2011-10-11 17:29:12 -04:00

27 lines
951 B
XML

<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=690056
-->
<window title="Mozilla Bug 690056"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
<!-- test results are displayed in the html:body -->
<body xmlns="http://www.w3.org/1999/xhtml">
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=690056"
target="_blank">Mozilla Bug 690056</a>
</body>
<!-- test code goes here -->
<script type="application/javascript">
<![CDATA[
/** Test for Bug 690056 **/
SimpleTest.waitForExplicitFinish();
window.open("bug690056_window.xul", "bug690056",
"chrome,width=600,height=600");
]]>
</script>
</window>