OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta http-equiv="Content-Security-Policy" content="child-src 'none';"> | |
5 <script src="../../resources/testharness.js"></script> | |
6 <script src="../../resources/testharnessreport.js"></script> | |
7 <script> | |
8 var t = async_test('Test that a service worker cannot be registered if the C SP does not allow it'); | |
9 navigator.serviceWorker.register("resources/service-worker.js").then(functio n (registration) { | |
10 }).catch(function (error) { | |
11 t.done(); | |
12 }); | |
13 </script> | |
14 </head> | |
15 <body> | |
OLD | NEW |