| Index: Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.cpp b/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| index df87469d85aae31624972f945f070ae80e969f90..895b2e68efa2ae270d2fdcc092ab5b262a69ea80 100644
|
| --- a/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| +++ b/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| @@ -32,6 +32,7 @@
|
|
|
| #include "RuntimeEnabledFeatures.h"
|
| #include "V8ServiceWorker.h"
|
| +#include "bindings/V8DOMError.h"
|
| #include "bindings/v8/CallbackPromiseAdapter.h"
|
| #include "bindings/v8/ScriptPromiseResolver.h"
|
| #include "core/dom/Document.h"
|
| @@ -43,6 +44,7 @@
|
| #include "core/loader/FrameLoaderClient.h"
|
| #include "core/workers/SharedWorker.h"
|
| #include "modules/serviceworkers/ServiceWorker.h"
|
| +#include "modules/serviceworkers/ServiceWorkerError.h"
|
| #include "public/platform/WebServiceWorkerProvider.h"
|
| #include "public/platform/WebServiceWorkerProviderClient.h"
|
| #include "public/platform/WebString.h"
|
| @@ -122,7 +124,7 @@ ScriptPromise NavigatorServiceWorker::registerServiceWorker(ExecutionContext* ex
|
|
|
| ScriptPromise promise = ScriptPromise::createPending(executionContext);
|
| RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(promise, executionContext);
|
| - ensureProvider()->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorker>(resolver, executionContext));
|
| + ensureProvider()->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorkerError>(resolver, executionContext));
|
| return promise;
|
| }
|
|
|
| @@ -150,7 +152,7 @@ ScriptPromise NavigatorServiceWorker::unregisterServiceWorker(ExecutionContext*
|
|
|
| ScriptPromise promise = ScriptPromise::createPending(executionContext);
|
| RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(promise, executionContext);
|
| - ensureProvider()->unregisterServiceWorker(patternURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorker>(resolver, executionContext));
|
| + ensureProvider()->unregisterServiceWorker(patternURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorkerError>(resolver, executionContext));
|
| return promise;
|
| }
|
|
|
|
|