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 : #Messages
Total messages: 26 (8 generated)
|