Do not indefinitely cache resources from blob URLs.
Reviewed by Alexey Proskuryakov.
Alexey pointed out after I landed r150169 that blob URLs backed by
files should return an error if the file changed after the URL was
created. By indefinitely caching them in memory, we don't give the
loader a chance to check for modification. Remove "blob" from the list
of schemes that should be indefinitely cached.
* platform/SchemeRegistry.cpp:
(WebCore::SchemeRegistry::shouldCacheResponsesFromURLSchemeIndefinitely):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 9615ab0..e26fab8 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,18 @@
+2013-05-16 Andy Estes <aestes@apple.com>
+
+ Do not indefinitely cache resources from blob URLs.
+
+ Reviewed by Alexey Proskuryakov.
+
+ Alexey pointed out after I landed r150169 that blob URLs backed by
+ files should return an error if the file changed after the URL was
+ created. By indefinitely caching them in memory, we don't give the
+ loader a chance to check for modification. Remove "blob" from the list
+ of schemes that should be indefinitely cached.
+
+ * platform/SchemeRegistry.cpp:
+ (WebCore::SchemeRegistry::shouldCacheResponsesFromURLSchemeIndefinitely):
+
2013-05-16 Claudio Saavedra <csaavedra@igalia.com>
[CSS] CSS Variables are case-sensitive
diff --git a/Source/WebCore/platform/SchemeRegistry.cpp b/Source/WebCore/platform/SchemeRegistry.cpp
index c7dbfc3..ab213d1 100644
--- a/Source/WebCore/platform/SchemeRegistry.cpp
+++ b/Source/WebCore/platform/SchemeRegistry.cpp
@@ -326,7 +326,7 @@
if (equalIgnoringCase(scheme, "applewebdata"))
return true;
#endif
- return equalIgnoringCase(scheme, "blob") || equalIgnoringCase(scheme, "data");
+ return equalIgnoringCase(scheme, "data");
}
} // namespace WebCore