-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt6 Webengine doesn't save cookies and caches #4484
Comments
This is definitely a preference for us- would rather not introduce unneccesary vulnerabilities and attack surfaces. |
Fair enough. Should probably be mentioned when we switch to qt6 since the behavior of web page charts will change. We should still check for regressions. To me it looks like we depend on the profile in a few places:
|
I agree this is a better behavior for OAuth, for the Web Page chart I think we could make it opt in, requiring explicit enable in chart config since cookies are useful for automatic login, for example to download original files from Garmin Connect. |
I think having caching enabled for maps would be nice since we rely on volunteer driven projects like openstreetmap or opentopomap and their tile servers. Even though I've discovered the issue while working on a python chart, I think for those it doesn't actually matter and might not be worth the effort. |
I think you are right- we should look to enable caching for the map. |
Agree, we could create a global QWebEngineProfile to enable caching without persistent cookies for the maps using setPersistentCookiesPolicy(QWebEngineProfile::NoPersistentCookies). For the WebChart to enable cache/cookies the QWebEngineProfile storage name must be unique, we could create a different one for each instance of the chart. The QWebEngineProfile must be destroyed before exit, explicitly or via parenting. |
- Disable in-place name edition - Use double click to edit perspective To match the behavior of similar lists.
Turns out, Webengine in Qt6 no longer creates a Default Profile and therefore neither caches nor cookies are stored.
https://forum.qt.io/topic/131277/qtwebengine-cannot-save-cache
https://doc-snapshots.qt.io/qt6-dev/qtwebengine-changes-qt6.html#default-profile
The text was updated successfully, but these errors were encountered: