Backed out changeset 87ef5029dd10 (bug 1434599) for failing in dom/serviceworkers/test/test_workerupdatefoundevent.html on a CLOSED TREE
authorNoemi Erli <nerli@mozilla.com>
Wed, 31 Jan 2018 21:18:05 +0200
changeset 401792 86d833310227b6d5590fc361adb5e88f9b4310d7
parent 401791 0aa3298451dc7d725b1d98deb9461ae190cd635d
child 401794 94d801165c4561d416204a78928c65ff79b3f0d9
push id99437
push usernerli@mozilla.com
push dateWed, 31 Jan 2018 19:18:30 +0000
treeherdermozilla-inbound@86d833310227 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1434599
milestone60.0a1
backs out87ef5029dd107d0de4fbd9ff336128d0596a7dc2
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
Backed out changeset 87ef5029dd10 (bug 1434599) for failing in dom/serviceworkers/test/test_workerupdatefoundevent.html on a CLOSED TREE
dom/serviceworkers/test/mochitest.ini
dom/serviceworkers/test/worker_updatefoundevent.js
--- a/dom/serviceworkers/test/mochitest.ini
+++ b/dom/serviceworkers/test/mochitest.ini
@@ -336,15 +336,16 @@ tags = openwindow
 [test_strict_mode_warning.html]
 [test_third_party_iframes.html]
 [test_unregister.html]
 [test_unresolved_fetch_interception.html]
 [test_update_missing_imported_script.html]
 [test_workerUnregister.html]
 [test_workerUpdate.html]
 [test_workerupdatefoundevent.html]
+skip-if = !e10s # Bug 1433276
 [test_xslt.html]
 [test_async_waituntil.html]
 [test_worker_reference_gc_timeout.html]
 [test_nofetch_handler.html]
 [test_bad_script_cache.html]
 [test_file_upload.html]
 support-files = script_file_upload.js sw_file_upload.js server_file_upload.sjs
--- a/dom/serviceworkers/test/worker_updatefoundevent.js
+++ b/dom/serviceworkers/test/worker_updatefoundevent.js
@@ -1,19 +1,17 @@
 /**
  * Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
 registration.onupdatefound = function(e) {
   clients.matchAll().then(function(clients) {
     if (!clients.length) {
-      // We don't control any clients when the first update event is fired
-      // because we haven't reached the 'activated' state.
-      return;
+      reject("No clients found");
     }
 
     if (registration.scope.match(/updatefoundevent\.html$/)) {
       clients[0].postMessage("finish");
     } else {
       dump("Scope did not match");
     }
   });