Bug 1369874 Make fetch-response-xhr.https.html not depend on window.event. r=asuth
authorBen Kelly <ben@wanderview.com>
Tue, 06 Jun 2017 08:19:10 -0700
changeset 410713 e7350c586234cdf818fde0f5e31575d86178c5e1
parent 410712 f781899dd0257002f806927a3474261aae3deafb
child 410714 f09499d7310cf8d3caeed2a023dd24207ce46b02
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1369874
milestone55.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 1369874 Make fetch-response-xhr.https.html not depend on window.event. r=asuth
testing/web-platform/meta/service-workers/service-worker/fetch-response-xhr.https.html.ini
testing/web-platform/tests/service-workers/service-worker/resources/fetch-response-xhr-iframe.https.html
deleted file mode 100644
--- a/testing/web-platform/meta/service-workers/service-worker/fetch-response-xhr.https.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[fetch-response-xhr.https.html]
-  type: testharness
-  expected: TIMEOUT
-  [Verify the response of FetchEvent using XMLHttpRequest]
-    expected: TIMEOUT
-
--- a/testing/web-platform/tests/service-workers/service-worker/resources/fetch-response-xhr-iframe.https.html
+++ b/testing/web-platform/tests/service-workers/service-worker/resources/fetch-response-xhr-iframe.https.html
@@ -21,31 +21,31 @@ function xhr_send(method, data) {
 function coalesce_headers_test() {
   return xhr_send('POST', 'test string')
   .then(function(xhr) {
       window.parent.postMessage({results: xhr.getResponseHeader('foo')},
                                 host_info['HTTPS_ORIGIN']);
 
       return new Promise(function(resolve) {
           window.addEventListener('message', function handle(evt) {
-              if (event.data !== 'ACK') {
+              if (evt.data !== 'ACK') {
                 return;
               }
 
               window.removeEventListener('message', handle);
               resolve();
             });
         });
     });
 }
 
 window.addEventListener('message', function(evt) {
     var port;
 
-    if (event.data !== 'START') {
+    if (evt.data !== 'START') {
       return;
     }
 
     port = evt.ports[0];
 
     coalesce_headers_test()
       .then(function() { port.postMessage({results: 'finish'}); })
       .catch(function(e) { port.postMessage({results: 'failure:' + e}); });