Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Issue 2327163002: Fix SSLUITest.BadCertFollowedByGoodCert with PlzNavigate. (Closed)

Created:
4 years, 3 months ago by jam
Modified:
4 years, 3 months ago
Reviewers:
scottmg
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, creis+watch_chromium.org, tburkard+watch_chromium.org, nasko+codewatch_chromium.org, jam, Randy Smith (Not in Mondays), gavinp+prer_chromium.org, darin-cc_chromium.org, loading-reviews_chromium.org, chromium-apps-reviews_chromium.org, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SSLUITest.BadCertFollowedByGoodCert with PlzNavigate. The notifications from ResourceDispatcherHostImpl to WebContents were using a RenderFrameHost ID to find the WebContents. Switch it to using the WebContentsGetter. The only issue I ran into was that calculating the data for the LoadStateChanged callback correctly meant that it had to be done on teh UI thread (so that we can compare navigation requests with subresource requests). Since RDH has to hop to the UI thread to calculate this, there's no point to hopping back to the IO thread to call its delegate which would then hop back to the UI thread, so I changed the delegate method to be called on the UI thread. BUG=504347 Committed: https://crrev.com/73f8926484f8e12b1348e6daecaa198f8336956a Cr-Commit-Position: refs/heads/master@{#417855}

Patch Set 1 #

Patch Set 2 : fix unittests #

Total comments: 4

Patch Set 3 : fix unittests #

Patch Set 4 : add comment #

Patch Set 5 : clang #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -319 lines) Patch
M chrome/browser/extensions/api/identity/web_auth_flow.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/web_auth_flow.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/loader_delegate.h View 3 chunks +12 lines, -13 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 chunks +25 lines, -7 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 chunks +73 lines, -42 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 7 chunks +129 lines, -139 lines 0 comments Download
M content/browser/loader_delegate_impl.h View 1 chunk +8 lines, -10 lines 0 comments Download
M content/browser/loader_delegate_impl.cc View 3 chunks +17 lines, -42 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 2 chunks +6 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 3 chunks +23 lines, -24 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/web_contents_observer_sanity_checker.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (21 generated)
jam
4 years, 3 months ago (2016-09-09 23:49:17 UTC) #9
scottmg
https://codereview.chromium.org/2327163002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2327163002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2419 content/browser/loader/resource_dispatcher_host_impl.cc:2419: std::unique_ptr<ResourceDispatcherHostImpl::LoadInfoMap> // static https://codereview.chromium.org/2327163002/diff/20001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/2327163002/diff/20001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode3424 content/browser/loader/resource_dispatcher_host_unittest.cc:3424: ...
4 years, 3 months ago (2016-09-10 00:14:36 UTC) #12
jam
https://codereview.chromium.org/2327163002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2327163002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2419 content/browser/loader/resource_dispatcher_host_impl.cc:2419: std::unique_ptr<ResourceDispatcherHostImpl::LoadInfoMap> On 2016/09/10 00:14:35, scottmg wrote: > // static ...
4 years, 3 months ago (2016-09-10 00:24:15 UTC) #15
scottmg
lgtm
4 years, 3 months ago (2016-09-10 00:48:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2327163002/80001
4 years, 3 months ago (2016-09-11 04:41:02 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-11 06:04:26 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-11 06:06:31 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/73f8926484f8e12b1348e6daecaa198f8336956a
Cr-Commit-Position: refs/heads/master@{#417855}

Powered by Google App Engine
This is Rietveld 408576698