Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Issue 1460653002: ServiceWorker: Fix messed registration attributes on ServiceWorkerGlobalScope (Closed)

Created:
5 years, 1 month ago by nhiroki
Modified:
5 years, 1 month ago
Reviewers:
falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, blink-reviews, horo+watch_chromium.org, kinuko+watch, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 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)
nhiroki
PTAL, thanks!
5 years, 1 month ago (2015-11-18 09:23:33 UTC) #3
falken
https://codereview.chromium.org/1460653002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html (right): https://codereview.chromium.org/1460653002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html#newcode56 third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html:56: var sawMessage = new Promise(function(resolve) { nit: saw_message https://codereview.chromium.org/1460653002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html#newcode96 ...
5 years, 1 month ago (2015-11-19 01:29:22 UTC) #5
falken
On 2015/11/19 01:29:22, falken wrote: > https://codereview.chromium.org/1460653002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html > File > third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html > (right): > > ...
5 years, 1 month ago (2015-11-19 01:30:33 UTC) #6
nhiroki
Thank you for reviewing! https://codereview.chromium.org/1460653002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html (right): https://codereview.chromium.org/1460653002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html#newcode56 third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/registration-attribute.html:56: var sawMessage = new Promise(function(resolve) ...
5 years, 1 month ago (2015-11-19 09:02:55 UTC) #7
falken
lgtm Thanks for explaining the approaches! I agree #3 sounds best, with TODOs in the ...
5 years, 1 month ago (2015-11-19 09:07:29 UTC) #8
nhiroki
Thank you! https://codereview.chromium.org/1460653002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js (right): https://codereview.chromium.org/1460653002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js#newcode4 third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/registration-attribute-worker.js:4: var events_seen = []; On 2015/11/19 09:07:29, ...
5 years, 1 month ago (2015-11-19 09:34:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1460653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1460653002/60001
5 years, 1 month ago (2015-11-19 09:35:19 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 1 month ago (2015-11-19 10:44:48 UTC) #13
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 10:45:33 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9cbeba1626fffae8cc657e63e44abc59dec84b17
Cr-Commit-Position: refs/heads/master@{#360557}

Powered by Google App Engine
This is Rietveld 408576698