Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| index 27f095afa4cddb192de09875c8b54f7fec0633fc..66e7b1c6d8e3de25dac78c2c66b5e95c73fdfebc 100644 |
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
| @@ -2507,7 +2507,7 @@ static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v |
| v8::Local<v8::Object> holder = info.Holder(); |
| TestObject* impl = V8TestObject::toImpl(holder); |
| ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityForNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); |
| - if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), callingDOMWindow(info.GetIsolate()), impl->checkSecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { |
| + if (!BindingSecurity::shouldAllowAccessTo(info.GetIsolate(), callingDOMWindow(info.GetIsolate()), impl->checkSecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { |
| v8SetReturnValueNull(info); |
| exceptionState.throwIfNeeded(); |
| return; |
| @@ -10226,8 +10226,7 @@ static void callWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| - if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), callingDOMWindow(info.GetIsolate()), impl->checkSecurityForNodeVoidMethod(exceptionState), exceptionState)) { |
| - v8SetReturnValueNull(info); |
|
haraken
2015/11/16 11:34:21
This change is intentional, right?
Yuki
2015/11/20 12:27:52
Oops, no, not really.
Nice catch, and fixed.
|
| + if (!BindingSecurity::shouldAllowAccessTo(info.GetIsolate(), callingDOMWindow(info.GetIsolate()), impl->checkSecurityForNodeVoidMethod(), exceptionState)) { |
| exceptionState.throwIfNeeded(); |
| return; |
| } |