Bug 1806188 - Expose MODE_DETECT_ONLY in GeckoView r=geckoview-reviewers,owlish,kaya

Differential Revision: https://phabricator.services.mozilla.com/D164947
This commit is contained in:
Arturo Mejia 2022-12-19 19:32:27 +00:00
parent 57387cef60
commit fa43529fb9
3 changed files with 11 additions and 2 deletions

View File

@ -448,6 +448,7 @@ package org.mozilla.geckoview {
public static class ContentBlocking.CookieBannerMode {
ctor protected CookieBannerMode();
field public static final int COOKIE_BANNER_MODE_DETECT_ONLY = 3;
field public static final int COOKIE_BANNER_MODE_DISABLED = 0;
field public static final int COOKIE_BANNER_MODE_REJECT = 1;
field public static final int COOKIE_BANNER_MODE_REJECT_OR_ACCEPT = 2;

View File

@ -1639,6 +1639,9 @@ public class ContentBlocking {
/** Reject cookies when possible otherwise accept the cookies. */
public static final int COOKIE_BANNER_MODE_REJECT_OR_ACCEPT = 2;
/** Detect cookie banners but do not handle them. */
public static final int COOKIE_BANNER_MODE_DETECT_ONLY = 3;
protected CookieBannerMode() {}
}
@ -1646,7 +1649,8 @@ public class ContentBlocking {
@IntDef({
CookieBannerMode.COOKIE_BANNER_MODE_DISABLED,
CookieBannerMode.COOKIE_BANNER_MODE_REJECT,
CookieBannerMode.COOKIE_BANNER_MODE_REJECT_OR_ACCEPT
CookieBannerMode.COOKIE_BANNER_MODE_REJECT_OR_ACCEPT,
CookieBannerMode.COOKIE_BANNER_MODE_DETECT_ONLY
})
public @interface CBCookieBannerMode {}
}

View File

@ -13,6 +13,10 @@ exclude: true
⚠️ breaking change and deprecation notices
## v110
- Added [`CookieBannerMode.COOKIE_BANNER_MODE_DETECT_ONLY`][110.3], for detecting cookie banners but not handle them, see ([bug 1797581]({{bugzilla}}1806188))
[110.3]: {{javadoc_uri}}/ContentBlocking.CookieBannerMode.html#COOKIE_BANNER_MODE_DETECT_ONLY
## v109
- Added [`SelectionActionDelegate.Selection.screenRect`][109.1] for fission compatible.
- ⚠️ Deprecated [`SelectionActionDelegate.Selection.clientRect`][109.2],
@ -1277,4 +1281,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]: 56b14bd2184591e39396f9cf74aeb2b5d2b09b33
[api-version]: 04a32c0bff2ec5ef372e64cf293528e1a39114d8