| 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..6013195cf3f166dd2cbc9619779db52fd8c34f88 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp
|
| @@ -439,9 +439,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
|
|
|