| Index: Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| diff --git a/Source/modules/serviceworkers/WaitUntilObserver.cpp b/Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| index f239f541f70185976a3e31dc9aab55232ea62e79..ef5b906ca934a646923ff5972351696cd6f9e971 100644
|
| --- a/Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| +++ b/Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| @@ -84,6 +84,7 @@ WaitUntilObserver::WaitUntilObserver(ExecutionContext* context, int eventID)
|
| : ContextLifecycleObserver(context)
|
| , m_eventID(eventID)
|
| , m_pendingActivity(0)
|
| + , m_error(false)
|
| {
|
| }
|
|
|
| @@ -91,6 +92,8 @@ void WaitUntilObserver::reportError(const ScriptValue& value)
|
| {
|
| // FIXME: Propagate error message to the client for onerror handling.
|
| notImplemented();
|
| +
|
| + m_error = true;
|
| }
|
|
|
| void WaitUntilObserver::incrementPendingActivity()
|
| @@ -104,7 +107,7 @@ void WaitUntilObserver::decrementPendingActivity()
|
| if (--m_pendingActivity || !executionContext())
|
| return;
|
|
|
| - ServiceWorkerGlobalScopeClient::from(executionContext())->didHandleInstallEvent(m_eventID);
|
| + ServiceWorkerGlobalScopeClient::from(executionContext())->didHandleInstallEvent(m_eventID, m_error);
|
| observeContext(0);
|
| }
|
|
|
|
|