From b7001546492d2cadedae417ce35e61ba5d862550 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 3 Mar 2026 00:36:47 -0500 Subject: [PATCH] [iOS] Don't create default WebKit configuration in TabStateFactory (#34378) Follow-up fix for #34329 where a default WebKit configuration was being created anyways and would assert when `UseProfileWebViewConfiguration` was enabled. --- ios/brave-ios/Sources/Web/TabState.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/brave-ios/Sources/Web/TabState.swift b/ios/brave-ios/Sources/Web/TabState.swift index 2c90850c431..9a824535c61 100644 --- a/ios/brave-ios/Sources/Web/TabState.swift +++ b/ios/brave-ios/Sources/Web/TabState.swift @@ -46,8 +46,8 @@ public class TabStateFactory { } public static func create(with params: CreateTabParams) -> any TabState { - let wkConfiguration = params.initialConfiguration ?? .init() - wkConfiguration.enablePageTopColorSampling() + let wkConfiguration = params.initialConfiguration + wkConfiguration?.enablePageTopColorSampling() let cwvConfiuration = BraveWebViewConfiguration(profile: params.profile) return ChromiumTabState( id: params.id,