[ServiceWorker] Fills SSLInfo of the response from a SW with the SSLInfo of the SW...
commit4bd0e01e3027e569f03b0cb18a46b72263f78a1d
authorhoro <horo@chromium.org>
Wed, 4 Feb 2015 12:53:25 +0000 (4 04:53 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 Feb 2015 12:54:12 +0000 (4 12:54 +0000)
tree148d75462325db28736bbebcc290637704bbaa88
parente63cb64457a53eaaf4aa6637f0a7e1847ebea109
[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

Review URL: https://codereview.chromium.org/877623002

Cr-Commit-Position: refs/heads/master@{#314549}
13 files changed:
content/browser/service_worker/service_worker_browsertest.cc
content/browser/service_worker/service_worker_context_request_handler.cc
content/browser/service_worker/service_worker_read_from_cache_job.cc
content/browser/service_worker/service_worker_read_from_cache_job.h
content/browser/service_worker/service_worker_url_request_job.cc
content/browser/service_worker/service_worker_url_request_job.h
content/browser/service_worker/service_worker_url_request_job_unittest.cc
content/browser/service_worker/service_worker_version.cc
content/browser/service_worker/service_worker_version.h
content/browser/service_worker/service_worker_write_to_cache_job.cc
content/content_unittests.isolate
content/test/data/service_worker/fetch_event_blob.js [new file with mode: 0644]
content/test/data/service_worker/fetch_event_blob.js.mock-http-headers [new file with mode: 0644]