Index: Source/bindings/v8/custom/V8WindowCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8WindowCustom.cpp b/Source/bindings/v8/custom/V8WindowCustom.cpp |
index b357760424627b03ad763b71e083834c3fa70b3d..0de501bf872a61c7853fea6d115af5515510863b 100644 |
--- a/Source/bindings/v8/custom/V8WindowCustom.cpp |
+++ b/Source/bindings/v8/custom/V8WindowCustom.cpp |
@@ -187,7 +187,7 @@ void V8Window::frameElementAttributeGetterCustom(const v8::PropertyCallbackInfo< |
// The wrapper for an <iframe> should get its prototype from the context of the frame it's in, rather than its own frame. |
// So, use its containing document as the creation context when wrapping. |
- v8::Handle<v8::Value> creationContext = toV8(&impl->frameElement()->document(), v8::Handle<v8::Object>(), info.GetIsolate()); |
+ v8::Handle<v8::Value> creationContext = toV8(&impl->frameElement()->document(), info.Holder(), info.GetIsolate()); |
RELEASE_ASSERT(!creationContext.IsEmpty()); |
v8::Handle<v8::Value> wrapper = toV8(impl->frameElement(), v8::Handle<v8::Object>::Cast(creationContext), info.GetIsolate()); |
v8SetReturnValue(info, wrapper); |