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

Issue 1415923015: Downgrade lock icon for broken-HTTPS subresources (Closed)

Created:
5 years, 1 month ago by estark
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Downgrade lock icon for broken-HTTPS subresources This CL attaches a boolean to resource responses to indicate if they have certificate errors. If Blink sees a resource with a cert error, it notifies the renderer via FrameLoaderClient, who then notifies the browser, who treats the situation like mixed content. The browser (//content) ignores subresources with cert errors on HTTP pages, and subresources with the same cert errors as the main resource. This allows embedders to distinguish broken-HTTPS foo.com with a subresource from broken-HTTPS bar.com and broken-HTTPS foo.com with a subresource from broken-HTTPS foo.com. BUG=477868 Committed: https://crrev.com/8bfb78c859ab5993eada6db30e4de50aa7403f1c Cr-Commit-Position: refs/heads/master@{#362246}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : add tests #

Patch Set 4 : rebase #

Patch Set 5 : remove unnecessary includes #

Total comments: 42

Patch Set 6 : jww comments #

Patch Set 7 : add MixedContentChecker unit test #

Total comments: 11

Patch Set 8 : mkwst comments #

Patch Set 9 : missing #incldue #

Total comments: 2

Patch Set 10 : dcheng comment #

Patch Set 11 : remove console message; see comment to mike #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -64 lines) Patch
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 4 chunks +69 lines, -36 lines 0 comments Download
A chrome/test/data/ssl/page_with_dynamic_unsafe_image.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/ssl/page_with_unsafe_image.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/bad_message.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_manager.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/ssl/ssl_policy.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/ssl/ssl_policy.cc View 1 2 3 4 5 2 chunks +7 lines, -11 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 3 chunks +40 lines, -3 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 1 chunk +14 lines, -1 line 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/resource_response.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 3 chunks +60 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLResponse.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.h View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.cpp View 1 2 3 4 5 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLResponse.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
estark
jww: do you think you could take a first pass at reviewing this? It implements ...
5 years, 1 month ago (2015-11-19 23:28:56 UTC) #2
jww
Woo-hoo! Thank you so much for putting in the effort on this one. This is ...
5 years, 1 month ago (2015-11-20 01:25:09 UTC) #3
estark
Thanks for the review, jww! I did most of what you suggested but had a ...
5 years, 1 month ago (2015-11-23 23:40:24 UTC) #4
estark
added a MixedContentChecker unit test
5 years ago (2015-11-25 00:18:08 UTC) #5
jww
lgtm, thanks! https://codereview.chromium.org/1415923015/diff/80001/content/browser/ssl/ssl_manager.cc File content/browser/ssl/ssl_manager.cc (right): https://codereview.chromium.org/1415923015/diff/80001/content/browser/ssl/ssl_manager.cc#newcode141 content/browser/ssl/ssl_manager.cc:141: if (!entry || !entry->GetSSL().cert_id) On 2015/11/23 23:40:24, ...
5 years ago (2015-11-25 19:24:03 UTC) #6
estark
Thanks Joel! Mike, another one for you take a look at when you have a ...
5 years ago (2015-11-25 19:43:55 UTC) #8
Mike West
The Blink side of things LGTM % comments. I haven't looked at the content side, ...
5 years ago (2015-11-27 05:30:38 UTC) #9
estark
Thanks Mike! jochen: do you think you could review the content/ part of this? https://codereview.chromium.org/1415923015/diff/120001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp ...
5 years ago (2015-11-28 02:46:56 UTC) #11
dcheng
Drive by https://codereview.chromium.org/1415923015/diff/160001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1415923015/diff/160001/third_party/WebKit/public/web/WebFrameClient.h#newcode454 third_party/WebKit/public/web/WebFrameClient.h:454: // This frame has run inactive content ...
5 years ago (2015-11-28 09:52:11 UTC) #12
jochen (gone - plz use gerrit)
lgtm
5 years ago (2015-11-30 15:53:50 UTC) #13
estark
Thanks jochen. https://codereview.chromium.org/1415923015/diff/120001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp File third_party/WebKit/Source/core/loader/MixedContentChecker.cpp (right): https://codereview.chromium.org/1415923015/diff/120001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp#newcode476 third_party/WebKit/Source/core/loader/MixedContentChecker.cpp:476: } On 2015/11/28 02:46:56, estark wrote: > ...
5 years ago (2015-11-30 18:13:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415923015/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415923015/200001
5 years ago (2015-11-30 21:14:48 UTC) #17
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years ago (2015-11-30 22:39:58 UTC) #18
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/8bfb78c859ab5993eada6db30e4de50aa7403f1c Cr-Commit-Position: refs/heads/master@{#362246}
5 years ago (2015-11-30 22:40:49 UTC) #20
estark
5 years ago (2015-12-05 00:21:32 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/1497423002/ by estark@chromium.org.

The reason for reverting is: Speculatively reverting to see if it makes
https://code.google.com/p/chromium/issues/detail?id=565540 go away.

Powered by Google App Engine
This is Rietveld 408576698