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

Issue 2926803002: Fix SSL indicator missing when doing fast back/forward navigations. (Closed)

Created:
3 years, 6 months ago by jam
Modified:
3 years, 6 months ago
Reviewers:
estark
CC:
chromium-reviews, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SSL indicator missing when doing fast back/forward navigations. This regressed in r415977, which was fixing the session restore case where a serialized NavigationEntry wouldn't have the SSLStatus. The race in the non-restore case happens because a previous DidStopLoading IPC clears the new NavigationHandle which does have the SSLStatus. In this case, the fix is to only copy the SSLStatus specifically in the restore case. BUG=727892 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation R=estark@chromium.org Review-Url: https://codereview.chromium.org/2926803002 . Cr-Commit-Position: refs/heads/master@{#477837} Committed: https://chromium.googlesource.com/chromium/src/+/db06e65dcd8da3f5b8cab60ecb32e9ba89c1598c

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (9 generated)
jam
I tried but not sure how to test this because of the raciness. Suggestions welcome.
3 years, 6 months ago (2017-06-07 17:23:54 UTC) #8
estark
On 2017/06/07 17:23:54, jam wrote: > I tried but not sure how to test this ...
3 years, 6 months ago (2017-06-08 00:19:59 UTC) #9
estark
https://codereview.chromium.org/2926803002/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2926803002/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1300 content/browser/frame_host/navigation_controller_impl.cc:1300: // Only copy the cert from the NavigationHandle since ...
3 years, 6 months ago (2017-06-08 00:20:40 UTC) #10
jam
Committed patchset #2 (id:40001) manually as db06e65dcd8da3f5b8cab60ecb32e9ba89c1598c (presubmit successful).
3 years, 6 months ago (2017-06-08 00:46:07 UTC) #13
jam
3 years, 6 months ago (2017-06-08 16:29:51 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2926803002/diff/1/content/browser/frame_host/...
File content/browser/frame_host/navigation_controller_impl.cc (right):

https://codereview.chromium.org/2926803002/diff/1/content/browser/frame_host/...
content/browser/frame_host/navigation_controller_impl.cc:1300: // Only copy the
cert from the NavigationHandle since this code path can
On 2017/06/08 00:20:40, estark (slow thru Jun8) wrote:
> Actually, hang on, sorry, this comment is a little confusing. Is this supposed
> to say "Only copy in the restore case since this code path..." ? 

Done.

Powered by Google App Engine
This is Rietveld 408576698