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

Issue 794023002: Remember user's decisions on SSL errors. (Closed)

Created:
6 years ago by hush (inactive)
Modified:
6 years ago
Reviewers:
jww, sgurun-gerrit only
CC:
chromium-reviews, android-webview-reviews_chromium.org, benm (inactive), jww
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remember user's decisions on SSL errors. After CL: https://codereview.chromium.org/369703002, Android WebView just has a NULL SSLHostStateDelegate. So it does not remember any user decisions on SSL errors. This is a regression of behavior from L (m37). History: JB behavior: Larger error codes are assumed to have higher severity. And if the user has allowed an SSL error with a high severity, the user won't be prompted for a lower severity SSL error. K and L behavior: A specific SSL error will be allowed only if the error bit field is a subset of previously allowed error codes. trunk behavior for webview (without this patch): We don't remember user's decision at all. This CL: Maintain the same behavior with K and L. BUG=441065 Committed: https://crrev.com/8e5bcae56618fb6f5d5ad677b0206b943221193a Cr-Commit-Position: refs/heads/master@{#308160}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : comments #

Patch Set 3 : Implement with SSLHostStateDelegate #

Total comments: 12

Patch Set 4 : Added another test #

Patch Set 5 : comments #

Total comments: 26

Patch Set 6 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -5 lines) Patch
M android_webview/android_webview.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
A android_webview/browser/aw_ssl_host_state_delegate.h View 1 2 3 4 5 1 chunk +77 lines, -0 lines 0 comments Download
A android_webview/browser/aw_ssl_host_state_delegate.cc View 1 2 3 4 5 1 chunk +89 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java View 1 2 3 4 5 2 chunks +52 lines, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java View 1 2 3 4 5 9 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
hush (inactive)
PTAL https://codereview.chromium.org/794023002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java File android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java (right): https://codereview.chromium.org/794023002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java#newcode67 android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java:67: return sb.toString().hashCode(); this is for the index in ...
6 years ago (2014-12-11 04:47:59 UTC) #4
paulmiller
https://codereview.chromium.org/794023002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java File android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java (right): https://codereview.chromium.org/794023002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java#newcode67 android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java:67: return sb.toString().hashCode(); That would work, but it would be ...
6 years ago (2014-12-11 19:31:08 UTC) #5
hush (inactive)
https://codereview.chromium.org/794023002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java File android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java (right): https://codereview.chromium.org/794023002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java#newcode67 android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java:67: return sb.toString().hashCode(); On 2014/12/11 19:31:08, paulmiller wrote: > That ...
6 years ago (2014-12-12 01:02:43 UTC) #6
hush (inactive)
cc-ing jww@, who did a lot of work around this area.
6 years ago (2014-12-12 01:10:25 UTC) #7
hush (inactive)
Hi Selim, Like we discussed, I implemented using SSLHostStateDelegate on the native side in PS3.
6 years ago (2014-12-12 01:11:22 UTC) #8
jww
Drive by adding myself as a reviewer. https://codereview.chromium.org/794023002/diff/80001/android_webview/browser/aw_ssl_host_state_delegate.cc File android_webview/browser/aw_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/794023002/diff/80001/android_webview/browser/aw_ssl_host_state_delegate.cc#newcode1 android_webview/browser/aw_ssl_host_state_delegate.cc:1: // Copyright ...
6 years ago (2014-12-12 01:48:41 UTC) #11
hush (inactive)
Thanks Joel for the comments! https://codereview.chromium.org/794023002/diff/80001/android_webview/browser/aw_ssl_host_state_delegate.cc File android_webview/browser/aw_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/794023002/diff/80001/android_webview/browser/aw_ssl_host_state_delegate.cc#newcode1 android_webview/browser/aw_ssl_host_state_delegate.cc:1: // Copyright (c) 2012 ...
6 years ago (2014-12-12 02:42:37 UTC) #12
jww
LGTM for the SSLHostStateDelegate files (I didn't look at any of the Java files). https://codereview.chromium.org/794023002/diff/80001/android_webview/browser/aw_ssl_host_state_delegate.cc ...
6 years ago (2014-12-12 02:56:47 UTC) #13
sgurun-gerrit only
https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_browser_context.cc#newcode353 android_webview/browser/aw_browser_context.cc:353: nit: remove empty line https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_ssl_host_state_delegate.cc File android_webview/browser/aw_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_ssl_host_state_delegate.cc#newcode12 ...
6 years ago (2014-12-12 04:23:11 UTC) #14
sgurun-gerrit only
On 2014/12/12 04:23:11, sgurun wrote: > https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_browser_context.cc > File android_webview/browser/aw_browser_context.cc (right): > > https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_browser_context.cc#newcode353 > ...
6 years ago (2014-12-12 04:23:39 UTC) #15
hush (inactive)
https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_browser_context.cc#newcode353 android_webview/browser/aw_browser_context.cc:353: On 2014/12/12 04:23:09, sgurun wrote: > nit: remove empty ...
6 years ago (2014-12-12 19:43:40 UTC) #16
sgurun-gerrit only
lgtm
6 years ago (2014-12-12 20:00:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/794023002/160001
6 years ago (2014-12-12 20:02:42 UTC) #19
jww
https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_ssl_host_state_delegate.cc File android_webview/browser/aw_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/794023002/diff/140001/android_webview/browser/aw_ssl_host_state_delegate.cc#newcode65 android_webview/browser/aw_ssl_host_state_delegate.cc:65: return !!ran_insecure_content_hosts_.count(BrokenHostEntry(host, pid)); On 2014/12/12 19:43:39, hush wrote: > ...
6 years ago (2014-12-12 20:02:50 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:160001)
6 years ago (2014-12-12 21:12:34 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-12 21:13:28 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8e5bcae56618fb6f5d5ad677b0206b943221193a
Cr-Commit-Position: refs/heads/master@{#308160}

Powered by Google App Engine
This is Rietveld 408576698