Title: [99603] trunk/Source/WebKit2
Revision
99603
Author
[email protected]
Date
2011-11-08 12:10:44 -0800 (Tue, 08 Nov 2011)

Log Message

[WK2][GTK] The default database & local storage directory names should note they exist for Gtk port's needs
https://bugs.webkit.org/show_bug.cgi?id=71837

Patch by Zan Dobersek <[email protected]> on 2011-11-08
Reviewed by Martin Robinson.

Ensure that directories for databases and local storage are in a 'webkitgtk'
directory in current user's data directory, noting they originate from the Gtk port.

* UIProcess/gtk/WebContextGtk.cpp:
(WebKit::WebContext::platformDefaultDatabaseDirectory):
(WebKit::WebContext::platformDefaultLocalStorageDirectory):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (99602 => 99603)


--- trunk/Source/WebKit2/ChangeLog	2011-11-08 20:08:51 UTC (rev 99602)
+++ trunk/Source/WebKit2/ChangeLog	2011-11-08 20:10:44 UTC (rev 99603)
@@ -1,3 +1,17 @@
+2011-11-08  Zan Dobersek  <[email protected]>
+
+        [WK2][GTK] The default database & local storage directory names should note they exist for Gtk port's needs
+        https://bugs.webkit.org/show_bug.cgi?id=71837
+
+        Reviewed by Martin Robinson.
+
+        Ensure that directories for databases and local storage are in a 'webkitgtk'
+        directory in current user's data directory, noting they originate from the Gtk port.
+
+        * UIProcess/gtk/WebContextGtk.cpp:
+        (WebKit::WebContext::platformDefaultDatabaseDirectory):
+        (WebKit::WebContext::platformDefaultLocalStorageDirectory):
+
 2011-11-08  Caio Marcelo de Oliveira Filho  <[email protected]>
 
         [Qt] Workaround some problems in QML API tests

Modified: trunk/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp (99602 => 99603)


--- trunk/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp	2011-11-08 20:08:51 UTC (rev 99602)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp	2011-11-08 20:10:44 UTC (rev 99603)
@@ -47,7 +47,7 @@
 
 String WebContext::platformDefaultDatabaseDirectory() const
 {
-    GOwnPtr<gchar> databaseDirectory(g_build_filename(g_get_user_data_dir(), "webkit", "databases", NULL));
+    GOwnPtr<gchar> databaseDirectory(g_build_filename(g_get_user_data_dir(), "webkitgtk", "databases", NULL));
     return WebCore::filenameToString(databaseDirectory.get());
 }
 
@@ -59,7 +59,7 @@
 
 String WebContext::platformDefaultLocalStorageDirectory() const
 {
-    GOwnPtr<gchar> storageDirectory(g_build_filename(g_get_user_data_dir(), "webkit", "localstorage", NULL));
+    GOwnPtr<gchar> storageDirectory(g_build_filename(g_get_user_data_dir(), "webkitgtk", "localstorage", NULL));
     return WebCore::filenameToString(storageDirectory.get());
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to