You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since WKWebView does not support setting a data directory there is (to my knowledge) no support for webviews having independent cookies/localStorage in wry (or tauri) on macOS. tauri-apps/tauri#8637
WKWebView does however support initializing WKWebsiteDataStore with an identifier (NSUUID), which creates a separate data directory in /Users/<user>/Library/WebKit/WebsiteDataStore/<NSUUID>
instead of using the default /Users/<user>/Library/WebKit/WebsiteData.
Would the team be interested in adding support for this in wry and tauri? It could be added to wry::PlatformSpecificWebViewAttributes which right now is only used on Windows.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since WKWebView does not support setting a data directory there is (to my knowledge) no support for webviews having independent cookies/localStorage in wry (or tauri) on macOS.
tauri-apps/tauri#8637
WKWebView does however support initializing WKWebsiteDataStore with an identifier (NSUUID), which creates a separate data directory in
/Users/<user>/Library/WebKit/WebsiteDataStore/<NSUUID>
instead of using the default
/Users/<user>/Library/WebKit/WebsiteData
.Reference:
https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4183560-datastoreforidentifier?language=objc
Would the team be interested in adding support for this in wry and tauri? It could be added to wry::PlatformSpecificWebViewAttributes which right now is only used on Windows.
I would be happy to send a PR.
Beta Was this translation helpful? Give feedback.
All reactions