| Index: Source/web/WebPluginContainerImpl.cpp
|
| diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
|
| index e7ff777142ab50298b963df47ce5cbd78ef49939..48b9532b61a57e64cf20232acc87fdcb34363d55 100644
|
| --- a/Source/web/WebPluginContainerImpl.cpp
|
| +++ b/Source/web/WebPluginContainerImpl.cpp
|
| @@ -436,7 +436,7 @@ v8::Local<v8::Object> WebPluginContainerImpl::v8ObjectForElement()
|
| return v8::Local<v8::Object>();
|
|
|
| ScriptState* scriptState = ScriptState::forMainWorld(frame);
|
| - if (scriptState->contextIsEmpty())
|
| + if (scriptState->contextIsValid())
|
| return v8::Local<v8::Object>();
|
|
|
| v8::Handle<v8::Value> v8value = toV8(m_element, scriptState->context()->Global(), scriptState->isolate());
|
|
|