WKWebView HTML5 AppCache not working
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2016 01:05:53 +0000 (01:05 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2016 01:05:53 +0000 (01:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=156887
rdar://problem/17944162

Reviewed by Tim Horton.

* Shared/WebPreferencesDefinitions.h:
Set the offlineWebApplicationCacheEnabled property to true by default.

* UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
(API::WebsiteDataStore::defaultDataStoreConfiguration):
Set the default applicationCacheFlatFileSubdirectoryName to "Files".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199854 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Shared/WebPreferencesDefinitions.h
Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm

index 5d67a06..e299ae5 100644 (file)
@@ -1,5 +1,20 @@
 2016-04-21  Anders Carlsson  <andersca@apple.com>
 
+        WKWebView HTML5 AppCache not working
+        https://bugs.webkit.org/show_bug.cgi?id=156887
+        rdar://problem/17944162
+
+        Reviewed by Tim Horton.
+
+        * Shared/WebPreferencesDefinitions.h:
+        Set the offlineWebApplicationCacheEnabled property to true by default.
+
+        * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
+        (API::WebsiteDataStore::defaultDataStoreConfiguration):
+        Set the default applicationCacheFlatFileSubdirectoryName to "Files".
+
+2016-04-21  Anders Carlsson  <andersca@apple.com>
+
         Get rid of the last uses of ApplicationCacheStorage::singleton() from WebKit2
         https://bugs.webkit.org/show_bug.cgi?id=156876
 
index 36ed83c..e480c1e 100644 (file)
     macro(PluginsEnabled, pluginsEnabled, Bool, bool, false, "", "") \
     macro(JavaEnabled, javaEnabled, Bool, bool, false, "", "") \
     macro(JavaEnabledForLocalFiles, javaEnabledForLocalFiles, Bool, bool, false, "", "") \
-    macro(OfflineWebApplicationCacheEnabled, offlineWebApplicationCacheEnabled, Bool, bool, false, "", "") \
+    macro(OfflineWebApplicationCacheEnabled, offlineWebApplicationCacheEnabled, Bool, bool, true, "", "") \
     macro(LocalStorageEnabled, localStorageEnabled, Bool, bool, true, "", "") \
     macro(DatabasesEnabled, databasesEnabled, Bool, bool, true, "", "") \
     macro(XSSAuditorEnabled, xssAuditorEnabled, Bool, bool, true, "", "") \
index eda4c14..287b7a1 100644 (file)
@@ -175,6 +175,7 @@ WebKit::WebsiteDataStore::Configuration WebsiteDataStore::defaultDataStoreConfig
     WebKit::WebsiteDataStore::Configuration configuration;
 
     configuration.applicationCacheDirectory = defaultApplicationCacheDirectory();
+    configuration.applicationCacheFlatFileSubdirectoryName = "Files";
     configuration.networkCacheDirectory = defaultNetworkCacheDirectory();
     configuration.mediaCacheDirectory = defaultMediaCacheDirectory();