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

Issue 877623002: [ServiceWorker] Fills SSLInfo of the response from a SW with the SSLInfo of the SW script. (Closed)

Created:
5 years, 11 months ago by horo
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, 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

[ServiceWorker] Fills SSLInfo of the response from a SW with the SSLInfo of the SW script. After https://codereview.chromium.org/874833003/, every mixed-content requests from the ServiceWorker are blocked. So we can show the HTTPS padlock because every responses from the ServiceWorker to the page are created using the resources which are served through the secure protocol. To show the padlock we fill the SSLInfo of the response from the ServiceWorker using the SSLInfo of the ServiceWorker script. When we support fetching mixed-content requests from the ServiceWorker in the future, we have to check the security level of the responses. BUG=392409 Committed: https://crrev.com/4bd0e01e3027e569f03b0cb18a46b72263f78a1d Cr-Commit-Position: refs/heads/master@{#314549}

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 6

Patch Set 3 : incorporated falken's comment #

Total comments: 2

Patch Set 4 : DCHECK(!http_response_info_); #

Total comments: 6

Patch Set 5 : incorporated rsleevi's comment #

Patch Set 6 : rebase #

Total comments: 14

Patch Set 7 : incorporated rsleevi's comment #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -47 lines) Patch
M content/browser/service_worker/service_worker_browsertest.cc View 1 2 3 4 5 6 5 chunks +107 lines, -39 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_read_from_cache_job.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_read_from_cache_job.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 5 6 3 chunks +16 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 2 3 4 3 chunks +16 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_unittests.isolate View 1 chunk +1 line, -0 lines 0 comments Download
A + content/test/data/service_worker/fetch_event_blob.js View 1 chunk +5 lines, -5 lines 0 comments Download
A + content/test/data/service_worker/fetch_event_blob.js.mock-http-headers View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
horo
falken@ Could you please review this?
5 years, 11 months ago (2015-01-27 02:06:03 UTC) #5
falken
This looks pretty good, just have some questions. Also, I think you should get this ...
5 years, 11 months ago (2015-01-27 03:57:54 UTC) #6
horo
Thank you! https://codereview.chromium.org/877623002/diff/80001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/877623002/diff/80001/content/browser/service_worker/service_worker_browsertest.cc#newcode806 content/browser/service_worker/service_worker_browsertest.cc:806: IN_PROC_BROWSER_TEST_F(ServiceWorkerBrowserTest, Secure) { On 2015/01/27 03:57:54, falken ...
5 years, 11 months ago (2015-01-27 06:04:41 UTC) #7
falken
lgtm https://codereview.chromium.org/877623002/diff/100001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/877623002/diff/100001/content/browser/service_worker/service_worker_url_request_job.cc#newcode544 content/browser/service_worker/service_worker_url_request_job.cc:544: // ServiceWorker, we have to check the security ...
5 years, 11 months ago (2015-01-27 06:39:58 UTC) #8
horo
https://codereview.chromium.org/877623002/diff/100001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/877623002/diff/100001/content/browser/service_worker/service_worker_url_request_job.cc#newcode544 content/browser/service_worker/service_worker_url_request_job.cc:544: // ServiceWorker, we have to check the security level ...
5 years, 11 months ago (2015-01-27 06:48:15 UTC) #9
horo
rsleevi@ Could you please review this?
5 years, 11 months ago (2015-01-27 06:49:19 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/877623002/diff/120001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/877623002/diff/120001/content/browser/service_worker/service_worker_url_request_job.cc#newcode548 content/browser/service_worker/service_worker_url_request_job.cc:548: provider_host_->active_version()->GetMainScriptSSLInfo(); Why do you only copy the SSLInfo? Why ...
5 years, 11 months ago (2015-01-28 01:04:03 UTC) #12
horo
https://codereview.chromium.org/877623002/diff/120001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/877623002/diff/120001/content/browser/service_worker/service_worker_url_request_job.cc#newcode548 content/browser/service_worker/service_worker_url_request_job.cc:548: provider_host_->active_version()->GetMainScriptSSLInfo(); On 2015/01/28 01:04:02, Ryan Sleevi wrote: > Why ...
5 years, 11 months ago (2015-01-28 02:32:06 UTC) #14
horo
rsleevi@ Ping?
5 years, 10 months ago (2015-01-30 02:00:27 UTC) #15
Ryan Sleevi
Apologies! I thought I published these comments already. https://codereview.chromium.org/877623002/diff/180001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/877623002/diff/180001/content/browser/service_worker/service_worker_browsertest.cc#newcode814 content/browser/service_worker/service_worker_browsertest.cc:814: const ...
5 years, 10 months ago (2015-01-30 23:20:44 UTC) #16
horo
https://codereview.chromium.org/877623002/diff/180001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/877623002/diff/180001/content/browser/service_worker/service_worker_browsertest.cc#newcode814 content/browser/service_worker/service_worker_browsertest.cc:814: const std::string kPageUrl = "files/service_worker/fetch_event_blob.html"; On 2015/01/30 23:20:43, Ryan ...
5 years, 10 months ago (2015-01-31 08:34:07 UTC) #17
Ryan Sleevi
lgtm https://codereview.chromium.org/877623002/diff/200001/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/877623002/diff/200001/content/browser/service_worker/service_worker_version.h#newcode301 content/browser/service_worker/service_worker_version.h:301: // from the ServiceWorker to the page to ...
5 years, 10 months ago (2015-02-02 19:39:07 UTC) #18
horo
Thank you! https://codereview.chromium.org/877623002/diff/200001/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/877623002/diff/200001/content/browser/service_worker/service_worker_version.h#newcode301 content/browser/service_worker/service_worker_version.h:301: // from the ServiceWorker to the page ...
5 years, 10 months ago (2015-02-02 20:04:28 UTC) #19
horo
jochen@ Could you please review the change in content/content_unittests.isolate? ServiceWorkerURLRequestJobTest uses /net/data/ssl/certificates/ok_cert.pem.
5 years, 10 months ago (2015-02-02 20:07:11 UTC) #21
jochen (gone - plz use gerrit)
lgtm
5 years, 10 months ago (2015-02-04 12:35:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877623002/220001
5 years, 10 months ago (2015-02-04 12:50:20 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:220001)
5 years, 10 months ago (2015-02-04 12:53:53 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 12:54:48 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4bd0e01e3027e569f03b0cb18a46b72263f78a1d
Cr-Commit-Position: refs/heads/master@{#314549}

Powered by Google App Engine
This is Rietveld 408576698