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

Issue 330583002: Plausible fix for crash in GetCertificateChain. (Closed)

Created:
6 years, 6 months ago by Yaron
Modified:
6 years, 6 months ago
Reviewers:
Ted C
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Plausible fix for crash in GetCertificateChain. The call to get the certificate chain from native assumes a valid ContentViewCore. Switch to using WebContents which will get properly invalidated/handled if the tab which launches this dialog closes before the dialog is presented. Also includes a slight change to avoid bouncing Java->native->Java by allowing the dialog to be created from Java. BUG=379928 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276653

Patch Set 1 #

Patch Set 2 : fix leak #

Total comments: 7

Patch Set 3 : fixes #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -49 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java View 1 2 3 4 chunks +38 lines, -20 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.h View 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.cc View 1 2 5 chunks +20 lines, -18 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yaron
https://codereview.chromium.org/330583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java (left): https://codereview.chromium.org/330583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java#oldcode51 chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:51: mDialog.setOnCancelListener(new DialogInterface.OnCancelListener() { I think this leak was always ...
6 years, 6 months ago (2014-06-11 22:50:33 UTC) #1
Ted C
lgtm! I was thinking of doing this exact change recently...laziness paid off https://codereview.chromium.org/330583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java ...
6 years, 6 months ago (2014-06-11 23:32:41 UTC) #2
Yaron
thanks https://codereview.chromium.org/330583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java (right): https://codereview.chromium.org/330583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java#newcode155 chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:155: return new WebsiteSettingsPopup(context, webContents); On 2014/06/11 23:32:41, Ted ...
6 years, 6 months ago (2014-06-12 01:04:28 UTC) #3
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 6 months ago (2014-06-12 01:04:31 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/330583002/60001
6 years, 6 months ago (2014-06-12 01:05:54 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 06:47:04 UTC) #6
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 13:10:01 UTC) #7
Message was sent while issue was closed.
Change committed as 276653

Powered by Google App Engine
This is Rietveld 408576698