| 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 bdf76edfc2536574abceed985a63be93a34d6d4f..849eeed174dfde1a5b985140c30206f6af4c80bf 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| @@ -521,12 +521,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)
|
|
|