| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index 5bfdcc44afc45394e4ebcb605818d1d6e96b3d02..c31ec2ae02406d4a91c1bf23e0708ae7754022b8 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -40,6 +40,7 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/ExecutionContext.h"
|
| #include "core/dom/MessagePort.h"
|
| +#include "core/events/MessageEvent.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/UseCounter.h"
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| @@ -47,7 +48,6 @@
|
| #include "modules/serviceworkers/ServiceWorker.h"
|
| #include "modules/serviceworkers/ServiceWorkerContainerClient.h"
|
| #include "modules/serviceworkers/ServiceWorkerError.h"
|
| -#include "modules/serviceworkers/ServiceWorkerMessageEvent.h"
|
| #include "modules/serviceworkers/ServiceWorkerRegistration.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/weborigin/SchemeRegistry.h"
|
| @@ -510,9 +510,9 @@ void ServiceWorkerContainer::dispatchMessageEvent(
|
| RefPtr<SerializedScriptValue> value = SerializedScriptValue::create(message);
|
| ServiceWorker* source =
|
| ServiceWorker::from(getExecutionContext(), wrapUnique(handle.release()));
|
| - dispatchEvent(ServiceWorkerMessageEvent::create(
|
| - ports, value, source,
|
| - getExecutionContext()->getSecurityOrigin()->toString()));
|
| + dispatchEvent(MessageEvent::create(
|
| + ports, value, getExecutionContext()->getSecurityOrigin()->toString(),
|
| + String() /* lastEventId */, source, String() /* suborigin */));
|
| }
|
|
|
| const AtomicString& ServiceWorkerContainer::interfaceName() const {
|
|
|