DescriptionService Worker: Fix getRegistrations.html layout test.
Serialize the registration and unregistration sequence between top-level window
and its iframe so that the registration object in the iframe cannot be
derefenced before created.
Also this CL improves the performace of the registration purging operations at
the beginning of the test by using Promise.all(unreg_promises) instead of
serializing the promises. It should be noted that registration.unregister()
promises resolve before the corresponding registrations are actually deleted
from the storage as per spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#unregister-algorithm.
Thus this test made the registration purging step be waiting until the
corresponding registrations are actually deleted from the storage.
BUG=502125
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197899
Patch Set 1 #Patch Set 2 : Remove lines from TestExpectations and SlowTests. #Patch Set 3 : Make sure purging registrations complete before other tests. #
Total comments: 2
Patch Set 4 : Add a comment to explain the behavior of registration.unregister() in the test. #
Total comments: 2
Patch Set 5 : Rebase. #
Messages
Total messages: 26 (11 generated)
|