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

Issue 24228003: Upstream ShouldOverrideUrlLoading changes (Closed)

Created:
7 years, 3 months ago by sgurun-gerrit only
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Rather than using a throttle, we are now using HandleNavigation callback for implementing ShouldOverrideUrlLoading for compatibility with old Webview. BUG=308257 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239646

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed a spurious didstartloading callback #

Patch Set 3 : added changes for posting on the UI thread #

Patch Set 4 : filter out about scheme #

Total comments: 2

Patch Set 5 : fixes necessary for merging upstream #

Patch Set 6 : added didstartloading callback #

Patch Set 7 : add a forgotten merge reject #

Total comments: 2

Patch Set 8 : addressed code review #

Total comments: 16

Patch Set 9 : fix for popup case #

Patch Set 10 : rebased #

Patch Set 11 : added a test #

Total comments: 40

Patch Set 12 : addressed code review #

Total comments: 1

Patch Set 13 : changed a non-related line to keep chrome bots happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -119 lines) Patch
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +76 lines, -1 line 0 comments Download
M android_webview/browser/aw_contents_client_bridge_base.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +21 lines, -40 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +23 lines, -63 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +26 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 4 chunks +17 lines, -14 lines 0 comments Download
M android_webview/native/aw_contents_client_bridge.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_contents_client_bridge.cc View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +64 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
mkosiba (inactive)
ok, looks like AwContentsClientShouldOverrideUrlLoadingTest#testCanIgnoreLoading assumes an onPageFinished gets called after we return false from shouldOverrideUrlLoading. ...
7 years, 3 months ago (2013-09-24 14:04:12 UTC) #1
sgurun-gerrit only
On 2013/09/24 14:04:12, mkosiba wrote: > ok, looks like AwContentsClientShouldOverrideUrlLoadingTest#testCanIgnoreLoading > assumes an onPageFinished gets ...
7 years, 3 months ago (2013-09-24 15:14:34 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/24228003/diff/23001/android_webview/renderer/aw_content_renderer_client.cc File android_webview/renderer/aw_content_renderer_client.cc (right): https://codereview.chromium.org/24228003/diff/23001/android_webview/renderer/aw_content_renderer_client.cc#newcode70 android_webview/renderer/aw_content_renderer_client.cc:70: !document_state->navigation_state()->is_content_initiated() is_content_initiated would normally be false for cross-origin navigations, ...
7 years, 2 months ago (2013-09-25 22:23:26 UTC) #3
sgurun-gerrit only
only one test is failing, but it is a test issue. https://codereview.chromium.org/24228003/diff/1/android_webview/renderer/aw_content_renderer_client.cc File android_webview/renderer/aw_content_renderer_client.cc (right): ...
7 years, 2 months ago (2013-10-09 00:26:13 UTC) #4
joth
https://codereview.chromium.org/24228003/diff/54001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/24228003/diff/54001/android_webview/native/aw_contents.cc#newcode317 android_webview/native/aw_contents.cc:317: if (base::subtle::NoBarrier_Load(&g_instance_count) == 0) { now the delete is ...
7 years, 2 months ago (2013-10-09 02:22:40 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/24228003/diff/54001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/24228003/diff/54001/android_webview/native/aw_contents.cc#newcode317 android_webview/native/aw_contents.cc:317: if (base::subtle::NoBarrier_Load(&g_instance_count) == 0) { On 2013/10/09 02:22:40, joth ...
7 years, 2 months ago (2013-10-16 21:49:27 UTC) #6
mkosiba (inactive)
https://codereview.chromium.org/24228003/diff/64001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/24228003/diff/64001/android_webview/browser/aw_content_browser_client.cc#newcode40 android_webview/browser/aw_content_browser_client.cc:40: // TODO(sgurun) move this to its own file. any ...
7 years, 2 months ago (2013-10-17 10:27:44 UTC) #7
mkosiba (inactive)
https://codereview.chromium.org/24228003/diff/64001/android_webview/renderer/aw_content_renderer_client.cc File android_webview/renderer/aw_content_renderer_client.cc (right): https://codereview.chromium.org/24228003/diff/64001/android_webview/renderer/aw_content_renderer_client.cc#newcode92 android_webview/renderer/aw_content_renderer_client.cc:92: // TODO(sgurun) Need to write a test for allowing ...
7 years, 2 months ago (2013-10-17 10:29:28 UTC) #8
sgurun-gerrit only
https://codereview.chromium.org/24228003/diff/64001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/24228003/diff/64001/android_webview/browser/aw_content_browser_client.cc#newcode40 android_webview/browser/aw_content_browser_client.cc:40: // TODO(sgurun) move this to its own file. Given ...
7 years ago (2013-12-06 00:17:47 UTC) #9
sgurun-gerrit only
PTAL, thanks
7 years ago (2013-12-06 02:02:19 UTC) #10
boliu
Only the opener_id question is substantial. Others are mostly nits, request for adding tests or ...
7 years ago (2013-12-06 20:28:23 UTC) #11
sgurun-gerrit only
thanks for your time and detailed code review! PTAL, thanks, https://codereview.chromium.org/24228003/diff/215001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/24228003/diff/215001/android_webview/browser/aw_content_browser_client.cc#newcode46 ...
7 years ago (2013-12-07 00:11:07 UTC) #12
boliu
lgtm for upstreaming to match released code the opener_id might be a bug that we ...
7 years ago (2013-12-07 01:22:18 UTC) #13
joth
https://codereview.chromium.org/24228003/diff/215001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/24228003/diff/215001/android_webview/native/aw_contents.cc#newcode320 android_webview/native/aw_contents.cc:320: java_ref_.reset(); On 2013/12/07 01:22:18, boliu wrote: > On 2013/12/06 ...
7 years ago (2013-12-07 01:52:33 UTC) #14
mkosiba (inactive)
lgtm
7 years ago (2013-12-09 16:18:11 UTC) #15
benm (inactive)
lgtm https://codereview.chromium.org/24228003/diff/235001/android_webview/common/render_view_messages.h File android_webview/common/render_view_messages.h (right): https://codereview.chromium.org/24228003/diff/235001/android_webview/common/render_view_messages.h#newcode111 android_webview/common/render_view_messages.h:111: string16 /* in - url */, nit: should ...
7 years ago (2013-12-09 17:36:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/24228003/235001
7 years ago (2013-12-09 18:45:36 UTC) #17
sgurun-gerrit only
On 2013/12/09 17:36:10, benm wrote: > lgtm > > https://codereview.chromium.org/24228003/diff/235001/android_webview/common/render_view_messages.h > File android_webview/common/render_view_messages.h (right): > ...
7 years ago (2013-12-09 18:45:51 UTC) #18
sgurun-gerrit only
@tsepez need lgtm for android_webview/common/render_view_messages.h
7 years ago (2013-12-09 19:55:44 UTC) #19
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=40174
7 years ago (2013-12-09 20:10:08 UTC) #20
Tom Sepez
On 2013/12/09 19:55:44, sgurun wrote: > @tsepez need lgtm for android_webview/common/render_view_messages.h Should this be passing ...
7 years ago (2013-12-09 20:37:38 UTC) #21
Tom Sepez
On 2013/12/09 20:37:38, Tom Sepez wrote: > On 2013/12/09 19:55:44, sgurun wrote: > > @tsepez ...
7 years ago (2013-12-09 20:38:27 UTC) #22
boliu
On 2013/12/09 20:38:27, Tom Sepez wrote: > On 2013/12/09 20:37:38, Tom Sepez wrote: > > ...
7 years ago (2013-12-09 21:14:49 UTC) #23
sgurun-gerrit only
On 2013/12/09 20:38:27, Tom Sepez wrote: > On 2013/12/09 20:37:38, Tom Sepez wrote: > > ...
7 years ago (2013-12-09 21:46:22 UTC) #24
Tom Sepez
Thanks for the explanation. Messages LGTM.
7 years ago (2013-12-09 21:49:49 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/24228003/235001
7 years ago (2013-12-09 22:09:18 UTC) #26
commit-bot: I haz the power
Failed to trigger a try job on chromium_presubmit HTTP Error 400: Bad Request
7 years ago (2013-12-09 23:40:14 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/24228003/255001
7 years ago (2013-12-09 23:40:33 UTC) #28
commit-bot: I haz the power
7 years ago (2013-12-10 04:33:56 UTC) #29
Message was sent while issue was closed.
Change committed as 239646

Powered by Google App Engine
This is Rietveld 408576698