ServiceWorker: 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 Review URL: https://codereview.chromium.org/1460653002 Cr-Commit-Position: refs/heads/master@{#360557}
Showing
Please register or sign in to comment