| Index: Source/modules/serviceworkers/WaitUntilObserver.cpp
|
| ===================================================================
|
| --- Source/modules/serviceworkers/WaitUntilObserver.cpp (revision 187183)
|
| +++ Source/modules/serviceworkers/WaitUntilObserver.cpp (working copy)
|
| @@ -88,16 +88,6 @@
|
| return;
|
| }
|
|
|
| - if (!executionContext())
|
| - return;
|
| -
|
| - // When handling a notificationclick event, we want to allow one window to
|
| - // be focused. Regardless of whether one window was focused,
|
| - // |consumeWindowFocus| will be called when all the pending activities will
|
| - // be resolved.
|
| - if (m_type == NotificationClick)
|
| - executionContext()->allowWindowFocus();
|
| -
|
| incrementPendingActivity();
|
| ScriptPromise::cast(scriptState, value).then(
|
| ThenFunction::createFunction(scriptState, this, ThenFunction::Fulfilled),
|
| @@ -144,7 +134,6 @@
|
| break;
|
| case NotificationClick:
|
| client->didHandleNotificationClickEvent(m_eventID, result);
|
| - executionContext()->consumeWindowFocus();
|
| break;
|
| case Push:
|
| client->didHandlePushEvent(m_eventID, result);
|
|
|