Index: webkit/port/bindings/v8/v8_custom.cpp |
diff --git a/webkit/port/bindings/v8/v8_custom.cpp b/webkit/port/bindings/v8/v8_custom.cpp |
index bf8cefc6e46753fbc779059647584799d20763d9..795e34f9093a495f2fc43a9b455f93bb9e685b41 100644 |
--- a/webkit/port/bindings/v8/v8_custom.cpp |
+++ b/webkit/port/bindings/v8/v8_custom.cpp |
@@ -1083,7 +1083,7 @@ ACCESSOR_SETTER(ElementEventHandler) { |
// the document might be created using createDocument, |
// which does not have a frame, use the active frame |
if (!proxy) |
- proxy = V8Proxy::retrieve(V8Proxy::retrieveActiveFrame()); |
+ proxy = V8Proxy::retrieve(V8Proxy::retrieveFrameForEnteredContext()); |
if (!proxy) |
return; |