Changeset 69143 in webkit


Ignore:
Timestamp:
Oct 5, 2010 1:41:15 PM (14 years ago)
Author:
atwilson@chromium.org
Message:

2010-10-05 Andrew Wilson <atwilson@chromium.org>

Reviewed by Andreas Kling.

Notification onclick() events don't act like user gestures
https://bugs.webkit.org/show_bug.cgi?id=47137

  • src/WebNotification.cpp: (WebKit::WebNotification::dispatchClickEvent): Use UserGestureIndicator to make sure click events are treated like user gestures.

2010-10-05 Andrew Wilson <atwilson@chromium.org>

Reviewed by Andreas Kling.

Notification onclick() events don't act like user gestures
https://bugs.webkit.org/show_bug.cgi?id=47137

  • WebCoreSupport/NotificationPresenterClientQt.cpp: (WebCore::NotificationPresenterClientQt::notificationClicked): Use UserGestureIndicator to make sure click events are treated like user gestures.
Location:
trunk/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r69139 r69143  
     12010-10-05  Andrew Wilson  <atwilson@chromium.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        Notification onclick() events don't act like user gestures
     6        https://bugs.webkit.org/show_bug.cgi?id=47137
     7
     8        * src/WebNotification.cpp:
     9        (WebKit::WebNotification::dispatchClickEvent):
     10        Use UserGestureIndicator to make sure click events are treated like user gestures.
     11
    1122010-10-05  Alok Priyadarshi  <alokp@chromium.org>
    213
  • trunk/WebKit/chromium/src/WebNotification.cpp

    r66470 r69143  
    3535
    3636#include "Notification.h"
     37#include "UserGestureIndicator.h"
    3738
    3839#include "WebString.h"
     
    141142void WebNotification::dispatchClickEvent()
    142143{
     144    // Make sure clicks on notifications are treated as user gestures.
     145    UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture);
    143146    RefPtr<Event> event = Event::create(eventNames().clickEvent, false, true);
    144147    m_private->dispatchEvent(event.release());
  • trunk/WebKit/qt/ChangeLog

    r69133 r69143  
     12010-10-05  Andrew Wilson  <atwilson@chromium.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        Notification onclick() events don't act like user gestures
     6        https://bugs.webkit.org/show_bug.cgi?id=47137
     7
     8        * WebCoreSupport/NotificationPresenterClientQt.cpp:
     9        (WebCore::NotificationPresenterClientQt::notificationClicked):
     10        Use UserGestureIndicator to make sure click events are treated like user gestures.
     11
    1122010-10-05  Robert Hogan  <robert@webkit.org>
    213
  • trunk/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp

    r67272 r69143  
    4141#include "ScriptExecutionContext.h"
    4242#include "SecurityOrigin.h"
     43#include "UserGestureIndicator.h"
    4344
    4445#include "qwebframe_p.h"
     
    263264{
    264265    Notification* notification =  notificationForWrapper(wrapper);
    265     if (notification)
     266    if (notification) {
     267        // Make sure clicks on notifications are treated as user gestures.
     268        UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture);
    266269        sendEvent(notification, eventNames().clickEvent);
     270    }
    267271}
    268272
Note: See TracChangeset for help on using the changeset viewer.