New issue
Advanced search Search tips

Issue 853030 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Feature



Sign in to add a comment

Implement getWebChromeClient in the support library

Project Member Reported by ntfschr@chromium.org, Jun 14 2018

Issue description

Same as  issue 852920 , except this trackes the WebChromeClient instead of WebViewClient.

I can take this one.
 
Labels: -Type-Bug -Pri-3 M-69 Pri-2 Type-Feature
I think we should increase the priority of this issue, as it causes confusion and inconsistency in using WebView SL. Initially setting it M69.
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 20 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6f8da54669d46aeb57590068e1bf1991a507897d

commit 6f8da54669d46aeb57590068e1bf1991a507897d
Author: Nate Fischer <ntfschr@chromium.org>
Date: Wed Jun 20 23:27:40 2018

AW: implement getWebChromeClient in support library

This implements getWebChromeClient in the support library glue and
boundary_interfaces, and declares that the APK supports the Feature.

Bug:  853030 
Test: (in support lib) ./gradlew :webkit:connectedAndroidTest
Test: android_webview/tools/run_cts.py (on O device, to verify CTS)
Change-Id: I9e19a017b6bfc05d287c1d8c2c112eea86f65c4f
Reviewed-on: https://chromium-review.googlesource.com/1107273
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: Tobias Sargeant <tobiasjs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569083}
[modify] https://crrev.com/6f8da54669d46aeb57590068e1bf1991a507897d/android_webview/glue/java/src/com/android/webview/chromium/SharedWebViewChromium.java
[modify] https://crrev.com/6f8da54669d46aeb57590068e1bf1991a507897d/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
[modify] https://crrev.com/6f8da54669d46aeb57590068e1bf1991a507897d/android_webview/support_library/boundary_interfaces/src/org/chromium/support_lib_boundary/WebViewProviderBoundaryInterface.java
[modify] https://crrev.com/6f8da54669d46aeb57590068e1bf1991a507897d/android_webview/support_library/boundary_interfaces/src/org/chromium/support_lib_boundary/util/Features.java
[modify] https://crrev.com/6f8da54669d46aeb57590068e1bf1991a507897d/android_webview/support_library/java/src/org/chromium/support_lib_glue/SupportLibWebViewChromium.java
[modify] https://crrev.com/6f8da54669d46aeb57590068e1bf1991a507897d/android_webview/support_library/java/src/org/chromium/support_lib_glue/SupportLibWebViewChromiumFactory.java

Status: Fixed (was: Assigned)
Please add the test verification if applicable.
Status: Verified (was: Fixed)
Bulk edit: marking stale 'fixed' bugs as 'verified' since they don't need verification at this point.
Do we also plan to add WebChromeClientCompat? I think onJsWindowPrint() support will depend on it.
Cc: ctzsm@chromium.org
That's actually orthogonal from getWebChromeClient API.

We didn't implement WebChromeClientCompat because, as of today, there are no post-L WebChromeClient APIs (and therefore, there's nothing to implement).

If you want to land new WebChromeClient APIs, you'll want to implement WebChromeClientCompat, following the design of WebViewClientCompat.
Makes sense. Thanks!
Rather than stashing it in WebChromeClient, I'd much prefer a separate callback class, or simply a setter that takes a Callable.
WebChromeClient is consistent with other JS APIs (e.g., onConsoleMessage, onJsAlert). I think this is a reasonable spot.

Sign in to add a comment