Index: third_party/WebKit/Source/core/fetch/Resource.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp |
index 797393003558096ec18e1e5dbc864c64dfc0c425..b2314cba607b8b999516231d08949cace9b5a7d1 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp |
@@ -33,6 +33,7 @@ |
#include "core/fetch/ResourceLoader.h" |
#include "core/inspector/InstanceCounters.h" |
#include "platform/Logging.h" |
+#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/SharedBuffer.h" |
#include "platform/TraceEvent.h" |
#include "platform/network/HTTPParsers.h" |
@@ -573,6 +574,9 @@ bool Resource::unlock() |
if (!memoryCache()->contains(this) || hasClientsOrObservers() || !m_revalidatingRequest.isNull() || !m_loadFinishTime || !isSafeToUnlock()) |
return false; |
+ if (RuntimeEnabledFeatures::doNotUnlockSharedBufferEnabled()) |
+ return false; |
+ |
m_data->unlock(); |
return true; |
} |