blob: 8baa3ae2eaa6b619f59847f3636f2e5b787610e7 [file] [log] [blame]
<!DOCTYPE html>
<div id="container"></div>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
var test = async_test("This test checks if accessing navigator.serviceWorker doesn't crash with invalid frame");
if (window.testRunner)
function callback() {
// At this time window.navigator may be replaced with a new iframe's one,
// which could be now invalid.
var sw = navigator.serviceWorker;
test.step(function() {
var w ="x", "y");
window.navigator = w.navigator;
setTimeout(callback, 1);