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

Issue 1914593002: Limit requests for which link headers can install service workers to secure contexts. (Closed)

Created:
4 years, 8 months ago by Marijn Kruisselbrink
Modified:
4 years, 6 months ago
Reviewers:
kinuko
CC:
blink-worker-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, loading-reviews_chromium.org, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Limit requests for which link headers can install service workers to secure contexts. Main resource requests are only allowed if the context will become a secure context (as decided by ServiceWorkerProviderHost::IsContextSecureForServiceWorker), while for subresources what matters is if the request was made from a secure context. BUG=582310 Committed: https://crrev.com/db276dcdee7a1b993483f5fcc706e77e8e2542c4 Cr-Commit-Position: refs/heads/master@{#401902}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : add more tests #

Total comments: 8

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -52 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/service_worker/link_header_support.cc View 1 2 2 chunks +14 lines, -8 lines 0 comments Download
M content/browser/service_worker/link_header_support_unittest.cc View 1 2 3 4 10 chunks +151 lines, -33 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Marijn Kruisselbrink
4 years, 6 months ago (2016-06-22 18:50:00 UTC) #4
kinuko
mostly looking good, some nits https://codereview.chromium.org/1914593002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1914593002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2264 content/browser/loader/resource_dispatcher_host_impl.cc:2264: false); // initiated_in_secure_context when ...
4 years, 6 months ago (2016-06-23 14:42:27 UTC) #5
Marijn Kruisselbrink
https://codereview.chromium.org/1914593002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1914593002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2264 content/browser/loader/resource_dispatcher_host_impl.cc:2264: false); // initiated_in_secure_context On 2016/06/23 at 14:42:27, kinuko wrote: ...
4 years, 6 months ago (2016-06-23 18:02:02 UTC) #6
kinuko
lgtm.
4 years, 6 months ago (2016-06-24 10:01:29 UTC) #7
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/1914593002/100001
4 years, 6 months ago (2016-06-24 16:24:36 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 6 months ago (2016-06-24 17:54:37 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 17:57:23 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/db276dcdee7a1b993483f5fcc706e77e8e2542c4
Cr-Commit-Position: refs/heads/master@{#401902}

Powered by Google App Engine
This is Rietveld 408576698