mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 05:15:09 +00:00
8614a6bea8
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.
27 lines
951 B
XML
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>
|