| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| index b67e4a6ca84ce244d459c1346e967d5601da75c9..70d454fe26280c8b1fb0f5a6742bb196a21fb48d 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| @@ -6334,7 +6334,7 @@ void WebGLRenderingContextBase::preserveObjectWrapper(ScriptState* scriptState,
|
| persistentCache->set(isolate, v8::Array::New(isolate));
|
| V8HiddenValue::setHiddenValue(
|
| scriptState,
|
| - sourceObject->newLocalWrapper(isolate),
|
| + sourceObject->mainWorldWrapper(isolate),
|
| hiddenValueName,
|
| persistentCache->newLocal(isolate));
|
| // It is important to mark the persistent cache as weak
|
| @@ -6346,7 +6346,7 @@ void WebGLRenderingContextBase::preserveObjectWrapper(ScriptState* scriptState,
|
|
|
| v8::Local<v8::Array> localCache = persistentCache->newLocal(isolate);
|
| if (targetObject) {
|
| - v8CallOrCrash(localCache->Set(scriptState->context(), index, targetObject->newLocalWrapper(isolate)));
|
| + v8CallOrCrash(localCache->Set(scriptState->context(), index, targetObject->mainWorldWrapper(isolate)));
|
| } else {
|
| v8CallOrCrash(localCache->Set(scriptState->context(), index, v8::Null(isolate)));
|
| }
|
|
|