Index: Source/bindings/core/v8/custom/V8WindowCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
index 18fa0f9846b509a19ce6d5f54c0e2cd3282e84b1..c4e75c2e34a3c8d10530f8ae8ed9e5a3b2bfca57 100644 |
--- a/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
@@ -300,9 +300,6 @@ static bool installTestInterfaceIfNeeded(LocalFrame& frame, v8::Local<v8::String |
void V8Window::namedPropertyGetterCustom(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
- if (!name->IsString()) |
- return; |
- |
auto nameString = name.As<v8::String>(); |
DOMWindow* window = V8Window::toImpl(info.Holder()); |
if (!window) |
@@ -324,16 +321,6 @@ void V8Window::namedPropertyGetterCustom(v8::Local<v8::Name> name, const v8::Pro |
return; |
} |
- // Search IDL functions defined in the prototype |
- if (!info.Holder()->GetRealNamedProperty(info.GetIsolate()->GetCurrentContext(), nameString).IsEmpty()) |
- return; |
- |
- // Frame could have been detached in call to GetRealNamedProperty. |
- frame = window->frame(); |
- // window is detached. |
- if (!frame) |
- return; |
- |
// If the frame is remote, the caller will never be able to access further named results. |
if (!frame->isLocalFrame()) |
return; |