Chromium Code Reviews
DescriptionAdd separate plumbing for subresources with certificate errors
Previously, when subresources were loaded over connections with
certificate errors, WebContents treated them the same as mixed content
(subresources loaded over HTTP). While this sort of approximately worked
for a while, it was messy and is starting to create problems. For
example, once WebContents is notified that insecure resources have been
loaded, it notifies DevTools to update the security panel -- but by that
point, we had lost information about whether the insecure resource was
mixed content or broken HTTPS, so DevTools can't distinguish them in the
UI.
There was also an ugly hack in place to stop the renderer from notifying
the browser about same-origin broken HTTPS subresources, to stop the
browser from marking a page as mixed content after clicking through an
interstitial. That hack was removed in https://codereview.chromium.org/2191113002
which means that all pages with certificate errors get marked as having
mixed content now if they load subresources.
This CL creates plumbing for certificate error subresources that is
parallel to the mixed content plumbing, and uses that now instead of
reusing the mixed content plumbing.
At the moment, cert error subresources only affect the lock icon, but
follow-up CLs will adapt WebsiteSettings and DevTools to describe when
the page has loaded content with certificate errors.
BUG=634171
Patch Set 1 #Patch Set 2 : update content browser tests #Patch Set 3 : android build fixes #Patch Set 4 : fix typo #Messages
Total messages: 20 (18 generated)
|