Clean up after test_workerupdatefoundevent.html, no bug
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 05 May 2015 21:45:00 -0400
changeset 273874 5f0e9a84a57aa977ba43c52b6a809ccf0009f098
parent 273873 bf7256f12288f8444b608d447114cdfa44aab08c
child 273875 595411569f1ad3c89f5e1f1c9a93966a20b713b5
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone40.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
Clean up after test_workerupdatefoundevent.html, no bug
dom/workers/test/serviceworkers/test_workerupdatefoundevent.html
--- a/dom/workers/test/serviceworkers/test_workerupdatefoundevent.html
+++ b/dom/workers/test/serviceworkers/test_workerupdatefoundevent.html
@@ -50,16 +50,17 @@
                                             { scope: "./updatefoundevent.html" });
   }
 
   function waitForUpdateFound() {
     return promise;
   }
 
   function unregister() {
+    window.onmessage = null;
     return registration.unregister().then(function(result) {
       ok(result, "Unregister should return true.");
     });
   }
 
   function runTest() {
      start()
       .then(startWaitForUpdateFound)