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 @@ - - - - - - Bug 1234813 - sendBeacon should not throw if blocked by Content Policy - - - - - - - diff --git a/dom/security/test/csp/mochitest.ini b/dom/security/test/csp/mochitest.ini index d9ae9d0a1b6..f86bd6a9499 100644 --- a/dom/security/test/csp/mochitest.ini +++ b/dom/security/test/csp/mochitest.ini @@ -153,7 +153,6 @@ support-files = file_docwrite_meta.css file_docwrite_meta.js file_multipart_testserver.sjs - file_sendbeacon.html [test_base-uri.html] [test_blob_data_schemes.html] @@ -230,4 +229,3 @@ skip-if = buildapp == 'b2g' #investigate in bug 1222904 [test_meta_header_dual.html] [test_docwrite_meta.html] [test_multipartchannel.html] -[test_sendbeacon.html] diff --git a/dom/security/test/csp/test_sendbeacon.html b/dom/security/test/csp/test_sendbeacon.html deleted file mode 100644 index 1b4cfbc867a..00000000000 --- a/dom/security/test/csp/test_sendbeacon.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Bug 1234813 - sendBeacon should not throw if blocked by Content Policy - - - - - -

- - - - -