DescriptionServiceWorker: Fix messed registration attributes on ServiceWorkerGlobalScope
This is the fix for regression introduced by
https://codereview.chromium.org/1344783002
After the CL, SWProviderContext::ControllerDelegate::AssociateRegistration()
wrongly set its |installing_| field to the active worker and |active_| field
to nullptr. These messed fields eventually show up as
ServiceWorkerGlobalScope.registration's version attributes.
This CL fixes the wrong field assignment and adds layout tests.
BUG=532098, 557551
Committed: https://crrev.com/9cbeba1626fffae8cc657e63e44abc59dec84b17
Cr-Commit-Position: refs/heads/master@{#360557}
Patch Set 1 : #
Total comments: 7
Patch Set 2 : address comments #
Total comments: 2
Patch Set 3 : add comments #
Messages
Total messages: 14 (5 generated)
|