Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
index 73bbe090b2905cdcdd281d491ed3868cd1b65a02..bf32571ba725d677fa63db370eb4ef65928aaf93 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
@@ -30,6 +30,7 @@ |
#include "bindings/core/v8/ScriptState.h" |
#include "bindings/core/v8/ScriptValue.h" |
#include "bindings/core/v8/ScriptWrappable.h" |
+#include "bindings/core/v8/ScriptWrappableVisitor.h" |
#include "core/CoreExport.h" |
#include "core/dom/DOMTypedArray.h" |
#include "core/dom/TypedFlexibleArrayBufferView.h" |
@@ -892,6 +893,7 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext { |
const char* const* prefixes = nullptr) { |
m_extensions.append( |
TypedExtensionTracker<T>::create(extensionPtr, flags, prefixes)); |
+ ScriptWrappableVisitor::writeBarrier(this, m_extensions.last()); |
} |
bool extensionSupportedAndAllowed(const ExtensionTracker*); |