| 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 ae45713e008b0b2fd6407d1e148676c8c8f4a46c..4c7b46ab97f3eaba17d96736989d1be325485723 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| @@ -540,12 +540,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)
|
|
|