| 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 653d09c4caee83e947d5a18733f283eaf1f428ce..81100b238e46b254d280d0aa8df2437d591cae0b 100644
|
| --- a/third_party/WebKit/Source/core/fetch/Resource.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
|
| @@ -34,6 +34,7 @@
|
| #include "core/inspector/InstanceCounters.h"
|
| #include "platform/Histogram.h"
|
| #include "platform/Logging.h"
|
| +#include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/TraceEvent.h"
|
| #include "platform/network/HTTPParsers.h"
|
| @@ -575,6 +576,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;
|
| }
|
|
|