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 a8d4be011e9c99e2e3dd5ae22c0b877b6ee463d1..52afae9c422039e7c1258fad9793807969102c83 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp |
@@ -533,7 +533,9 @@ void WindowProxy::namedItemAdded(HTMLDocument* document, const AtomicString& nam |
v8::Local<v8::Context> context = m_scriptState->context(); |
v8::Local<v8::Object> documentHandle = m_document.newLocal(m_isolate); |
checkDocumentWrapper(documentHandle, document); |
- documentHandle->SetAccessor(context, v8String(m_isolate, name), getter); |
+ if (documentHandle->SetAccessor(context, v8String(m_isolate, name), getter).IsNothing()) { |
+ // TODO: What action, if any, should be taken here? |
+ } |
} |
void WindowProxy::namedItemRemoved(HTMLDocument* document, const AtomicString& name) |
@@ -550,7 +552,9 @@ void WindowProxy::namedItemRemoved(HTMLDocument* document, const AtomicString& n |
ASSERT(!m_document.isEmpty()); |
v8::Local<v8::Object> documentHandle = m_document.newLocal(m_isolate); |
checkDocumentWrapper(documentHandle, document); |
- documentHandle->Delete(m_isolate->GetCurrentContext(), v8String(m_isolate, name)); |
+ if (documentHandle->Delete(m_isolate->GetCurrentContext(), v8String(m_isolate, name)).IsNothing()) { |
+ // TODO: What action, if any, should be taken here? |
+ } |
} |
void WindowProxy::updateSecurityOrigin(SecurityOrigin* origin) |