diff --git a/dom/security/test/csp/file_main.js b/dom/security/test/csp/file_main.js index e584c2645c3..0bc15b6827a 100644 --- a/dom/security/test/csp/file_main.js +++ b/dom/security/test/csp/file_main.js @@ -11,7 +11,10 @@ doXHR("http://example.com/tests/dom/security/test/csp/file_CSP.sjs?testid=xhr_ba fetch("http://mochi.test:8888/tests/dom/security/test/csp/file_CSP.sjs?testid=fetch_good"); fetch("http://example.com/tests/dom/security/test/csp/file_CSP.sjs?testid=fetch_bad"); navigator.sendBeacon("http://mochi.test:8888/tests/dom/security/test/csp/file_CSP.sjs?testid=beacon_good"); -navigator.sendBeacon("http://example.com/tests/dom/security/test/csp/file_CSP.sjs?testid=beacon_bad"); +try { + navigator.sendBeacon("http://example.com/tests/dom/security/test/csp/file_CSP.sjs?testid=beacon_bad"); +} catch(ex) {} + new Worker("file_main_worker.js").postMessage({inherited : false}); diff --git a/dom/security/test/csp/file_sendbeacon.html b/dom/security/test/csp/file_sendbeacon.html deleted file mode 100644 index 13202c65ffa..00000000000 --- a/dom/security/test/csp/file_sendbeacon.html +++ /dev/null @@ -1,21 +0,0 @@ - - -
- - -