From fa1fd2cb7d1bfcf17a02b926b3dfc2eefe5b9461 Mon Sep 17 00:00:00 2001 From: Tao Bai Date: Wed, 30 Apr 2014 13:31:34 -0700 Subject: Public WebView permission API BUG: 13699047 Change-Id: Ibcc8c0d4f1bba4365cb71c1991a0fcb1d7febb94 --- core/java/android/webkit/WebView.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'core/java/android/webkit/WebView.java') diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 4b2b52c..91ca7b4 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1682,13 +1682,15 @@ public class WebView extends AbsoluteLayout /** * Preauthorize the given origin to access resources. - * This authorization only valid for this WebView instance life cycle and + * The authorization only valid for this WebView instance's life cycle and * will not retained. * + * In the case that an origin has had resources preauthorized, calls to + * {@link WebChromeClient#onPermissionRequest(PermissionRequest)} will not be + * made for those resources from that origin. + * * @param origin the origin authorized to access resources * @param resources the resource authorized to be accessed by origin. - * - * @hide */ public void preauthorizePermission(Uri origin, long resources) { checkThread(); -- cgit v1.1