NEW200298
[WPE][GTK] WebKitCookieManager fails to persist if its persistent storage set before WebKitWebsiteDataManager assigned to WebKitWebContext
https://bugs.webkit.org/show_bug.cgi?id=200298
Summary [WPE][GTK] WebKitCookieManager fails to persist if its persistent storage set...
Andri Möll
Reported 2019-07-31 02:30:19 PDT
Hey, Turns out if you get the cookie manager off of a new non-ephemeral WebKitWebsiteDataManager and set its persistence with `webkit_cookie_manager_set_persistent_storage`, that fails to take effect if you haven't created a WebKitWebContext with the data manager prior with `webkit_web_context_new_with_website_data_manager`. Because I think it's quite natural to configure a data manager before passing it onward for web context use, having such a "forward" dependency isn't intuitive. Nor mentioned in documentation, as far I noticed. This with WebKitGTK v2.24.3. Cheers
Attachments
Michael Catanzaro
Comment 1 2019-07-31 09:47:26 PDT
Hm, I agree this is a problem. Basically all of the WebKitCookieManager functions will fail before the WebKitWebsiteDataManager is associated to a WebKitWebContext. That shouldn't be, but it's not straightforward to fix. We used to have a similar bug, where the calls would fail even after the WebKitWebContext is associated if before the first web process is launched. (I'm pretty sure that's still broken on Mac, actually.)
Note You need to log in before you can comment on or make changes to this bug.