| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp
|
| index 0ccb7d3b3e651a76ee852cc0bfb565d9153bdfbf..e1122d3e51acbc1e32db5bceee22209ddf8c391f 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp
|
| @@ -363,8 +363,7 @@ CORE_EXPORT void TestInterfaceCheckSecurityOriginSafeMethodSetterCallback(v8::Lo
|
| }
|
|
|
| CORE_EXPORT bool securityCheck(v8::Local<v8::Context> accessingContext, v8::Local<v8::Object> accessedObject, v8::Local<v8::Value> data) {
|
| - TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(accessedObject);
|
| - return BindingSecurity::shouldAllowAccessTo(toLocalDOMWindow(toDOMWindow(accessingContext)), impl, BindingSecurity::ErrorReportOption::DoNotReport);
|
| + static_assert(false, "Unexpected security check for interface TestInterfaceCheckSecurity");
|
| }
|
|
|
| static const struct {
|
| @@ -439,9 +438,11 @@ CORE_EXPORT void crossOriginNamedEnumerator(const v8::PropertyCallbackInfo<v8::A
|
| for (const auto& attribute : kCrossOriginAttributeTable)
|
| names.push_back(attribute.name);
|
|
|
| - v8SetReturnValue(
|
| - info,
|
| - ToV8(names, info.Holder(), info.GetIsolate()).As<v8::Array>());
|
| + // Use the current context as the creation context, as a cross-origin access
|
| + // may involve an object that does not have a creation context.
|
| + v8SetReturnValue(info,
|
| + ToV8(names, info.GetIsolate()->GetCurrentContext()->Global(),
|
| + info.GetIsolate()).As<v8::Array>());
|
| }
|
|
|
| } // namespace TestInterfaceCheckSecurityV8Internal
|
|
|