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

Issue 11417061: [android_webview] Enable navigation interception for iframes. (Closed)

Created:
8 years, 1 month ago by mkosiba (inactive)
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[android_webview] Enable navigation interception for iframes. This enables navigation interception for navigations in iframes. The feature is limited to iframes that do not have a http(s) source. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168811

Patch Set 1 #

Total comments: 2

Patch Set 2 : make findbugs happy #

Patch Set 3 : address Mikhail's comments #

Total comments: 3

Patch Set 4 : make findbugs happy? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -45 lines) Patch
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 1 chunk +16 lines, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java View 1 2 21 chunks +64 lines, -40 lines 0 comments Download
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/components/navigation_interception/intercept_navigation_resource_throttle.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mkosiba (inactive)
jknotten@ for throttle changes mnaganov@ for android_webview changes
8 years, 1 month ago (2012-11-19 13:14:27 UTC) #1
mnaganov (inactive)
LGTM with 1 question for android_webview https://codereview.chromium.org/11417061/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java (right): https://codereview.chromium.org/11417061/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java#newcode574 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java:574: // Wait for ...
8 years, 1 month ago (2012-11-19 13:29:10 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/11417061/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java (right): https://codereview.chromium.org/11417061/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java#newcode574 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldIgnoreNavigationTest.java:574: // Wait for the redirect target URL to be ...
8 years, 1 month ago (2012-11-19 13:47:21 UTC) #3
John Knottenbelt
LGTM. Is the BUG= intentionally blank? https://codereview.chromium.org/11417061/diff/3002/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc File android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/11417061/diff/3002/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc#newcode134 android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc:134: // We ignore ...
8 years, 1 month ago (2012-11-19 14:09:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/11417061/9005
8 years, 1 month ago (2012-11-20 13:45:37 UTC) #5
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years, 1 month ago (2012-11-20 15:54:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/11417061/9005
8 years, 1 month ago (2012-11-20 16:04:09 UTC) #7
commit-bot: I haz the power
Change committed as 168811
8 years, 1 month ago (2012-11-20 16:40:30 UTC) #8
joth
8 years, 1 month ago (2012-11-20 20:08:02 UTC) #9
hahaha wondered why you hadn't replied to these: I never sent them! nothing
critical for this patch though.

https://chromiumcodereview.appspot.com/11417061/diff/3002/android_webview/bro...
File
android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc
(right):

https://chromiumcodereview.appspot.com/11417061/diff/3002/android_webview/bro...
android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc:143:
// embedder.
is this a sane thing to support long term? if not, we might want to allow the
glue layer to choose if we do this, and disable it for apps targeting some
future version.

https://chromiumcodereview.appspot.com/11417061/diff/3002/android_webview/bro...
android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc:147:
!request->url().SchemeIs(chrome::kHttpsScheme)));
nit: maybe easier to read as.

bool allow_intercepting = resource_type == ResourceType::MAIN_FRAME;

if (is allowable sub frame) {
  allow_intercepting = true;
}

Powered by Google App Engine
This is Rietveld 408576698