From 7c3f6909e29751fabc80c1f4e69a1bae1e33548c Mon Sep 17 00:00:00 2001 From: Noemi Erli Date: Wed, 31 Jan 2018 21:18:05 +0200 Subject: [PATCH] Backed out changeset 87ef5029dd10 (bug 1434599) for failing in dom/serviceworkers/test/test_workerupdatefoundevent.html on a CLOSED TREE --- dom/serviceworkers/test/mochitest.ini | 1 + dom/serviceworkers/test/worker_updatefoundevent.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dom/serviceworkers/test/mochitest.ini b/dom/serviceworkers/test/mochitest.ini index db8d10451bb1..4a7a7c4dd7bd 100644 --- a/dom/serviceworkers/test/mochitest.ini +++ b/dom/serviceworkers/test/mochitest.ini @@ -341,6 +341,7 @@ tags = openwindow [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] diff --git a/dom/serviceworkers/test/worker_updatefoundevent.js b/dom/serviceworkers/test/worker_updatefoundevent.js index b06c77c1e9c4..9a174943ecd0 100644 --- a/dom/serviceworkers/test/worker_updatefoundevent.js +++ b/dom/serviceworkers/test/worker_updatefoundevent.js @@ -6,9 +6,7 @@ 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$/)) {