Index: Source/web/ServiceWorkerGlobalScopeProxy.cpp |
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
index 69bdcc07b8d3b9889bb7828209471e62d6fde637..bd45b64390f57d08280c9087d6e1e2825bc128c1 100644 |
--- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
@@ -124,6 +124,7 @@ void ServiceWorkerGlobalScopeProxy::dispatchMessageEvent(const WebString& messag |
void ServiceWorkerGlobalScopeProxy::dispatchNotificationClickEvent(int eventID, const WebString& notificationID, const WebNotificationData& data) |
{ |
ASSERT(m_workerGlobalScope); |
+ m_workerGlobalScope->giveWindowFocusToken(); |
WaitUntilObserver* observer = WaitUntilObserver::create(m_workerGlobalScope, WaitUntilObserver::NotificationClick, eventID); |
// FIXME: Initialize a Notification object based on |notificationID| and |data|. |
NotificationEventInit eventInit; |