Changeset 99578 in webkit


Ignore:
Timestamp:
Nov 8, 2011, 9:36:04 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[WK][GTK] Application cache directory is incorrectly set
https://bugs.webkit.org/show_bug.cgi?id=71769

Patch by Zan Dobersek <zandobersek@gmail.com> on 2011-11-08
Reviewed by Martin Robinson.

Set the application cache directory to be placed in current user's
cache directory and update documentation for
webkit_application_cache_get_database_directory_path after these
changes and changes in r80715;

  • webkit/webkitapplicationcache.cpp:
  • webkit/webkitglobals.cpp:

(webkitInit): Switch one string formation to use GOwnPtr<gchar>.

Location:
trunk/Source/WebKit/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/ChangeLog

    r99239 r99578  
     12011-11-08  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        [WK][GTK] Application cache directory is incorrectly set
     4        https://bugs.webkit.org/show_bug.cgi?id=71769
     5
     6        Reviewed by Martin Robinson.
     7
     8        Set the application cache directory to be placed in current user's
     9        cache directory and update documentation for
     10        webkit_application_cache_get_database_directory_path after these
     11        changes and changes in r80715;
     12
     13        * webkit/webkitapplicationcache.cpp:
     14        * webkit/webkitglobals.cpp:
     15        (webkitInit): Switch one string formation to use GOwnPtr<gchar>.
     16
    1172011-11-03  Darin Adler  <darin@apple.com>
    218
  • trunk/Source/WebKit/gtk/webkit/webkitapplicationcache.cpp

    r95919 r99578  
    6666
    6767/**
    68  * webkit_spplication_cache_get_database_directory_path:
     68 * webkit_application_cache_get_database_directory_path:
    6969 *
    70  * Returns the current path to the directory WebKit will write web application
    71  * cache databases. By default this path is set to $XDG_DATA_HOME/webkit/databases
    72  * with webkit_application_cache_set_database_directory_path
     70 * Returns the path to the directory WebKit will write web application
     71 * cache databases to. By default this path is set to
     72 * $XDG_CACHE_HOME/webkitgtk/applications and cannot be modified.
    7373 *
    74  * Returns: the current application cache database directory path
     74 * Returns: the application cache database directory path
    7575 *
    7676 * Since: 1.3.13
  • trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp

    r95919 r99578  
    317317    atomicCanonicalTextEncodingName("UTF-8");
    318318
    319     gchar* databaseDirectory = g_build_filename(g_get_user_data_dir(), "webkit", "databases", NULL);
    320     webkit_set_web_database_directory_path(databaseDirectory);
    321     WebCore::cacheStorage().setCacheDirectory(databaseDirectory);
    322 
    323     g_free(databaseDirectory);
     319    GOwnPtr<gchar> databaseDirectory(g_build_filename(g_get_user_data_dir(), "webkit", "databases", NULL));
     320    webkit_set_web_database_directory_path(databaseDirectory.get());
     321
     322    GOwnPtr<gchar> cacheDirectory(g_build_filename(g_get_user_cache_dir(), "webkitgtk", "applications", NULL));
     323    WebCore::cacheStorage().setCacheDirectory(cacheDirectory.get());
    324324
    325325    PageGroup::setShouldTrackVisitedLinks(true);
Note: See TracChangeset for help on using the changeset viewer.