| Index: third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| index 1fabde7f93d8889df8fd40b01d57c04d6678e494..9d3b961cab70db200aaa192460c19d5a02066995 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| @@ -520,12 +520,9 @@ static void getter(v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<
|
| v8SetReturnValue(info, result);
|
| return;
|
| }
|
| - v8::Local<v8::Value> prototype = info.Holder()->GetPrototype();
|
| - if (prototype->IsObject()) {
|
| - v8::Local<v8::Value> value;
|
| - if (prototype.As<v8::Object>()->Get(info.GetIsolate()->GetCurrentContext(), property).ToLocal(&value))
|
| - v8SetReturnValue(info, value);
|
| - }
|
| + v8::Local<v8::Value> value;
|
| + if (info.Holder()->GetRealNamedPropertyInPrototypeChain(info.GetIsolate()->GetCurrentContext(), property.As<v8::String>()).ToLocal(&value))
|
| + v8SetReturnValue(info, value);
|
| }
|
|
|
| void WindowProxy::namedItemAdded(HTMLDocument* document, const AtomicString& name)
|
|
|