mirror of
https://github.com/roytam1/UXP.git
synced 2026-06-26 02:08:47 +00:00
19 lines
462 B
HTML
19 lines
462 B
HTML
<!doctype html>
|
|
<title>visibilitychange fires on unload</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<script>
|
|
async_test(function(t) {
|
|
var w = window.open("unload-1.html");
|
|
window.onmessage = t.step_func(function(event) {
|
|
if (event.data === "close") {
|
|
w.close();
|
|
return;
|
|
}
|
|
assert_equals(event.data, "hidden");
|
|
t.done();
|
|
});
|
|
});
|
|
</script>
|