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

Issue 2196633002: [ServiceWorker] Don't check the origin equality when disable-web-security flag is set. (Closed)

Created:
4 years, 4 months ago by horo
Modified:
4 years, 4 months ago
Reviewers:
shimazu, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_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] Don't check the origin equality when disable-web-security flag is set. When "disable-web-security" flag is set, we don't check the origin equality in Blink. So we shouldn't check it in content side. BUG=619294, 630495, 630496 Committed: https://crrev.com/c19aeb3cd6b368a2ba4e46bd76fefe42a7f11e44 Cr-Commit-Position: refs/heads/master@{#408948}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : add browser_tests #

Total comments: 20

Patch Set 4 : incorporated nhiroki and shimazu's comment #

Total comments: 2

Patch Set 5 : incorporated nhiroki's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -9 lines) Patch
M content/browser/service_worker/service_worker_browsertest.cc View 1 2 3 1 chunk +77 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_utils.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_utils.cc View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
A content/test/data/service_worker/disable_web_security_get_registration.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A content/test/data/service_worker/disable_web_security_register.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A content/test/data/service_worker/disable_web_security_unregister.html View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A content/test/data/service_worker/disable_web_security_update.html View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (26 generated)
horo
nhiroki@ Could you please review?
4 years, 4 months ago (2016-07-29 10:57:15 UTC) #15
nhiroki
+shimazu@ to reviewers
4 years, 4 months ago (2016-08-01 03:18:37 UTC) #19
nhiroki
https://codereview.chromium.org/2196633002/diff/40001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/2196633002/diff/40001/content/browser/service_worker/service_worker_browsertest.cc#newcode1919 content/browser/service_worker/service_worker_browsertest.cc:1919: Can you add a comment about what this test ...
4 years, 4 months ago (2016-08-01 04:32:45 UTC) #20
shimazu
https://codereview.chromium.org/2196633002/diff/40001/content/test/data/service_worker/disable_web_security_unregister.html File content/test/data/service_worker/disable_web_security_unregister.html (right): https://codereview.chromium.org/2196633002/diff/40001/content/test/data/service_worker/disable_web_security_unregister.html#newcode7 content/test/data/service_worker/disable_web_security_unregister.html:7: .then(reg => reg.unregister() ) Extra space before the last ...
4 years, 4 months ago (2016-08-01 05:06:21 UTC) #21
horo
https://codereview.chromium.org/2196633002/diff/40001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/2196633002/diff/40001/content/browser/service_worker/service_worker_browsertest.cc#newcode1919 content/browser/service_worker/service_worker_browsertest.cc:1919: On 2016/08/01 04:32:45, nhiroki wrote: > Can you add ...
4 years, 4 months ago (2016-08-01 07:40:56 UTC) #24
shimazu
lgtm
4 years, 4 months ago (2016-08-01 07:50:26 UTC) #25
nhiroki
lgtm with a nit https://codereview.chromium.org/2196633002/diff/60001/content/common/service_worker/service_worker_utils.cc File content/common/service_worker/service_worker_utils.cc (right): https://codereview.chromium.org/2196633002/diff/60001/content/common/service_worker/service_worker_utils.cc#newcode12 content/common/service_worker/service_worker_utils.cc:12: #include "content/public/common/content_switches.h" These inclusions are ...
4 years, 4 months ago (2016-08-01 08:21:25 UTC) #26
horo
Thank you! https://codereview.chromium.org/2196633002/diff/60001/content/common/service_worker/service_worker_utils.cc File content/common/service_worker/service_worker_utils.cc (right): https://codereview.chromium.org/2196633002/diff/60001/content/common/service_worker/service_worker_utils.cc#newcode12 content/common/service_worker/service_worker_utils.cc:12: #include "content/public/common/content_switches.h" On 2016/08/01 08:21:25, nhiroki wrote: ...
4 years, 4 months ago (2016-08-01 10:48:48 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2196633002/80001
4 years, 4 months ago (2016-08-01 10:49:07 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-01 12:43:12 UTC) #35
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 12:45:26 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c19aeb3cd6b368a2ba4e46bd76fefe42a7f11e44
Cr-Commit-Position: refs/heads/master@{#408948}

Powered by Google App Engine
This is Rietveld 408576698