зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1699480 - Update GV changelog for permissions API changes. r=geckoview-reviewers,agi
Depends on D113421 Differential Revision: https://phabricator.services.mozilla.com/D113422
This commit is contained in:
Родитель
a8706c49cc
Коммит
4e374809d5
|
@ -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;
|
||||
|
@ -965,7 +965,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;
|
||||
|
@ -973,6 +973,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;
|
||||
}
|
||||
|
||||
|
@ -983,9 +984,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 {
|
||||
|
|
|
@ -25,6 +25,12 @@ exclude: true
|
|||
([bug 1701269]({{bugzilla}}1701269))
|
||||
- Removed deprecated [`GeckoView.onTouchEventForResult`][88.4].
|
||||
([bug 1706403]({{bugzilla}}1706403))
|
||||
- ⚠️ Updated [`onContentPermissionRequest`][90.7] to use [`ContentPermission`][90.8]; added
|
||||
[`setPermission`][90.9] to [`StorageController`][90.10] 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.11], 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
|
||||
|
@ -32,6 +38,11 @@ exclude: true
|
|||
[90.4]: https://developer.mozilla.org/en-US/docs/Web/API/Notification/vibrate
|
||||
[90.5]: {{javadoc_uri}}/GeckoRuntime.html#getProfileDir--
|
||||
[90.6]: {{javadoc_uri}}/GeckoRuntimeSettings.html#setForceEnableAccessibility-boolean-
|
||||
[90.7]: {{javadoc_uri}}/GeckoSession.PermissionDelegate.html#onContentPermissionRequest-org.mozilla.geckoview.GeckoSession-org.mozilla.geckoview.GeckoSession.PermissionDelegate.ContentPermission-
|
||||
[90.8]: {{javadoc_uri}}/GeckoSession.PermissionDelegate.ContentPermission.html
|
||||
[90.9]: {{javadoc_uri}}/StorageController.html#setPermission-org.mozilla.geckoview.GeckoSession.PermissionDelegate.ContentPermission-int-
|
||||
[90.10]: {{javadoc_uri}}/StorageController.html
|
||||
[90.11]: {{javadoc_uri}}/ContentBlockingController.html#addException-org.mozilla.geckoview.GeckoSession-
|
||||
|
||||
## v89
|
||||
- Added [`ContentPermission`][89.1], which is used to report what permissions content
|
||||
|
|
Загрузка…
Ссылка в новой задаче