Bug 1340474 - Fix instability in data url test caused by random behaviour of whitespace in URL, a=testonly
☠☠ backed out by 24568c532a60 ☠ ☠
authorJames Graham <james@hoppipolla.co.uk>
Thu, 16 Feb 2017 15:43:45 +0000
changeset 372620 aaef66127d843f1112eeeb42553ebacd893bb55c
parent 372619 e71b73c5012fd4f83ea2a9d214a2e48e4238cdd7
child 372621 cf2dd9d5da7e57227d44f2c5eb289bcfb1585276
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1340474
milestone54.0a1
Bug 1340474 - Fix instability in data url test caused by random behaviour of whitespace in URL, a=testonly MozReview-Commit-ID: CCrle089kW1
testing/web-platform/meta/MANIFEST.json
testing/web-platform/meta/workers/data-url-shared.html.ini
testing/web-platform/tests/workers/data-url-shared.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -219523,17 +219523,17 @@
    "a585e2aa6314087be5f126f4ad8a86a1c5deb7a7",
    "testharness"
   ],
   "workers/constructors/Worker/use-base-url.html": [
    "23ed9eb3cf4b65bdd0301570677a6d89af0e551b",
    "testharness"
   ],
   "workers/data-url-shared.html": [
-   "dd3dd0aa1275681b21b9f3df869571cf402f3d3a",
+   "008332fd682f1c74f901a49c826ed2d96374c49d",
    "testharness"
   ],
   "workers/data-url.html": [
    "34eb5cd50c0b9d2e2bec65c3de51f8405da0d745",
    "testharness"
   ],
   "workers/interfaces.idl": [
    "d8961ea6af91a92a064bcf0e0da5b56781f6bc6b",
deleted file mode 100644
--- a/testing/web-platform/meta/workers/data-url-shared.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[data-url-shared.html]
-  type: testharness
-  expected: ERROR
--- a/testing/web-platform/tests/workers/data-url-shared.html
+++ b/testing/web-platform/tests/workers/data-url-shared.html
@@ -27,10 +27,10 @@ assert_worker_sends_pass('empty MIME all
 assert_worker_sends_pass('communication goes both ways', 'application/javascript', 'port.onmessage = function(e) { port.postMessage("PASS"); }');
 
 // 'data:' workers are cross-origin
 assert_worker_throws('indexedDB inaccessible', 'self.indexedDB.open("someDBName")');
 assert_worker_throws('localStorage inaccessible', 'self.localStorage.testItem');
 assert_worker_sends_pass('cross-origin worker', '', 'fetch("/").then(() => port.postMessage("FAIL"), () => port.postMessage("PASS"))');
 
 // 'data:' workers have opaque origin
-assert_worker_sends_pass('worker has opaque origin', 'application/javascript', 'if (self.location.origin == "null") port.postMessage("PASS"); else port.postMessage("FAIL");');
+assert_worker_sends_pass('worker has opaque origin', 'application/javascript', 'if (self.location.origin == "null") port.postMessage("PASS"); else { port.postMessage("FAIL"); }');
 </script>