After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748303 - Prevent WebKit2 from blowing away our cache
Prevent WebKit2 from blowing away our cache
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
3.16.x
Other All
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-04-22 14:42 UTC by Debarshi Ray
Modified: 2015-04-22 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
edit: Prevent WebKit2 from blowing away our cache (1.31 KB, patch)
2015-04-22 14:45 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2015-04-22 14:42:44 UTC
WebKit2 assumes g_get_user_cache_dir()/g_get_application_name() as its cache directory and deletes anything it doesn't recognize to prevent cache leaks. We should explicitly set a cache directory to prevent this behaviour from blowing away our own cache.

See: https://bugs.webkit.org/show_bug.cgi?id=144042

This is not an issue with WebKit1.
Comment 1 Debarshi Ray 2015-04-22 14:45:14 UTC
Created attachment 302157 [details] [review]
edit: Prevent WebKit2 from blowing away our cache
Comment 2 Cosimo Cecchi 2015-04-22 16:25:24 UTC
Review of attachment 302157 [details] [review]:

Oops, nice catch!
Comment 3 Debarshi Ray 2015-04-22 16:37:55 UTC
Thanks, Cosimo.