2011-02-01 Johnny Ding <jnd@chromium.org>
authorjnd@chromium.org <jnd@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Feb 2011 23:52:27 +0000 (23:52 +0000)
committerjnd@chromium.org <jnd@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Feb 2011 23:52:27 +0000 (23:52 +0000)
commit526fd636bda6a7c9cde1e548d4f88bbd1b1df853
treee1f15f387d27c0dbe7ec8be6fbddc51d709f9d4c
parent27e31c6a6f5bac07fe9cb147b24427b625b41e3c
2011-02-01  Johnny Ding  <jnd@chromium.org>

        Reviewed by Darin Adler.

        Don't set user gesture in HTMLAnchorElement's click handler because the click handler can be triggered by untrusted event.
        https://bugs.webkit.org/show_bug.cgi?id=53424

        * fast/events/popup-blocked-from-untrusted-click-event-on-anchor-expected.txt: Added.
        * fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html: Added.
2011-02-01  Johnny Ding  <jnd@chromium.org>

        Reviewed by Darin Adler.

        Don't set user gesture in HTMLAnchorElement's click handler because the click handler can be triggered by untrusted event.
        https://bugs.webkit.org/show_bug.cgi?id=53424

        Test: fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html

        * html/HTMLAnchorElement.cpp:
        (WebCore::handleLinkClick):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@77329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/popup-blocked-from-untrusted-click-event-on-anchor-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLAnchorElement.cpp