Loading
Bug 1378949 - Fix SW notification tests that assumed activated SW to wait for activation. r=bkelly
Bug 1378949 found test_notificationclick_focus.html timing out because the ServiceWorker activation raced the creation of an iframe document that wanted to be controlled by the serviceworker. The documents that wanted to be controlled had a half-hearted attempt at dealing with this by using navigator.serviceWorker.ready, but that would only work if the SW's attempted to claim the clients if they already existed, which they did not. This patch cleans up the defective test and its sibling tests that follow the same idioms. --HG-- extra : source : fb699d88bb80f27fbfd4805afc2e8feaa55964e0