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 56d59f21441962ef56cf435de9ae52eeba5558fc..0e86982c18201c4df2e12f4a32fb8de63b311df0 100644 |
--- a/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
@@ -253,9 +253,6 @@ void V8Window::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
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) |
@@ -276,16 +273,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; |