From fbd89fdd9835ddf985ef1f22d61ed90b299e6bbc Mon Sep 17 00:00:00 2001 From: "ager@google.com" Date: Fri, 19 Dec 2008 12:02:41 +0000 Subject: Make sure to initialize the proxy before using it's dom constructor map. Review URL: http://codereview.chromium.org/15074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7298 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/bindings/v8/v8_proxy.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webkit') diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp index 71b8e02..f2ea252 100644 --- a/webkit/port/bindings/v8/v8_proxy.cpp +++ b/webkit/port/bindings/v8/v8_proxy.cpp @@ -2656,6 +2656,8 @@ v8::Local V8Proxy::InstantiateV8Object( v8::Local function; V8Proxy* proxy = V8Proxy::retrieve(); if (proxy) { + // Make sure that the context of the proxy has been initialized. + proxy->InitContextIfNeeded(); // Constructor is configured. function = proxy->GetConstructor(desc_type); } else { -- cgit v1.1