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

Issue 2940563002: Fix SW tests with servicification (Closed)

Created:
3 years, 6 months ago by kinuko
Modified:
3 years, 6 months ago
Reviewers:
falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SW tests with servicification Instead of disabling SW interception entirely just make IsControlledByServiceWorker false for subresources for now (to avoid undesirable DCHECKs). BUG=715640 TEST=ServiceWorkerDisableWebSecurityTest.RegisterNoCrash,ServiceWorkerDisableWebSecurityTest.GetRegistrationNoCrash with --enable-network-service Review-Url: https://codereview.chromium.org/2940563002 Cr-Commit-Position: refs/heads/master@{#478958} Committed: https://chromium.googlesource.com/chromium/src/+/9061a92f5c2d505e792cf02ec95dcac8946298df

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -12 lines) Patch
M content/child/service_worker/service_worker_network_provider.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 3 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
kinuko
PTL (manually ran tests)
3 years, 6 months ago (2017-06-13 05:38:30 UTC) #5
falken
https://codereview.chromium.org/2940563002/diff/1/content/child/service_worker/service_worker_network_provider.cc File content/child/service_worker/service_worker_network_provider.cc (right): https://codereview.chromium.org/2940563002/diff/1/content/child/service_worker/service_worker_network_provider.cc#newcode72 content/child/service_worker/service_worker_network_provider.cc:72: !provider_->IsControlledByServiceWorker() && Seems likely this should use IsControlledByServiceWorker() instead? ...
3 years, 6 months ago (2017-06-13 05:48:47 UTC) #6
kinuko
Thanks! https://codereview.chromium.org/2940563002/diff/1/content/child/service_worker/service_worker_network_provider.cc File content/child/service_worker/service_worker_network_provider.cc (right): https://codereview.chromium.org/2940563002/diff/1/content/child/service_worker/service_worker_network_provider.cc#newcode72 content/child/service_worker/service_worker_network_provider.cc:72: !provider_->IsControlledByServiceWorker() && On 2017/06/13 05:48:47, falken wrote: > ...
3 years, 6 months ago (2017-06-13 06:45:55 UTC) #7
falken
lgtm
3 years, 6 months ago (2017-06-13 06:47:38 UTC) #8
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/2940563002/20001
3 years, 6 months ago (2017-06-13 06:49:11 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 10:31:36 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/9061a92f5c2d505e792cf02ec95d...

Powered by Google App Engine
This is Rietveld 408576698