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
Is your feature request related to a problem? Please describe.
Today I wanted to interface the native (Browser) Cookies with the java URL CookieHandler, for that purpose one usually would use a CookieManager with a CookieStore, sadly SWT lacks some important functionality to implement this interface especially the option to list cookies.
Describe the solution you'd like
At best there would be a method Browser#getCookieStore() that returns a CookieStore that is in sync with the native Browser instances. As CookieStore is part of base java this would not impose any additional requirements here and would greatly simplify such tasks instead of having different implementations. As the Browser Cookie API is static anyways one can directly call the native methods in such implementation.
Describe alternatives you've considered
As an alternative, there should be methods to list all current cookies to allow client to implement their own.
Additional context
This would greatly increase the interoperability of SWT browser and the surrounding application, currently an application that want to share cookie data with a browser instance must explicitly know the names and URLs of cookies it likes to share.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Today I wanted to interface the native (Browser) Cookies with the java URL CookieHandler, for that purpose one usually would use a CookieManager with a CookieStore, sadly SWT lacks some important functionality to implement this interface especially the option to list cookies.
Describe the solution you'd like
At best there would be a method
Browser#getCookieStore()
that returns aCookieStore
that is in sync with the native Browser instances. AsCookieStore
is part of base java this would not impose any additional requirements here and would greatly simplify such tasks instead of having different implementations. As the Browser Cookie API is static anyways one can directly call the native methods in such implementation.Describe alternatives you've considered
As an alternative, there should be methods to list all current cookies to allow client to implement their own.
Additional context
This would greatly increase the interoperability of SWT browser and the surrounding application, currently an application that want to share cookie data with a browser instance must explicitly know the names and URLs of cookies it likes to share.
The text was updated successfully, but these errors were encountered: