Title: [253767] trunk
- Revision
- 253767
- Author
- [email protected]
- Date
- 2019-12-19 10:36:55 -0800 (Thu, 19 Dec 2019)
Log Message
CacheStorageEngine should not clear caches memory representation for ephemeral sessions
https://bugs.webkit.org/show_bug.cgi?id=205332
Reviewed by Chris Dumez.
Source/WebKit:
* NetworkProcess/cache/CacheStorageEngineCaches.cpp:
(WebKit::CacheStorage::Caches::dispose):
We cannot dispose an ephemeral cache memory representation
since it can be reopened by a page with the same session.
LayoutTests:
* TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (253766 => 253767)
--- trunk/LayoutTests/ChangeLog 2019-12-19 18:33:11 UTC (rev 253766)
+++ trunk/LayoutTests/ChangeLog 2019-12-19 18:36:55 UTC (rev 253767)
@@ -1,3 +1,12 @@
+2019-12-19 youenn fablet <[email protected]>
+
+ CacheStorageEngine should not clear caches memory representation for ephemeral sessions
+ https://bugs.webkit.org/show_bug.cgi?id=205332
+
+ Reviewed by Chris Dumez.
+
+ * TestExpectations:
+
2019-12-19 Brent Fulgham <[email protected]>
Deny mach lookup access to "com.apple.pluginkit.pkd" in the WebContent process
Modified: trunk/LayoutTests/TestExpectations (253766 => 253767)
--- trunk/LayoutTests/TestExpectations 2019-12-19 18:33:11 UTC (rev 253766)
+++ trunk/LayoutTests/TestExpectations 2019-12-19 18:36:55 UTC (rev 253767)
@@ -2648,8 +2648,6 @@
webkit.org/b/90980 fast/forms/textarea/textarea-state-restore.html [ Pass Timeout ]
-webkit.org/b/182928 http/tests/cache-storage/cache-representation.https.html [ Pass Failure ]
-
webkit.org/b/116621 fast/replaced/preferred-widths.html [ Pass Failure ]
webkit.org/b/184453 imported/w3c/web-platform-tests/workers/name-property.html [ Pass Failure ]
Modified: trunk/Source/WebKit/ChangeLog (253766 => 253767)
--- trunk/Source/WebKit/ChangeLog 2019-12-19 18:33:11 UTC (rev 253766)
+++ trunk/Source/WebKit/ChangeLog 2019-12-19 18:36:55 UTC (rev 253767)
@@ -1,3 +1,15 @@
+2019-12-19 youenn fablet <[email protected]>
+
+ CacheStorageEngine should not clear caches memory representation for ephemeral sessions
+ https://bugs.webkit.org/show_bug.cgi?id=205332
+
+ Reviewed by Chris Dumez.
+
+ * NetworkProcess/cache/CacheStorageEngineCaches.cpp:
+ (WebKit::CacheStorage::Caches::dispose):
+ We cannot dispose an ephemeral cache memory representation
+ since it can be reopened by a page with the same session.
+
2019-12-19 Brent Fulgham <[email protected]>
Deny mach lookup access to "com.apple.pluginkit.pkd" in the WebContent process
Modified: trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp (253766 => 253767)
--- trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp 2019-12-19 18:33:11 UTC (rev 253766)
+++ trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp 2019-12-19 18:36:55 UTC (rev 253767)
@@ -382,6 +382,11 @@
return;
}
ASSERT(m_caches.findMatching([&](const auto& item) { return item.identifier() == cache.identifier(); }) != notFound);
+
+ // We cannot clear the memory representation in ephemeral sessions since we would loose all data.
+ if (!shouldPersist())
+ return;
+
cache.clearMemoryRepresentation();
if (!hasActiveCache())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes