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

Issue 12091111: Implement Webviewclient.onReceivedSslError (Closed)

Created:
7 years, 10 months ago by sgurun-gerrit only
Modified:
7 years, 10 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement Webviewclient.onReceivedSslError BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184643

Patch Set 1 #

Patch Set 2 : minor fix #

Total comments: 7

Patch Set 3 : updated copyrights #

Total comments: 20

Patch Set 4 : address code review #

Total comments: 26

Patch Set 5 : addressed code review #

Total comments: 24

Patch Set 6 : add a bridge for aw_contents_client #

Total comments: 22

Patch Set 7 : code review from joth #

Total comments: 10

Patch Set 8 : expand the base class. #

Total comments: 4

Patch Set 9 : rebased #

Patch Set 10 : use valuecallback #

Patch Set 11 : fix compile issues #

Total comments: 8

Patch Set 12 : address ben's code review #

Patch Set 13 : rebased #

Patch Set 14 : fix capitalization error #

Patch Set 15 : wasting time... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+475 lines, -47 lines) Patch
M android_webview/android_webview.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -3 lines 0 comments Download
A android_webview/browser/aw_contents_client_bridge_base.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
A android_webview/browser/aw_contents_client_bridge_base.cc View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
M android_webview/browser/aw_http_auth_handler_base.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/aw_login_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -30 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -0 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +75 lines, -0 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/SslUtil.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +62 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -2 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +19 lines, -7 lines 0 comments Download
A android_webview/native/aw_contents_client_bridge.h View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A android_webview/native/aw_contents_client_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +91 lines, -0 lines 0 comments Download
M android_webview/native/aw_http_auth_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/aw_http_auth_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
sgurun-gerrit only
please take a look, thanks.
7 years, 10 months ago (2013-02-01 19:13:36 UTC) #1
Kristian Monsen
Update copyright to 2013 for all new files.
7 years, 10 months ago (2013-02-01 19:17:48 UTC) #2
boliu
rough first pass https://codereview.chromium.org/12091111/diff/2001/android_webview/android_webview.gyp File android_webview/android_webview.gyp (right): https://codereview.chromium.org/12091111/diff/2001/android_webview/android_webview.gyp#newcode122 android_webview/android_webview.gyp:122: 'browser/aw_certificate_error_handler.h', _base? https://codereview.chromium.org/12091111/diff/2001/android_webview/browser/aw_certificate_error_handler_base.h File android_webview/browser/aw_certificate_error_handler_base.h (right): ...
7 years, 10 months ago (2013-02-01 20:03:22 UTC) #3
Kristian Monsen
https://codereview.chromium.org/12091111/diff/6001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/12091111/diff/6001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode824 android_webview/java/src/org/chromium/android_webview/AwContents.java:824: private boolean allowCertificateError(int certError, byte[] derBytes, String url) { ...
7 years, 10 months ago (2013-02-01 20:51:12 UTC) #4
boliu
https://codereview.chromium.org/12091111/diff/6001/android_webview/native/aw_certificate_error_handler_base.cc File android_webview/native/aw_certificate_error_handler_base.cc (right): https://codereview.chromium.org/12091111/diff/6001/android_webview/native/aw_certificate_error_handler_base.cc#newcode21 android_webview/native/aw_certificate_error_handler_base.cc:21: const content::RenderViewHost* host = On 2013/02/01 20:51:12, Kristian Monsen ...
7 years, 10 months ago (2013-02-01 20:56:59 UTC) #5
sgurun-gerrit only
these are good catches. Thanks guys. https://codereview.chromium.org/12091111/diff/2001/android_webview/android_webview.gyp File android_webview/android_webview.gyp (right): https://codereview.chromium.org/12091111/diff/2001/android_webview/android_webview.gyp#newcode122 android_webview/android_webview.gyp:122: 'browser/aw_certificate_error_handler.h', On 2013/02/01 ...
7 years, 10 months ago (2013-02-01 22:08:00 UTC) #6
boliu
So overall the webview api lacks a global client (instead of per webview), where the ...
7 years, 10 months ago (2013-02-01 23:07:13 UTC) #7
Kristian Monsen
I'm very unsure about this. It will add substantial overhead to do it "right", but ...
7 years, 10 months ago (2013-02-01 23:20:37 UTC) #8
sgurun-gerrit only
I think the navigation situation is a real problem. will work on it. Replies to ...
7 years, 10 months ago (2013-02-02 01:01:10 UTC) #9
sgurun-gerrit only
https://codereview.chromium.org/12091111/diff/14001/android_webview/native/aw_certificate_error_handler_base.cc File android_webview/native/aw_certificate_error_handler_base.cc (right): https://codereview.chromium.org/12091111/diff/14001/android_webview/native/aw_certificate_error_handler_base.cc#newcode13 android_webview/native/aw_certificate_error_handler_base.cc:13: AwCertificateErrorHandlerBase::~AwCertificateErrorHandlerBase() { actually thinking about this again, I think ...
7 years, 10 months ago (2013-02-02 01:08:11 UTC) #10
boliu
https://codereview.chromium.org/12091111/diff/14001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/12091111/diff/14001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode836 android_webview/java/src/org/chromium/android_webview/AwContents.java:836: return false; On 2013/02/02 01:01:10, sgurun wrote: > I ...
7 years, 10 months ago (2013-02-02 01:10:42 UTC) #11
sgurun-gerrit only
https://codereview.chromium.org/12091111/diff/14001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/12091111/diff/14001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode836 android_webview/java/src/org/chromium/android_webview/AwContents.java:836: return false; Nop, it won't work (Please take a ...
7 years, 10 months ago (2013-02-02 03:16:10 UTC) #12
boliu
https://codereview.chromium.org/12091111/diff/23001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12091111/diff/23001/android_webview/native/aw_contents.cc#newcode953 android_webview/native/aw_contents.cc:953: ssl_error_callback_ = callback; Only save callback if cancel_request is ...
7 years, 10 months ago (2013-02-02 03:51:29 UTC) #13
sgurun-gerrit only
Good point. The function supports both partial synchronous and async. behavior which makes using it ...
7 years, 10 months ago (2013-02-02 04:16:37 UTC) #14
mkosiba (inactive)
https://codereview.chromium.org/12091111/diff/23001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12091111/diff/23001/android_webview/browser/aw_content_browser_client.cc#newcode214 android_webview/browser/aw_content_browser_client.cc:214: DCHECK(error_handler); this is pointless, we'll crash in the next ...
7 years, 10 months ago (2013-02-04 12:51:30 UTC) #15
benm (inactive)
https://codereview.chromium.org/12091111/diff/23001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/12091111/diff/23001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode986 android_webview/java/src/org/chromium/android_webview/AwContents.java:986: // Intentional fall through exceptions don't fall through? https://codereview.chromium.org/12091111/diff/23001/android_webview/java/src/org/chromium/android_webview/SslCertLookupTable.java ...
7 years, 10 months ago (2013-02-04 17:27:46 UTC) #16
sgurun-gerrit only
https://codereview.chromium.org/12091111/diff/23001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12091111/diff/23001/android_webview/browser/aw_content_browser_client.cc#newcode214 android_webview/browser/aw_content_browser_client.cc:214: DCHECK(error_handler); himm, if there is a possibility of rvh ...
7 years, 10 months ago (2013-02-21 23:32:32 UTC) #17
joth
I browsed the overall structure more than detailed line-by-line review. I like having a native ...
7 years, 10 months ago (2013-02-22 01:15:45 UTC) #18
sgurun-gerrit only
https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc#newcode272 android_webview/browser/aw_content_browser_client.cc:272: AwCertificateErrorHandlerBase::FromID(render_process_id, render_view_id); I talked to Martin and got his ...
7 years, 10 months ago (2013-02-22 01:48:07 UTC) #19
joth
https://codereview.chromium.org/12091111/diff/31001/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/12091111/diff/31001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java#newcode36 android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java:36: mNativeAwContentsClientBridge = nativeInit(nativeAwContents); suggest doing the native construction in ...
7 years, 10 months ago (2013-02-22 02:39:44 UTC) #20
joth
On 21 February 2013 17:48, <sgurun@chromium.org> wrote: > > https://codereview.chromium.**org/12091111/diff/31001/** > android_webview/browser/aw_**content_browser_client.cc<https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc> > File android_webview/browser/aw_**content_browser_client.cc ...
7 years, 10 months ago (2013-02-22 02:43:35 UTC) #21
mkosiba (inactive)
https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc#newcode272 android_webview/browser/aw_content_browser_client.cc:272: AwCertificateErrorHandlerBase::FromID(render_process_id, render_view_id); On 2013/02/22 01:48:07, sgurun wrote: > I ...
7 years, 10 months ago (2013-02-22 15:35:55 UTC) #22
joth
On 22 February 2013 07:35, <mkosiba@chromium.org> wrote: > > https://codereview.chromium.**org/12091111/diff/31001/** > android_webview/browser/aw_**content_browser_client.cc<https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc> > File android_webview/browser/aw_**content_browser_client.cc ...
7 years, 10 months ago (2013-02-22 18:22:56 UTC) #23
sgurun-gerrit only
https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc#newcode272 android_webview/browser/aw_content_browser_client.cc:272: AwCertificateErrorHandlerBase::FromID(render_process_id, render_view_id); I am doing the change -- Maybe ...
7 years, 10 months ago (2013-02-22 19:31:31 UTC) #24
joth
On 22 February 2013 11:31, <sgurun@chromium.org> wrote: > > https://codereview.chromium.**org/12091111/diff/31001/** > android_webview/browser/aw_**content_browser_client.cc<https://codereview.chromium.org/12091111/diff/31001/android_webview/browser/aw_content_browser_client.cc> > File android_webview/browser/aw_**content_browser_client.cc ...
7 years, 10 months ago (2013-02-22 20:42:51 UTC) #25
selim
:) On Fri, Feb 22, 2013 at 12:42 PM, Jonathan Dixon <joth@chromium.org> wrote: > > ...
7 years, 10 months ago (2013-02-22 20:47:17 UTC) #26
sgurun-gerrit only
PTAL, thanks
7 years, 10 months ago (2013-02-22 22:54:43 UTC) #27
joth
quick comments... please move the UserData class into the .cc in anon namespace. https://codereview.chromium.org/12091111/diff/39001/android_webview/browser/aw_certificate_error_handler_base.cc File ...
7 years, 10 months ago (2013-02-22 23:12:41 UTC) #28
sgurun-gerrit only
thanks for quick review. PTAL, thanks, https://codereview.chromium.org/12091111/diff/39001/android_webview/browser/aw_certificate_error_handler_base.cc File android_webview/browser/aw_certificate_error_handler_base.cc (right): https://codereview.chromium.org/12091111/diff/39001/android_webview/browser/aw_certificate_error_handler_base.cc#newcode46 android_webview/browser/aw_certificate_error_handler_base.cc:46: if (!web_contents) return ...
7 years, 10 months ago (2013-02-23 00:16:14 UTC) #29
joth
lg -except- I don't think this will build upstream. (I sent a try job for ...
7 years, 10 months ago (2013-02-23 00:30:09 UTC) #30
sgurun-gerrit only
probably not. I did not sync to latest, since it is becoming a moving target... ...
7 years, 10 months ago (2013-02-23 00:33:17 UTC) #31
benm (inactive)
https://codereview.chromium.org/12091111/diff/42003/android_webview/browser/aw_contents_client_bridge_base.h File android_webview/browser/aw_contents_client_bridge_base.h (right): https://codereview.chromium.org/12091111/diff/42003/android_webview/browser/aw_contents_client_bridge_base.h#newcode24 android_webview/browser/aw_contents_client_bridge_base.h:24: // in the native/ layer, due to layering. The ...
7 years, 10 months ago (2013-02-25 12:16:38 UTC) #32
sgurun-gerrit only
PTAL, https://codereview.chromium.org/12091111/diff/42003/android_webview/browser/aw_contents_client_bridge_base.h File android_webview/browser/aw_contents_client_bridge_base.h (right): https://codereview.chromium.org/12091111/diff/42003/android_webview/browser/aw_contents_client_bridge_base.h#newcode24 android_webview/browser/aw_contents_client_bridge_base.h:24: // in the native/ layer, due to layering. ...
7 years, 10 months ago (2013-02-25 19:45:22 UTC) #33
joth
lgtm
7 years, 10 months ago (2013-02-25 21:21:05 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/12091111/42007
7 years, 10 months ago (2013-02-25 21:36:45 UTC) #35
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=39016
7 years, 10 months ago (2013-02-25 22:43:15 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/12091111/43004
7 years, 10 months ago (2013-02-25 22:55:40 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/12091111/45001
7 years, 10 months ago (2013-02-26 12:02:51 UTC) #38
commit-bot: I haz the power
7 years, 10 months ago (2013-02-26 14:27:42 UTC) #39
Message was sent while issue was closed.
Change committed as 184643

Powered by Google App Engine
This is Rietveld 408576698