Revision bb80e224f4d801dc6bd21b6e330cce5fe3fa8055 authored by Henrik Skupin on 24 April 2018, 21:19:20 UTC, committed by jgraham on 01 May 2018, 09:56:37 UTC
After closing the last top-level browsing context, the session will be closed too. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1455282 gecko-commit: e60e61507ef4a95ab2456d13126f6fef9086109a gecko-integration-branch: autoland gecko-reviewers: ato
1 parent 8b9f853
prerender_call.html
<!doctype html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>Prerender test for Page Visibility API</title>
<link rel="prerender" href="resources/prerender_target.html">
<script>
var t = async_test('VisibilityState of the target page was set to "prerender" when it has been prerendered');
window.onload = t.step_func(function() {
t.step_timeout(function() {
assert_equals(localStorage.getItem("visibilityState:prerender"), "hit", "visibilityState of the target page was set to 'prerender'");
t.done();
localStorage.clear();
}, 1000);
});
</script>
</head>
<body>
<h1>Description</h1>
<p>This document validate that visibilityState of a target page was set to "prerender" when it has been prerendered.</p>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...