DescriptionTrack subresources with cert errors separately from mixed content
This is the final in a series of CLs to create dedicated plumbing for
subresources with certificate errors, instead of treating them like
mixed content from the browser's perspective.
Previously, when WebContentsImpl learned about a subresource with
certificate errors, it set its own DisplayedInsecureContent() flag for a
passive resource, or notified SSLManager::HostRanInsecureContent() about
an active subresource. This is the same set of mechanisms that was used
for subresources loaded over HTTP on HTTPS pages (mixed content).
In this CL, SSLManager, SSLPolicy, and SSLPolicyBackend get mechanisms
for tracking subresources with cert errors separately from mixed
content. WebContentsImpl also gets a DisplayedContentWithCertErrors()
flag separate from DisplayedInsecureContent() which it uses for mixed
content.
This separate set of plumbing allows browser UI to distinguish mixed
content from subresources with cert errors; for example, the DevTools
security panel should use a separate message to describe these two
different situations. (This CL does not actually make aforementioned
UI changes, but rather just sets up the plumbing to do so.)
#1: https://codereview.chromium.org/2224193003/
Rename SecurityStateModel::MIXED_CONTENT_STATUS enum values
#2: https://codereview.chromium.org/2224023003/
Teach SecurityStateModel about subresources with cert errors
#3: https://codereview.chromium.org/2225213004/
Teach SSLHostStateDelegate about subresources with cert errors
#4: https://codereview.chromium.org/2226363002/
(this CL)
BUG=634171, 636986
Committed: https://crrev.com/cd2e30cd6679e2249af296807d7270087879919d
Cr-Commit-Position: refs/heads/master@{#411564}
Patch Set 1 #
Total comments: 4
Patch Set 2 : rebase #Patch Set 3 : jam comments #Patch Set 4 : remove some more TODOs #Patch Set 5 : add comments #Messages
Total messages: 20 (14 generated)
|