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

Issue 1424263003: Reland "Use resource throttle to implement shouldOverrideUrlLoading, core change" (Closed)

Created:
5 years, 1 month ago by gsennton
Modified:
5 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, android-webview-reviews_chromium.org, clamy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Use resource throttle to implement shouldOverrideUrlLoading, core change" Now that https://codereview.chromium.org/1381003004/ has landed we can reland this patch since we now receive a didFinishLoad callback when the current navigation finishes even in the case where a new navigation has reached a provisional state. This reverts commit e5c3091df04749b232359b6ef22938006af840d5. TBR=palmer@chromium.org,jam@chromium.org BUG=325351 Committed: https://crrev.com/bae3ff13e6959b713b872df3c4a734d6a1ea01ad Cr-Commit-Position: refs/heads/master@{#358719}

Patch Set 1 #

Patch Set 2 : Fix failing instrumentation tests (connected to userGesture and isMainFrame) #

Total comments: 4

Patch Set 3 : Minor instrumentation test changes according to mnaganov@'s comments. #

Patch Set 4 : Make XHR loading test thread safe. #

Patch Set 5 : Revert unnecessary change for making XHR test thread-safe (it was safe before the change). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -220 lines) Patch
M android_webview/browser/aw_content_browser_client.cc View 5 chunks +4 lines, -44 lines 0 comments Download
M android_webview/browser/aw_contents_client_bridge_base.h View 1 chunk +0 lines, -5 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 chunk +0 lines, -14 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 3 chunks +27 lines, -17 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java View 1 chunk +0 lines, -7 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsObserver.java View 1 chunk +5 lines, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java View 1 2 3 4 4 chunks +89 lines, -1 line 0 comments Download
M android_webview/native/aw_contents_client_bridge.h View 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/native/aw_contents_client_bridge.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.h View 1 chunk +0 lines, -8 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 3 chunks +0 lines, -58 lines 0 comments Download
M components/navigation_interception/intercept_navigation_throttle.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/renderer/content_renderer_client.h View 2 chunks +0 lines, -19 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
gsennton
This is a reland of https://codereview.chromium.org/1155713005/ The reland initially failed two tests: AwContentsClientShouldOverrideUrlLoadingTest.testCalledOn302Redirect and AwContentsClientShouldOverrideUrlLoadingTest.testCalledForIframeUnsupportedSchemeNavigations ...
5 years, 1 month ago (2015-11-04 00:42:09 UTC) #3
mnaganov (inactive)
LGTM with comments https://codereview.chromium.org/1424263003/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java (right): https://codereview.chromium.org/1424263003/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java#newcode1123 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java:1123: assertEquals(1, mWebServer.getRequestCount(xhrPath)); You should also test ...
5 years, 1 month ago (2015-11-04 01:03:19 UTC) #4
gsennton
https://codereview.chromium.org/1424263003/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java (right): https://codereview.chromium.org/1424263003/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java#newcode1123 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java:1123: assertEquals(1, mWebServer.getRequestCount(xhrPath)); On 2015/11/04 01:03:19, mnaganov wrote: > You ...
5 years, 1 month ago (2015-11-04 01:21:52 UTC) #5
Torne
On 2015/11/04 01:03:19, mnaganov wrote: > LGTM with comments > > https://codereview.chromium.org/1424263003/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java > File > ...
5 years, 1 month ago (2015-11-04 16:21:58 UTC) #6
mnaganov (inactive)
On 2015/11/04 16:21:58, Torne wrote: > On 2015/11/04 01:03:19, mnaganov wrote: > > LGTM with ...
5 years, 1 month ago (2015-11-04 18:04:28 UTC) #7
Torne
On 2015/11/04 18:04:28, mnaganov wrote: > On 2015/11/04 16:21:58, Torne wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 18:10:37 UTC) #8
sgurun-gerrit only
On 2015/11/04 18:10:37, Torne wrote: > On 2015/11/04 18:04:28, mnaganov wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 22:43:59 UTC) #9
mnaganov (inactive)
On 2015/11/04 22:43:59, sgurun wrote: > On 2015/11/04 18:10:37, Torne wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-05 00:45:33 UTC) #10
gsennton
Ok, added the 'synchronized' keyword to the getter and the setter so that they cannot ...
5 years, 1 month ago (2015-11-05 01:35:12 UTC) #11
Torne
On 2015/11/05 00:45:33, mnaganov wrote: > OK, I've read through this article (thanks, Selim!): > ...
5 years, 1 month ago (2015-11-05 14:30:22 UTC) #12
mnaganov (inactive)
On 2015/11/05 14:30:22, Torne wrote: > On 2015/11/05 00:45:33, mnaganov wrote: > > OK, I've ...
5 years, 1 month ago (2015-11-05 16:24:24 UTC) #13
gsennton
So, it should be fine to land this now? :)
5 years, 1 month ago (2015-11-05 18:53:30 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424263003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424263003/80001
5 years, 1 month ago (2015-11-06 01:55:12 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/92350)
5 years, 1 month ago (2015-11-06 04:27:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424263003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424263003/80001
5 years, 1 month ago (2015-11-09 22:48:47 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-10 00:49:52 UTC) #22
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 00:50:52 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bae3ff13e6959b713b872df3c4a734d6a1ea01ad
Cr-Commit-Position: refs/heads/master@{#358719}

Powered by Google App Engine
This is Rietveld 408576698