support enterprise roots
This commit is contained in:
+7
@@ -129,6 +129,9 @@ class GeckoEngineSettingsApiImpl : GeckoEngineSettingsApi {
|
||||
|
||||
//TODO: Add bounce tracking protection when available
|
||||
}
|
||||
if(settings.enterpriseRootsEnabled != null) {
|
||||
components.core.engineSettings.enterpriseRootsEnabled = settings.enterpriseRootsEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
override fun updateRuntimeSettings(settings: GeckoEngineSettings) {
|
||||
@@ -197,6 +200,10 @@ class GeckoEngineSettingsApiImpl : GeckoEngineSettingsApi {
|
||||
|
||||
reloadSession = true
|
||||
}
|
||||
if(settings.enterpriseRootsEnabled != null) {
|
||||
components.core.engine.settings.enterpriseRootsEnabled = components.core.engineSettings.enterpriseRootsEnabled
|
||||
reloadSession = true
|
||||
}
|
||||
|
||||
if(reloadSession) {
|
||||
components.useCases.sessionUseCases.reload()
|
||||
|
||||
+6
-3
@@ -1,4 +1,4 @@
|
||||
// Autogenerated from Pigeon (v26.0.0), do not edit directly.
|
||||
// Autogenerated from Pigeon (v26.0.1), do not edit directly.
|
||||
// See also: https://pub.dev/packages/pigeon
|
||||
@file:Suppress("UNCHECKED_CAST", "ArrayInDataClass")
|
||||
|
||||
@@ -1542,7 +1542,8 @@ data class GeckoEngineSettings (
|
||||
val cookieBannerHandlingGlobalRulesSubFrames: Boolean? = null,
|
||||
val webContentIsolationStrategy: WebContentIsolationStrategy? = null,
|
||||
val userAgent: String? = null,
|
||||
val contentBlocking: ContentBlocking? = null
|
||||
val contentBlocking: ContentBlocking? = null,
|
||||
val enterpriseRootsEnabled: Boolean? = null
|
||||
)
|
||||
{
|
||||
companion object {
|
||||
@@ -1559,7 +1560,8 @@ data class GeckoEngineSettings (
|
||||
val webContentIsolationStrategy = pigeonVar_list[9] as WebContentIsolationStrategy?
|
||||
val userAgent = pigeonVar_list[10] as String?
|
||||
val contentBlocking = pigeonVar_list[11] as ContentBlocking?
|
||||
return GeckoEngineSettings(javascriptEnabled, trackingProtectionPolicy, httpsOnlyMode, globalPrivacyControlEnabled, preferredColorScheme, cookieBannerHandlingMode, cookieBannerHandlingModePrivateBrowsing, cookieBannerHandlingGlobalRules, cookieBannerHandlingGlobalRulesSubFrames, webContentIsolationStrategy, userAgent, contentBlocking)
|
||||
val enterpriseRootsEnabled = pigeonVar_list[12] as Boolean?
|
||||
return GeckoEngineSettings(javascriptEnabled, trackingProtectionPolicy, httpsOnlyMode, globalPrivacyControlEnabled, preferredColorScheme, cookieBannerHandlingMode, cookieBannerHandlingModePrivateBrowsing, cookieBannerHandlingGlobalRules, cookieBannerHandlingGlobalRulesSubFrames, webContentIsolationStrategy, userAgent, contentBlocking, enterpriseRootsEnabled)
|
||||
}
|
||||
}
|
||||
fun toList(): List<Any?> {
|
||||
@@ -1576,6 +1578,7 @@ data class GeckoEngineSettings (
|
||||
webContentIsolationStrategy,
|
||||
userAgent,
|
||||
contentBlocking,
|
||||
enterpriseRootsEnabled,
|
||||
)
|
||||
}
|
||||
override fun equals(other: Any?): Boolean {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Autogenerated from Pigeon (v26.0.0), do not edit directly.
|
||||
// Autogenerated from Pigeon (v26.0.1), do not edit directly.
|
||||
// See also: https://pub.dev/packages/pigeon
|
||||
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers
|
||||
|
||||
@@ -1880,6 +1880,7 @@ class GeckoEngineSettings {
|
||||
this.webContentIsolationStrategy,
|
||||
this.userAgent,
|
||||
this.contentBlocking,
|
||||
this.enterpriseRootsEnabled,
|
||||
});
|
||||
|
||||
bool? javascriptEnabled;
|
||||
@@ -1906,6 +1907,8 @@ class GeckoEngineSettings {
|
||||
|
||||
ContentBlocking? contentBlocking;
|
||||
|
||||
bool? enterpriseRootsEnabled;
|
||||
|
||||
List<Object?> _toList() {
|
||||
return <Object?>[
|
||||
javascriptEnabled,
|
||||
@@ -1920,6 +1923,7 @@ class GeckoEngineSettings {
|
||||
webContentIsolationStrategy,
|
||||
userAgent,
|
||||
contentBlocking,
|
||||
enterpriseRootsEnabled,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1941,6 +1945,7 @@ class GeckoEngineSettings {
|
||||
webContentIsolationStrategy: result[9] as WebContentIsolationStrategy?,
|
||||
userAgent: result[10] as String?,
|
||||
contentBlocking: result[11] as ContentBlocking?,
|
||||
enterpriseRootsEnabled: result[12] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -592,6 +592,7 @@ class GeckoEngineSettings {
|
||||
final WebContentIsolationStrategy? webContentIsolationStrategy;
|
||||
final String? userAgent;
|
||||
final ContentBlocking? contentBlocking;
|
||||
final bool? enterpriseRootsEnabled;
|
||||
|
||||
GeckoEngineSettings(
|
||||
this.javascriptEnabled,
|
||||
@@ -606,6 +607,7 @@ class GeckoEngineSettings {
|
||||
this.webContentIsolationStrategy,
|
||||
this.userAgent,
|
||||
this.contentBlocking,
|
||||
this.enterpriseRootsEnabled,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user