Bug 1708815 - Rename enterpiseRootsEnabled r=geckoview-reviewers,agi,owlish

Differential Revision: https://phabricator.services.mozilla.com/D127729
This commit is contained in:
Cathy Lu 2021-10-07 19:16:41 +00:00
parent 25cc5998ca
commit dcdbccb976
3 changed files with 24 additions and 2 deletions

View File

@ -782,7 +782,8 @@ package org.mozilla.geckoview {
method @NonNull public GeckoRuntimeSettings.Builder displayDensityOverride(float);
method @NonNull public GeckoRuntimeSettings.Builder displayDpiOverride(int);
method @NonNull public GeckoRuntimeSettings.Builder doubleTapZoomingEnabled(boolean);
method @NonNull public GeckoRuntimeSettings.Builder enterpiseRootsEnabled(boolean);
method @Deprecated @DeprecationSchedule(version=98,id="runtime-settings-typo") @NonNull public GeckoRuntimeSettings.Builder enterpiseRootsEnabled(boolean);
method @NonNull public GeckoRuntimeSettings.Builder enterpriseRootsEnabled(boolean);
method @NonNull public GeckoRuntimeSettings.Builder extras(@NonNull Bundle);
method @NonNull public GeckoRuntimeSettings.Builder fontInflation(boolean);
method @NonNull public GeckoRuntimeSettings.Builder fontSizeFactor(float);

View File

@ -225,12 +225,29 @@ public final class GeckoRuntimeSettings extends RuntimeSettings {
*
* @param enabled whether to enable this feature or not
* @return The builder instance
* @deprecated use {@link #setEnterpriseRootsEnabled} instead.
*/
@Deprecated
@DeprecationSchedule(version = 98, id = "runtime-settings-typo")
public @NonNull Builder enterpiseRootsEnabled(final boolean enabled) {
getSettings().setEnterpriseRootsEnabled(enabled);
return this;
}
/**
* Enable the Enterprise Roots feature.
*
* When Enabled, GeckoView will fetch the third-party root certificates added to the
* Android OS CA store and will use them internally.
*
* @param enabled whether to enable this feature or not
* @return The builder instance
*/
public @NonNull Builder enterpriseRootsEnabled(final boolean enabled) {
getSettings().setEnterpriseRootsEnabled(enabled);
return this;
}
/**
* Set whether or not font inflation for non mobile-friendly pages should be enabled. The
* default value of this setting is <code>false</code>.

View File

@ -24,6 +24,8 @@ exclude: true
- Added [`setPrivateBrowsingPermanentPermission`][95.6], which allows apps to set
permanent permissions in private browsing (e.g. to set permanent tracking
protection permissions in private browsing).
- Deprecated [`GeckoRuntimeSettings.Builder.enterpiseRootsEnabled`][95.7] due to typo.
- Added [`GeckoRuntimeSettings.Builder.enterpriseRootsEnabled`][95.8] to replace [`GeckoRuntimeSettings.Builder.enterpiseRootsEnabled`][95.7].
[95.1]: {{javadoc_uri}}/GeckoSession.ContentDelegate.html#onPointerIconChange-org.mozilla.geckoview.GeckoSession-android.view.PointerIcon-
[95.2]: {{javadoc_uri}/ContentBlockingController.html
@ -31,6 +33,8 @@ exclude: true
[95.4]: {{javadoc_uri}/GeckoSession.PermissionDelegate.html#PERMISSION_TRACKING
[95.5]: {{javadoc_uri}/GeckoSession.NavigationDelegate.html#onLocationChange-org.mozilla.geckoview.GeckoSession-java.lang.String-java.util.List-
[95.6]: {{javadoc_uri}/StorageController.html#setPrivateBrowsingPermanentPermission-org.mozilla.geckoview.GeckoSession.PermissionDelegate.ContentPermission-int-
[95.7]: {{javadoc_uri}}/GeckoRuntimeSettings.Builder.html#enterpiseRootsEnabled-boolean-
[95.8]: {{javadoc_uri}}/GeckoRuntimeSettings.Builder.html#enterpriseRootsEnabled-boolean-
## v94
- Extended [`Autocomplete`][78.7] API to support credit card saving.
@ -1065,4 +1069,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]: d232006cf02e5e14925315cabfd6ccc2cf8bffe9
[api-version]: efde9e11f6249cf145903d7c6e317d5c17be8d1e