| 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 b763bb59b21934b5a6b8b8a4f95c5328c4a35724..371b4e4f804a464ab8ec4d13c32762b4426135c7 100644
|
| --- a/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp
|
| @@ -30,7 +30,9 @@
|
|
|
| #include "core/workers/DedicatedWorkerGlobalScope.h"
|
|
|
| +#include <memory>
|
| #include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/ScriptState.h"
|
| #include "bindings/core/v8/SerializedScriptValue.h"
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| #include "core/origin_trials/OriginTrialContext.h"
|
| @@ -38,7 +40,6 @@
|
| #include "core/workers/InProcessWorkerObjectProxy.h"
|
| #include "core/workers/WorkerClients.h"
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -84,13 +85,14 @@ const AtomicString& DedicatedWorkerGlobalScope::interfaceName() const {
|
| }
|
|
|
| void DedicatedWorkerGlobalScope::postMessage(
|
| - ExecutionContext* context,
|
| + ScriptState* scriptState,
|
| PassRefPtr<SerializedScriptValue> message,
|
| const MessagePortArray& ports,
|
| ExceptionState& exceptionState) {
|
| // Disentangle the port in preparation for sending it to the remote context.
|
| std::unique_ptr<MessagePortChannelArray> channels =
|
| - MessagePort::disentanglePorts(context, ports, exceptionState);
|
| + MessagePort::disentanglePorts(scriptState->getExecutionContext(), ports,
|
| + exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
| workerObjectProxy().postMessageToWorkerObject(std::move(message),
|
|
|