Service worker: Update usecounter.html test.
This test is flaky with the ServiceWorker servicification More details in https://crbug.com/808964. The previous test was checking the UseCounter immediatly after a new window loads. It is racy because the UseCounter state is sent in ServiceWorkerProviderHost::SendSetControllerServiceWorker(). In the case of a very slow browser process, it can happens after the new window loads. Instead of checking the UseCounter state after a window loads, it uses an observer to wait until its state is updated. Bug: 808964 Change-Id: I53c2bf2775a837a3a4b0c6cf9b196f26fe7b7f5e Reviewed-on: https://chromium-review.googlesource.com/901610Reviewed-by:Matt Falkenhagen <falken@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#534667}
Showing
Please register or sign in to comment