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

Issue 1872243002: ServiceWorker: Check the equality of JS-level SW/SWR objects (Closed)

Created:
4 years, 8 months ago by shimazu (google)
Modified:
4 years, 8 months ago
Reviewers:
falken, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Check the equality of JS-level SW/SWR objects This test checks if the series of |registration.installing|, |registration.waiting| and |registration.active| are the same when installing a new service worker. I update the equality check to compare the object itself instead of scriptURL because the spec explicitly shows object level equality now. Additionally, this test fails on Firefox 45.0 due to mismatching of JS-level equality of each service worker object. BUG=594032 Committed: https://crrev.com/ece7c41ea8ca49b959f12576284e4966a25d3606 Cr-Commit-Position: refs/heads/master@{#387875}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Remove unnecessary logs, fix messages and resolve the race condition #

Total comments: 8

Patch Set 3 : Use promise_test and make synced-state.html deterministic order #

Total comments: 4

Patch Set 4 : Fix indent and add add_completion_callback to reclaim the registration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -31 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html View 1 2 3 5 chunks +11 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html View 1 2 3 1 chunk +39 lines, -22 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
shimazu (google)
PTAL
4 years, 8 months ago (2016-04-11 05:24:07 UTC) #2
nhiroki
https://codereview.chromium.org/1872243002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html (right): https://codereview.chromium.org/1872243002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html#newcode19 third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html:19: var state = e.currentTarget.state; unused? https://codereview.chromium.org/1872243002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html#newcode21 third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html:21: console.log(registration); Can ...
4 years, 8 months ago (2016-04-11 06:15:24 UTC) #3
shimazu (google)
PTAL again:) https://codereview.chromium.org/1872243002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html (right): https://codereview.chromium.org/1872243002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html#newcode19 third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html:19: var state = e.currentTarget.state; On 2016/04/11 06:15:24, ...
4 years, 8 months ago (2016-04-11 07:21:08 UTC) #4
nhiroki
https://codereview.chromium.org/1872243002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html (right): https://codereview.chromium.org/1872243002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html#newcode8 third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html:8: function multiple_resolver(num_of_waiter, resolve) { Optional: 'barrier' (barrier_resolver?) would be ...
4 years, 8 months ago (2016-04-13 05:44:10 UTC) #5
shimazu (google)
Incorporated the reviews. PTAL again:) https://codereview.chromium.org/1872243002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html (right): https://codereview.chromium.org/1872243002/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html#newcode8 third_party/WebKit/LayoutTests/http/tests/serviceworker/synced-state.html:8: function multiple_resolver(num_of_waiter, resolve) { ...
4 years, 8 months ago (2016-04-15 05:19:03 UTC) #6
nhiroki
Looks good. Minor comments only. https://codereview.chromium.org/1872243002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html (right): https://codereview.chromium.org/1872243002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html#newcode15 third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html:15: registration = r; Can ...
4 years, 8 months ago (2016-04-18 03:26:53 UTC) #7
shimazu (google)
Thanks, I update. https://codereview.chromium.org/1872243002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html (right): https://codereview.chromium.org/1872243002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html#newcode15 third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.html:15: registration = r; On 2016/04/18 03:26:53, ...
4 years, 8 months ago (2016-04-18 06:39:13 UTC) #8
nhiroki
lgtm
4 years, 8 months ago (2016-04-18 06:41:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872243002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872243002/60001
4 years, 8 months ago (2016-04-18 06:43:42 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-18 09:27:03 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 09:28:39 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ece7c41ea8ca49b959f12576284e4966a25d3606
Cr-Commit-Position: refs/heads/master@{#387875}

Powered by Google App Engine
This is Rietveld 408576698