[Webkit-unassigned] [Bug 37008] New: ScriptController::processingUserGestureEvent returns true for simulated clicks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 1 21:52:55 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=37008

           Summary: ScriptController::processingUserGestureEvent returns
                    true for simulated clicks
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: aestes at apple.com


Created an attachment (id=52373)
 --> (https://bugs.webkit.org/attachment.cgi?id=52373)
test case

FrameLoader::isProcessingUserGesture is used by the various parts of WebCore to
prevent scripts from doing things without input from a user, for example open a
pop-up window.  This function calls
ScriptController::processingUserGestureEvent which only considers the type of
the current event, not whether or not it was actually generated by a user
gesture.  It is possible to programatically call click() on an HTML button
element to open a popup window without an underlying user gesture, as generated
by the attached test case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list