History log of /frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2b108d8609b6a0e8bd6e1b1339c97ad8bb46cf4a 22-Aug-2017 Nate Fischer <ntfschr@google.com> WebView: rename initSafeBrowsing and remove shutdownSafeBrowsing

This renames the method as follows:

* initSafeBrowsing -> startSafeBrowsing

This also updates documentation to fix javadoc references, and to
clarify that Safe Browsing checks are not guaranteed until after
startSafeBrowsing() invokes its callback.

This does not change the method name in WebViewFactoryProvider, because
changing this would break CTS tests (since the WebView APK implements
this under the old name).

This also removes shutdownSafeBrowsing, because we found there was no
good use for this (it's meaningless for AOSP, and we were recommended to
avoid calling the underlying GMSCore API for GoogleWebView). More
significantly, there's no good place for an application to call it from.

Bug: 64331900
Test: make update-api (docs are correct)
Change-Id: Idf2b9390306052f5c5dfb92909fca4cfeec74aef
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
3898ac12e4c6db1a023e7b9bc5ba34b686507d23 10-Aug-2017 Nate Fischer <ntfschr@google.com> WebView: add WebView#getSafeBrowsingPrivacyPolicyUrl() API

This adds a dedicated API for fetching a URL for the Safe Browsing
reporting privacy policy.

This URL should be displayed by applications on custom Safe Browsing
interstitials.

Bug: 64077668
Test: make update-api (it compiles and javadocs look good)
Change-Id: I2873260edcaa924e68517c8679079e147b9995f4
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
d6385d326b59e99c8c0ed7a19cfd6b103ceb3bee 17-Jul-2017 Nate Fischer <ntfschr@google.com> WebView: change setSafeBrowsingWhiteList signature

* Renames WhiteList -> Whitelist
* Adds a callback to indicate malformed URLs to the application

Bug: 63660204
Bug: 63084528
Bug: 63765158
Test: N/A
Change-Id: Ia12f0822c5d3a339633a820c40bdbff4137f510b
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
520a8ba279366eff652e168633f3be279d998be9 13-Jul-2017 Nate Fischer <ntfschr@google.com> WebView: fix WebView#setSafeBrowsingWhiteList

This corrects the WebView#setSafeBrowsingWhiteList method to accept a
List<String> instead of a String[], as per API council recommendation.

Bug: 63084528, 63615148
Test: N/A
Change-Id: I53f490c6ab9c10fffe6c89010d7509747ac8f95f
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
bf158ec3d8d05de9c6e469f5b0163698a5e83c96 28-Jun-2017 Nate Fischer <ntfschr@google.com> WebView: add APIs for setSafeBrowsingWhiteList

This adds the APIs for the static method
WebView#setSafeBrowsingWhiteList().

BUG: 63084528
Test: N/A
Change-Id: I6eff32d9f8356e8c1a2c631782e07d52ba9b6ad5
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
90396365357c745070145a87b6036e6bb07cbae8 13-Jun-2017 Jeff Sharkey <jsharkey@android.com> Revert "Hide APIs not intended to ship in DR."

This reverts commit 0c28d43fe1423198f99a0518887b69a4205bc6f7.
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
0c28d43fe1423198f99a0518887b69a4205bc6f7 09-Jun-2017 Jeff Sharkey <jsharkey@android.com> Hide APIs not intended to ship in DR.

This CL will be reverted once it merges into the next release branch
to re-introduce the proposed APIs.

This CL also makes the following code changes to preserve API
compatibility:

-- It keeps the recently added RemoteViews.clone() synchronized logic
intact, but moves it inside the method to avoid changing the API
signature.

-- It reverts the RttCall.read() behavior to the oc-dev logic, since
we can't throw IOException until we get an API level bump. (The
original logic returned null instead of throwing.)

Test: builds, boots
Bug: 62427252, 62431886, 62427329
Bug: 62468911, 62431162, 62428935, 62429096
Bug: 37290820, 37359238, 36886243
Bug: 30143923, 35761231, 62192626, 29829689
Change-Id: I83d723f598cb0ee1fe198e65debd86ef7fd0420c
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
0e72c181c8ca139f0fcf674d8952c25582c6829e 30-May-2017 Nate Fischer <ntfschr@google.com> Add WebView#{init,shutdown}SafeBrowsing APIs

This adds the APIs for the WebView#initSafeBrowsing and
WebView#shutdownSafeBrowsing static methods.

Implementation for these APIs landed in 60.0.3112.0

Also, this fixes an already-existing error with import order (failed
Checkstyle hook). No actual change to imports.

BUG: 62192626
Test: manual - built a custom app which calls methods via reflection
Change-Id: I763349182443dc20cff1e7f08475290fac65c233
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
28c83564419de9f4f3d22aff630244dc4cbc3c2f 20-Jan-2016 Tim Volodine <timvolodine@chromium.org> Add Service Worker settings and callback support in WebView.

Service Workers are not tied to WebView instances so currently
there is no mechanism to capture callbacks originating from
within Service Workers.

This patch adds the necessary classes to capture callbacks
and allows to set settings specifically for Service Workers.

The main idea is that to control service workers the embedding
app would obtain an instance of ServiceWorkerController using
ServiceWorkerController.getInstance() first. After that it would
be able to set a custom ServiceWorkerClient and change
ServiceWorkerWebSettings via the controller object.

BUG: 22709088
Change-Id: I0eb17be46b767851676b77a94757771611fa3a1b
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
a5171370f21079fa91f4521dc37ef1bf79931c8f 20-Jan-2016 Selim Gurun <sgurun@google.com> Add the system apis for token binding

Bug: 22665752

Token binding protocol is the next generation channel-ID protocol,
currently it is a draft in IETF
https://tools.ietf.org/html/draft-ietf-tokbind-protocol-03

Add the api as a system api (will be public once the draft finalizes)

Change-Id: If971cc7e6d14f15c778b9b027df9fc48dac0160c
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
504b81b02c428bbb59ca1704d653d0897e25c370 15-Jan-2016 Selim Gurun <sgurun@google.com> Revert "Revert "Add the TokenBindingManager""

This reverts commit d1ec6356b346a4f420623fd035802065924bc164.

Change-Id: I75e4d9226808a30532f5c593123e59b78cd1e761
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
d1ec6356b346a4f420623fd035802065924bc164 15-Jan-2016 Selim Gurun <sgurun@google.com> Revert "Add the TokenBindingManager"

This reverts commit 57eb3264c9735953176f9bb0c14874f65cee85af.

Change-Id: Ie74b64a181eb08dbfa1aeca99322be377e9f1d9c
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
57eb3264c9735953176f9bb0c14874f65cee85af 30-Dec-2015 Selim Gurun <sgurun@google.com> Add the TokenBindingManager

Bug: 22665752

Add the webview APIs to manage token binding protocol keys.

Change-Id: Ie2eae543869b1ae91cdb4e70217c28b9a8a465cf
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
451e338c51e8c45efc0d21536dfae6f78f6d5e06 10-Nov-2014 Ignacio Solla <igsolla@google.com> [WebView] Allow the WebView to be compiled against the system SDK.

BUG:18152150
Change-Id: Ifd6dcac17663631058d895c61bb6e8018c5aeecc
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
e8df27aec8367f8718c03059af679049fc522d9c 02-Sep-2014 Tao Bai <michaelbai@google.com> Revise createIntent and parseResult API.

- Both are move to FileChooserParams, remove UploadHelper class.
- createIntent only handls non-capture intents
- parseResult is the static member of FileChooseParams and should
be used with createIntent.

BUG:17253647,16624450

Change-Id: I81cac7c1b739880db4e4c1f2b4612ed2ee87cb1b
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
c7a8d06731e748eb29a983f112d075433fdf1fc1 03-Sep-2014 Selim Gurun <sgurun@google.com> Remove unpublished optOutDataReductionProxyApi

Bug: 17253647

Per Api council's request, remove this API.

Change-Id: I8e706cc7173b88f3f13b2ac0697f54b25f163798
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
9f3ed850b6521bec8a946a54bb8a15565b4aa67e 18-Jul-2014 Bo Liu <boliu@google.com> Add WebView.enableSlowWholeDocumentDraw

BUG: 16300353
Change-Id: Id4475f04f32bb176a6a59ee9d5a09e3f65b94ef0
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
7871554e1abe81d745a93c9a97f679f6617f906d 09-Jul-2014 Selim Gurun <sgurun@google.com> Add an API to disable data reduction proxy.

Bug: 16011253

Under rare circumstances, the application may need to disable the
data reduction proxy. This is to provide a way to do that.

Change-Id: I031f689f9d72460c7241aec78459185e0b31f059
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
638c078c870373135c9927cbac7721459b15bef0 05-Jun-2014 Kristian Monsen <kristianm@google.com> Remove unused function from the WebView statics

Change-Id: I47c47c44d4b5b6f4a4f366affa9d110de440ade5
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
e1c6c3ae21a527c5ddb4386ceee51e9ebd4ad58f 28-Apr-2014 Selim Gurun <sgurun@google.com> Design a static API for clearclientcertpreferences

Bug: 12983007

Change-Id: I869b4cd4c178b8fedf725f108fd2e369895543e9
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
90102e2ccc62e82382b1e0094a47e1516e1b9e36 21-Sep-2013 Jonathan Dixon <joth@google.com> resolved conflicts for merge of 1421827b to master

Simple resolve: two new methods added to same class.

Conflicts:
core/java/android/webkit/WebViewFactoryProvider.java

Change-Id: Ic8b26f2a51279348b19a9c5b30d492f67d62ca81
244267500254daff8745f8c0fae3edcac735873f 05-Sep-2013 Primiano Tucci <primiano@google.com> Adding freeMemoryForTests static method to WebView.

This is going to be used by pagecycler tests.
See: b/10629847

Change-Id: Ie3fda214e7808429d7ed63734ab301525f58513f
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
057989eddc709883794b6a3c311c43aba11084ee 07-Sep-2013 Mikhail Naganov <mnaganov@google.com> WebView: add an API method to control web contents debugging

This adds static (as this is for the whole process) method
for controlling the web debugging state.

Please note that the implementation only makes sense for
Chromium WebView, and it's a no-op in WebViewClassic.

BUG=8691809

Change-Id: I815b4d69ad9ee814ca4cec1da81490b63ba2da68
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
d1c4faa5a4c2be71d529d35572c5f807beee7ddc 21-Aug-2012 Jonathan Dixon <joth@google.com> Small tidy up to getDefaultUserAgent

- no need for WebSettings to bounce via WebView to get to the factory
- move this static (non-factory) method into the Statics inner class.

Bug: 6329117
Change-Id: Ib56d5eaae59cd8d19fb0b71e4b8a41d1c0f5ba09
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
9f410c540ad593dd83e34266ccffd70867a600ab 11-Aug-2012 George Mount <mount@google.com> Add getDefaultUserAgent to WebSettings.

Bug 6329117
Add ability to get the default user-agent without creating
a WebView. The method is implemented for WebSettingsClassic.

Change-Id: Id15fb57f65875752ccf644481a22b88644635f5d
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
99c12e8d5f12f239c28644a837937810299e5e3f 25-Apr-2012 Ben Murdoch <benm@google.com> Create WebViewDatabaseClassic from WebViewDatabase.

WebViewDatabase has a getInstance() method, so similarly
to WebStorage, WebIconDatabase etc we refactor it into a
proxy class, and move the current implementation into
WebViewDatabaseClassic.

Also clean up some JavaDoc in touched files.

Bug: 6234236
Change-Id: I71cbd8f78e60f396e96e8546073ad634797cce15
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
d3101b1d300f5942fdb7dfa323dc8830c4edc007 12-Apr-2012 Jonathan Dixon <joth@google.com> Seperate interface and implementation of 4 WebView classes

GeolocationPermissionsClassic
CookieManagerClassic
WebIconDatabaseClassic
WebStorageClassic

Also creats a WebViewFactory top level class - this remains hidden
for now, as it's currently only used implicitly by the other
public WebView classes to create the provider instances.

Bug: 5626244

Change-Id: Id0ca1c16d8058f31a86414bbc0e8a55db4b907ba
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java
3c90952036a5ff7ddb2946c643f1a0bf1c31d53a 28-Feb-2012 Jonathan Dixon <joth@google.com> Refactor WebView to be a thin proxy class

Splits interface and implementation; all client calls are forwarded
to an abstract WebViewProvider interface, and the existing implementation
moved into the WebViewClassic implementor of this interface.

Originally taken from a snapshot from the development branch, by:
git diff HEAD 9a4c328a54cc05e5 | git apply
- but then rebased to keep up to date with master

Interdepends on webkit and Browser changes:
https://android-git.corp.google.com/g/158979
https://android-git.corp.google.com/g/167911

Change-Id: I91403f32654ff308934e95c832d17b292a7d9b2e
/frameworks/base/core/java/android/webkit/WebViewFactoryProvider.java