Bug 1699480 - Update GV changelog for permissions API changes. r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D113422
This commit is contained in:
Dylan Roeh 2021-05-17 15:55:22 +00:00
Родитель 98866abf89
Коммит 417ca0c967
2 изменённых файлов: 26 добавлений и 9 удалений

Просмотреть файл

@ -462,16 +462,16 @@ package org.mozilla.geckoview {
@AnyThread public class ContentBlockingController {
ctor public ContentBlockingController();
method @UiThread public void addException(@NonNull GeckoSession);
method @NonNull @UiThread public GeckoResult<Boolean> checkException(@NonNull GeckoSession);
method @UiThread public void clearExceptionList();
method @DeprecationSchedule(version=93,id="content-blocking-exception") @NonNull @UiThread public GeckoResult<Boolean> checkException(@NonNull GeckoSession);
method @DeprecationSchedule(version=93,id="content-blocking-exception") @UiThread public void clearExceptionList();
method @NonNull @UiThread public GeckoResult<List<ContentBlockingController.LogEntry>> getLog(@NonNull GeckoSession);
method @UiThread public void removeException(@NonNull GeckoSession);
method @AnyThread public void removeException(@NonNull ContentBlockingController.ContentBlockingException);
method @AnyThread public void restoreExceptionList(@NonNull List<ContentBlockingController.ContentBlockingException>);
method @NonNull @UiThread public GeckoResult<List<ContentBlockingController.ContentBlockingException>> saveExceptionList();
method @DeprecationSchedule(version=93,id="content-blocking-exception") @UiThread public void removeException(@NonNull GeckoSession);
method @AnyThread @DeprecationSchedule(version=93,id="content-blocking-exception") public void removeException(@NonNull ContentBlockingController.ContentBlockingException);
method @AnyThread @DeprecationSchedule(version=93,id="content-blocking-exception") public void restoreExceptionList(@NonNull List<ContentBlockingController.ContentBlockingException>);
method @DeprecationSchedule(version=93,id="content-blocking-exception") @NonNull @UiThread public GeckoResult<List<ContentBlockingController.ContentBlockingException>> saveExceptionList();
}
@AnyThread public static class ContentBlockingController.ContentBlockingException {
@DeprecationSchedule(version=93,id="content-blocking-exception") @AnyThread public static class ContentBlockingController.ContentBlockingException {
method @NonNull public static ContentBlockingController.ContentBlockingException fromJson(@NonNull JSONObject);
method @NonNull public JSONObject toJson();
field @NonNull public final String uri;
@ -963,7 +963,7 @@ package org.mozilla.geckoview {
public static interface GeckoSession.PermissionDelegate {
method @UiThread default public void onAndroidPermissionsRequest(@NonNull GeckoSession, @Nullable String[], @NonNull GeckoSession.PermissionDelegate.Callback);
method @UiThread default public void onContentPermissionRequest(@NonNull GeckoSession, @Nullable String, int, @NonNull GeckoSession.PermissionDelegate.Callback);
method @Nullable @UiThread default public GeckoResult<Integer> onContentPermissionRequest(@NonNull GeckoSession, @NonNull GeckoSession.PermissionDelegate.ContentPermission);
method @UiThread default public void onMediaPermissionRequest(@NonNull GeckoSession, @NonNull String, @Nullable GeckoSession.PermissionDelegate.MediaSource[], @Nullable GeckoSession.PermissionDelegate.MediaSource[], @NonNull GeckoSession.PermissionDelegate.MediaCallback);
field public static final int PERMISSION_AUTOPLAY_AUDIBLE = 5;
field public static final int PERMISSION_AUTOPLAY_INAUDIBLE = 4;
@ -971,6 +971,7 @@ package org.mozilla.geckoview {
field public static final int PERMISSION_GEOLOCATION = 0;
field public static final int PERMISSION_MEDIA_KEY_SYSTEM_ACCESS = 6;
field public static final int PERMISSION_PERSISTENT_STORAGE = 2;
field public static final int PERMISSION_TRACKING = 7;
field public static final int PERMISSION_XR = 3;
}
@ -981,9 +982,12 @@ package org.mozilla.geckoview {
public static class GeckoSession.PermissionDelegate.ContentPermission {
ctor protected ContentPermission();
method @AnyThread @Nullable public static GeckoSession.PermissionDelegate.ContentPermission fromJson(@NonNull JSONObject);
method @AnyThread @NonNull public JSONObject toJson();
field public static final int VALUE_ALLOW = 1;
field public static final int VALUE_DENY = 2;
field public static final int VALUE_PROMPT = 3;
field @Nullable public final String contextId;
field public final int permission;
field public final boolean privateMode;
field @NonNull public final String uri;
@ -1699,6 +1703,8 @@ package org.mozilla.geckoview {
method @AnyThread @NonNull public GeckoResult<Void> clearDataFromHost(@NonNull String, long);
method @AnyThread @NonNull public GeckoResult<List<GeckoSession.PermissionDelegate.ContentPermission>> getAllPermissions();
method @AnyThread @NonNull public GeckoResult<List<GeckoSession.PermissionDelegate.ContentPermission>> getPermissions(@NonNull String);
method @AnyThread @NonNull public GeckoResult<List<GeckoSession.PermissionDelegate.ContentPermission>> getPermissions(@NonNull String, @Nullable String);
method @AnyThread public void setPermission(@NonNull GeckoSession.PermissionDelegate.ContentPermission, int);
}
public static class StorageController.ClearFlags {

Просмотреть файл

@ -18,11 +18,22 @@ exclude: true
support. See also [Web/API/Notification/silent][90.3] and
[Web/API/Notification/vibrate][90.4].
([bug 1696145]({{bugzilla}}1696145))
- ⚠️ Updated [`onContentPermissionRequest`][90.5] to use [`ContentPermission`][90.6]; added
[`setPermission`][90.7] to [`StorageController`][90.8] for modifying existing permissions, and
allowed Gecko to handle persisting permissions.
- ⚠️ Added a deprecation schedule to most existing content blocking exception functionality;
other than [`addException`][90.9], content blocking exceptions should be treated as content
permissions going forward.
[90.1]: {{javadoc_uri}}/WebNotification.html#silent
[90.2]: {{javadoc_uri}}/WebNotification.html#vibrate
[90.3]: https://developer.mozilla.org/en-US/docs/Web/API/Notification/silent
[90.4]: https://developer.mozilla.org/en-US/docs/Web/API/Notification/vibrate
[90.5]: {{javadoc_uri}}/GeckoSession.PermissionDelegate.html#onContentPermissionRequest-org.mozilla.geckoview.GeckoSession-org.mozilla.geckoview.GeckoSession.PermissionDelegate.ContentPermission-
[90.6]: {{javadoc_uri}}/GeckoSession.PermissionDelegate.ContentPermission.html
[90.7]: {{javadoc_uri}}/StorageController.html#setPermission-org.mozilla.geckoview.GeckoSession.PermissionDelegate.ContentPermission-int-
[90.8]: {{javadoc_uri}}/StorageController.html
[90.9]: {{javadoc_uri}}/ContentBlockingController.html#addException-org.mozilla.geckoview.GeckoSession-
## v89
- Added [`ContentPermission`][89.1], which is used to report what permissions content
@ -990,4 +1001,4 @@ to allow adding gecko profiler markers.
[65.24]: {{javadoc_uri}}/CrashReporter.html#sendCrashReport-android.content.Context-android.os.Bundle-java.lang.String-
[65.25]: {{javadoc_uri}}/GeckoResult.html
[api-version]: d2704dbc8956197877f3a4e3ea3d7fc6f3cb4fc1
[api-version]: f9fd740ab3de223374fbf896adb10cff49e8aef3