diff --git a/dom/workers/test/serviceworkers/test_workerupdatefoundevent.html b/dom/workers/test/serviceworkers/test_workerupdatefoundevent.html index 7f2bcf1195e..3361eba08a3 100644 --- a/dom/workers/test/serviceworkers/test_workerupdatefoundevent.html +++ b/dom/workers/test/serviceworkers/test_workerupdatefoundevent.html @@ -55,6 +55,7 @@ } function unregister() { + window.onmessage = null; return registration.unregister().then(function(result) { ok(result, "Unregister should return true."); });