support enterprise roots

This commit is contained in:
Fabian Freund
2025-08-28 15:42:43 +02:00
parent a5acf9a732
commit 8c1106472a
9 changed files with 63 additions and 5 deletions
@@ -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()
@@ -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 {