Bug 1340474 - Fix instability in data url test caused by random behaviour of whitespace in URL, a=testonly
authorJames Graham <james@hoppipolla.co.uk>
Thu, 16 Feb 2017 15:43:45 +0000
changeset 343887 aba21941839754cf99863ef894d59fa745daf56f
parent 343886 0bb36aae3dfe06f7a2d185d8853ba018bcc003e1
child 343888 622b8716f80f2e2042808ae8c67e2e6e7196e586
push id31391
push userphilringnalda@gmail.com
push dateTue, 21 Feb 2017 04:29:09 +0000
treeherdermozilla-central@d84beb192e57 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1340474
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>