Bug 1434599 - Enable test_workerupdatefoundevent.html. r=bkelly

This commit is contained in:
Catalin Badea 2018-01-31 14:04:38 +00:00
Родитель ae8b90234b
Коммит 78f34395e1
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -341,7 +341,6 @@ tags = openwindow
[test_workerUnregister.html] [test_workerUnregister.html]
[test_workerUpdate.html] [test_workerUpdate.html]
[test_workerupdatefoundevent.html] [test_workerupdatefoundevent.html]
skip-if = !e10s # Bug 1433276
[test_xslt.html] [test_xslt.html]
[test_async_waituntil.html] [test_async_waituntil.html]
[test_worker_reference_gc_timeout.html] [test_worker_reference_gc_timeout.html]

Просмотреть файл

@ -6,7 +6,9 @@
registration.onupdatefound = function(e) { registration.onupdatefound = function(e) {
clients.matchAll().then(function(clients) { clients.matchAll().then(function(clients) {
if (!clients.length) { if (!clients.length) {
reject("No clients found"); // We don't control any clients when the first update event is fired
// because we haven't reached the 'activated' state.
return;
} }
if (registration.scope.match(/updatefoundevent\.html$/)) { if (registration.scope.match(/updatefoundevent\.html$/)) {