| Index: Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp b/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| index 1f7f2a6e4b6e28e0db7241f71704b52d93ae3a31..fa2e56abbbcb5d4a88df622dca4f2ff30eac51fb 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| @@ -86,6 +86,15 @@ String ServiceWorkerRegistration::scope() const
|
| return m_outerRegistration->scope().string();
|
| }
|
|
|
| +void ServiceWorkerRegistration::update(ScriptState* scriptState, ExceptionState& exceptionState)
|
| +{
|
| + if (!m_provider) {
|
| + exceptionState.throwDOMException(InvalidStateError, "Failed to update a ServiceWorkerRegistration: No associated provider is available.");
|
| + return;
|
| + }
|
| + m_outerRegistration->update(m_provider);
|
| +}
|
| +
|
| ScriptPromise ServiceWorkerRegistration::unregister(ScriptState* scriptState)
|
| {
|
| RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
|
|
|