Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / serviceworker / access-container-with-invalid-context.html
blob12d9d284e864c05080f8b6183c2b73996f8fc9c1
1 <!DOCTYPE html>
2 <div id="container"></div>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 var test = async_test("This test checks if accessing navigator.serviceWorker doesn't crash with invalid frame");
8 if (testRunner)
9 testRunner.setCanOpenWindows();
11 function callback() {
12 // At this time window.navigator may be replaced with a new iframe's one,
13 // which could be now invalid.
14 var sw = navigator.serviceWorker;
15 test.done();
18 test.step(function() {
19 var w = window.open("x", "y");
20 window.navigator = w.navigator;
21 setTimeout(callback, 1);
22 });
23 </script>