Das Absturzprotokoll
Code: Select all
EXC_BREAKPOINT: HashMap &WebKit::allDataStores()
WebViewCookieManager.syncFromAppToWebView
...
Code: Select all
func syncFromAppToWebView(_ syncCookies: [HTTPCookie]? = nil) async {
guard let webView else { return }
guard let cookies = HTTPCookieStorage.shared.cookies else { return }
let appCookies = syncCookies?.isEmpty == false ? syncCookies! : cookies
let httpCookieStore = await webView.configuration.websiteDataStore.httpCookieStore
for cookie in appCookies {
await httpCookieStore.setCookie(cookie)
}
}
Mobile version