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

Issue 1004283004: Destroy SSLErrorHandler on new navigations so that it can properly be recreated. (Closed)

Created:
5 years, 9 months ago by meacer
Modified:
5 years, 9 months ago
Reviewers:
mmenke
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Destroy SSLErrorHandler on new navigations so that it can properly be recreated. Since |SSLErrorHandler| was a |WebContentsUserData| tied to the lifetime of a |WebContents|, it wasn't properly deleted when the |WebContents| was reloaded or navigated to another page. This CL removes the error handler explicitly and adds browser tests to assert reload/navigate behavior. BUG=453875 Committed: https://crrev.com/d2c91b4a8ba7e7b715a70f4deaafee3b468349c0 Cr-Commit-Position: refs/heads/master@{#321603}

Patch Set 1 #

Patch Set 2 : Deny the cert to fix the memory leak #

Total comments: 10

Patch Set 3 : mmenke comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -42 lines) Patch
M chrome/browser/captive_portal/captive_portal_browsertest.cc View 1 2 8 chunks +136 lines, -40 lines 0 comments Download
M chrome/browser/ssl/ssl_error_handler.h View 1 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_error_handler.cc View 1 2 3 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
meacer
mmenke: Can you PTAL? Thanks.
5 years, 9 months ago (2015-03-17 21:04:27 UTC) #2
mmenke
LGTM https://codereview.chromium.org/1004283004/diff/20001/chrome/browser/captive_portal/captive_portal_browsertest.cc File chrome/browser/captive_portal/captive_portal_browsertest.cc (right): https://codereview.chromium.org/1004283004/diff/20001/chrome/browser/captive_portal/captive_portal_browsertest.cc#newcode820 chrome/browser/captive_portal/captive_portal_browsertest.cc:820: // Waits until the interstitial delay timer in ...
5 years, 9 months ago (2015-03-20 13:33:50 UTC) #3
mmenke
And sorry for the delay. Been sick. :(
5 years, 9 months ago (2015-03-20 13:34:08 UTC) #4
meacer
Thanks, hope you are feeling better! https://codereview.chromium.org/1004283004/diff/20001/chrome/browser/captive_portal/captive_portal_browsertest.cc File chrome/browser/captive_portal/captive_portal_browsertest.cc (right): https://codereview.chromium.org/1004283004/diff/20001/chrome/browser/captive_portal/captive_portal_browsertest.cc#newcode820 chrome/browser/captive_portal/captive_portal_browsertest.cc:820: // Waits until ...
5 years, 9 months ago (2015-03-20 17:46:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1004283004/40001
5 years, 9 months ago (2015-03-20 17:46:56 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-20 18:34:51 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 18:35:46 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d2c91b4a8ba7e7b715a70f4deaafee3b468349c0
Cr-Commit-Position: refs/heads/master@{#321603}

Powered by Google App Engine
This is Rietveld 408576698