Title: [225924] trunk/Source/WebKit
Revision
225924
Author
[email protected]
Date
2017-12-14 13:57:16 -0800 (Thu, 14 Dec 2017)

Log Message

Enable Service Workers on iOS
https://bugs.webkit.org/show_bug.cgi?id=180836

Reviewed by Alex Christensen.

* Shared/WebPreferencesDefaultValues.h:
* UIProcess/WebProcessPool.cpp:
Enable Service Workers on iOS.

(WebKit::WebProcessPool::ensureNetworkProcess):
Fall back to defaultCacheStorageDirectory() instead of the empty string
for the cache storage directory, when we do not have a store.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (225923 => 225924)


--- trunk/Source/WebKit/ChangeLog	2017-12-14 20:50:50 UTC (rev 225923)
+++ trunk/Source/WebKit/ChangeLog	2017-12-14 21:57:16 UTC (rev 225924)
@@ -1,5 +1,20 @@
 2017-12-14  Chris Dumez  <[email protected]>
 
+        Enable Service Workers on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=180836
+
+        Reviewed by Alex Christensen.
+
+        * Shared/WebPreferencesDefaultValues.h:
+        * UIProcess/WebProcessPool.cpp:
+        Enable Service Workers on iOS.
+
+        (WebKit::WebProcessPool::ensureNetworkProcess):
+        Fall back to defaultCacheStorageDirectory() instead of the empty string
+        for the cache storage directory, when we do not have a store.
+
+2017-12-14  Chris Dumez  <[email protected]>
+
         Service worker script fetching currently always uses the network cache
         https://bugs.webkit.org/show_bug.cgi?id=180816
 

Modified: trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h (225923 => 225924)


--- trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h	2017-12-14 20:50:50 UTC (rev 225923)
+++ trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h	2017-12-14 21:57:16 UTC (rev 225924)
@@ -179,7 +179,7 @@
 #define DEFAULT_EXPERIMENTAL_FEATURES_ENABLED false
 #endif
 
-#if ENABLE(EXPERIMENTAL_FEATURES) || PLATFORM(MAC)
+#if ENABLE(EXPERIMENTAL_FEATURES) || PLATFORM(COCOA)
 #define DEFAULT_SERVICE_WORKERS_ENABLED true
 #else
 #define DEFAULT_SERVICE_WORKERS_ENABLED false

Modified: trunk/Source/WebKit/UIProcess/WebProcessPool.cpp (225923 => 225924)


--- trunk/Source/WebKit/UIProcess/WebProcessPool.cpp	2017-12-14 20:50:50 UTC (rev 225923)
+++ trunk/Source/WebKit/UIProcess/WebProcessPool.cpp	2017-12-14 21:57:16 UTC (rev 225924)
@@ -444,7 +444,7 @@
     for (auto& scheme : m_urlSchemesRegisteredForCustomProtocols)
         parameters.urlSchemesRegisteredForCustomProtocols.append(scheme);
 
-    parameters.cacheStorageDirectory = m_websiteDataStore ? m_websiteDataStore->websiteDataStore().cacheStorageDirectory() : String { };
+    parameters.cacheStorageDirectory = m_websiteDataStore ? m_websiteDataStore->websiteDataStore().cacheStorageDirectory() : API::WebsiteDataStore::defaultCacheStorageDirectory();
     if (!parameters.cacheStorageDirectory.isEmpty())
         SandboxExtension::createHandleForReadWriteDirectory(parameters.cacheStorageDirectory, parameters.cacheStorageDirectoryExtensionHandle);
     parameters.cacheStoragePerOriginQuota = m_websiteDataStore ? m_websiteDataStore->websiteDataStore().cacheStoragePerOriginQuota() : WebsiteDataStore::defaultCacheStoragePerOriginQuota;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to