| Index: third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
|
| index 6323308b92a65a97eee04e2247b1aca7d9442916..f843f7c21e3914727f50f276cedc1774fac6b06b 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
|
| @@ -26,6 +26,7 @@
|
| #include "bindings/core/v8/V8Initializer.h"
|
|
|
| #include "bindings/core/v8/DOMWrapperWorld.h"
|
| +#include "bindings/core/v8/ErrorEventDispatcher.h"
|
| #include "bindings/core/v8/RejectedPromises.h"
|
| #include "bindings/core/v8/RetainedDOMInfo.h"
|
| #include "bindings/core/v8/ScriptController.h"
|
| @@ -132,12 +133,9 @@ static void messageHandlerInMainThread(v8::Local<v8::Message> message, v8::Local
|
|
|
| ExecutionContext* context = scriptState->getExecutionContext();
|
| std::unique_ptr<SourceLocation> location = SourceLocation::fromMessage(isolate, message, context);
|
| -
|
| - AccessControlStatus accessControlStatus = NotSharableCrossOrigin;
|
| - if (message->IsOpaque())
|
| - accessControlStatus = OpaqueResource;
|
| - else if (message->IsSharedCrossOrigin())
|
| - accessControlStatus = SharableCrossOrigin;
|
| + AccessControlStatus accessControlStatus =
|
| + ErrorEventDispatcher::accessControlStatusFromScriptOriginOptions(
|
| + message->GetScriptOrigin().Options());
|
|
|
| ErrorEvent* event = ErrorEvent::create(toCoreStringWithNullCheck(message->Get()), std::move(location), &scriptState->world());
|
|
|
|
|