Title: [199851] trunk/Source/WebCore
Revision
199851
Author
ander...@apple.com
Date
2016-04-21 17:33:32 -0700 (Thu, 21 Apr 2016)

Log Message

Fix crashes when loading SVG images.

* loader/EmptyClients.cpp:
(WebCore::fillWithEmptyClients):
Give the SVG page its own application cache storage.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (199850 => 199851)


--- trunk/Source/WebCore/ChangeLog	2016-04-22 00:27:25 UTC (rev 199850)
+++ trunk/Source/WebCore/ChangeLog	2016-04-22 00:33:32 UTC (rev 199851)
@@ -1,5 +1,13 @@
 2016-04-21  Anders Carlsson  <ander...@apple.com>
 
+        Fix crashes when loading SVG images.
+
+        * loader/EmptyClients.cpp:
+        (WebCore::fillWithEmptyClients):
+        Give the SVG page its own application cache storage.
+
+2016-04-21  Anders Carlsson  <ander...@apple.com>
+
         Get rid of ApplicationCacheStorage::singleton
         https://bugs.webkit.org/show_bug.cgi?id=156882
 

Modified: trunk/Source/WebCore/loader/EmptyClients.cpp (199850 => 199851)


--- trunk/Source/WebCore/loader/EmptyClients.cpp	2016-04-22 00:27:25 UTC (rev 199850)
+++ trunk/Source/WebCore/loader/EmptyClients.cpp	2016-04-22 00:33:32 UTC (rev 199851)
@@ -28,6 +28,7 @@
 #include "config.h"
 #include "EmptyClients.h"
 
+#include "ApplicationCacheStorage.h"
 #include "ColorChooser.h"
 #include "DOMWrapperWorld.h"
 #include "DatabaseProvider.h"
@@ -143,6 +144,7 @@
     static NeverDestroyed<EmptyDiagnosticLoggingClient> dummyDiagnosticLoggingClient;
     pageConfiguration.diagnosticLoggingClient = &dummyDiagnosticLoggingClient.get();
 
+    pageConfiguration.applicationCacheStorage = ApplicationCacheStorage::create(String(), String());
     pageConfiguration.databaseProvider = adoptRef(new EmptyDatabaseProvider);
     pageConfiguration.storageNamespaceProvider = adoptRef(new EmptyStorageNamespaceProvider);
     pageConfiguration.userContentProvider = adoptRef(new EmptyUserContentProvider);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to