Add cookie and site-data APIs with tests and docs#40
Add cookie and site-data APIs with tests and docs#40marcprux merged 2 commits intoskiptools:mainfrom
Conversation
|
Can you describe some scenarios where this is useful? Is it largely for letting user to do things like manually clearing cookies or viewing their attributes, or are there other uses like being able to programmatically set cookies in a browser session? What are your use cases for this? |
Unrelated but I haven't been able to compile the Here is the error: |
That's odd. That error isn't why the CI is failing, which is a different issue that only happens in the iOS build: For the |
|
Yes the The CI tests passed after the latest adjustments Next, I'm planning to add profile support to skip-web, to power featues like transient profiles for private browsing (similar to Safari's Private Tabs). Currently, all webviews share a single cookie store on both Android + iOS. Happy to fold this into the current PR rather than open a new one — let me know! |
|
I'll merge this one and you can open a new PR for profiles so we can keep that size of the PRs small(-ish). This is a great feature, thanks! |
WKWebView'sWKWebsiteDataStore.removeData(ofTypes:modifiedSince:)(On Android the only timeframe that will not throw is
.distantPastbecause of the underlying API's limitations)Skip Pull Request Checklist:
swift testCodex generated the code under supervision. Tested manually from a native sandbox app