| Index: Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.cpp b/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| index a41c21faf14ed496c3e90528b7f541b98a169ef7..5692f86c3d2b46b90d7be99bbb4f8382cadcf2ab 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"
|
| @@ -121,7 +123,7 @@ ScriptPromise NavigatorServiceWorker::registerServiceWorker(ScriptExecutionConte
|
| }
|
|
|
| RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptExecutionContext);
|
| - ensureProvider()->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorker>(resolver, scriptExecutionContext));
|
| + ensureProvider()->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorkerError>(resolver, scriptExecutionContext));
|
| return resolver->promise();
|
| }
|
|
|
| @@ -148,7 +150,7 @@ ScriptPromise NavigatorServiceWorker::unregisterServiceWorker(ScriptExecutionCon
|
| }
|
|
|
| RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptExecutionContext);
|
| - ensureProvider()->unregisterServiceWorker(patternURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorker>(resolver, scriptExecutionContext));
|
| + ensureProvider()->unregisterServiceWorker(patternURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorkerError>(resolver, scriptExecutionContext));
|
| return resolver->promise();
|
| }
|
|
|
|
|