| Index: third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
|
| index 67f3de6288ac538fa8382ab7e27967fc35b556d4..8250b1971f864ab7555d4ddd1dd9fe0198040252 100644
|
| --- a/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
|
| @@ -34,6 +34,7 @@
|
| #include "bindings/core/v8/ExceptionState.h"
|
| #include "bindings/core/v8/ScriptState.h"
|
| #include "bindings/core/v8/SerializedScriptValue.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| #include "core/origin_trials/OriginTrialContext.h"
|
| #include "core/workers/DedicatedWorkerThread.h"
|
| @@ -92,7 +93,7 @@ void DedicatedWorkerGlobalScope::postMessage(
|
| ExceptionState& exception_state) {
|
| // Disentangle the port in preparation for sending it to the remote context.
|
| MessagePortChannelArray channels = MessagePort::DisentanglePorts(
|
| - script_state->GetExecutionContext(), ports, exception_state);
|
| + ExecutionContext::From(script_state), ports, exception_state);
|
| if (exception_state.HadException())
|
| return;
|
| WorkerObjectProxy().PostMessageToWorkerObject(std::move(message),
|
|
|