[Webkit-unassigned] [Bug 127511] New: [GTK] Programmatic click does not work when javascript creates new window.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 23 14:03:31 PST 2014


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

           Summary: [GTK] Programmatic click does not work when javascript
                    creates new window.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P3
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nhrdls at gmail.com


Created an attachment (id=222027)
 --> (https://bugs.webkit.org/attachment.cgi?id=222027&action=review)
Test case

Tested on Webkit gtk release 2.2.4 and 2.2.3. 

Open the attached sample html file in webkit view. Click on "Click me - does not work via web inspector" link to confirm link works. It opens a new window pointing to webkitgtk.org.

Open web inspector console and try following command and observe that nothing happens.

document.getElementById('a').click()

If you execute following in web inspector console, it should show you alert message.

document.getElementById('a').click()


This is the simplest test case I can reproduce. We use similar call to get element and call click method on it. javascript-can-open-windows-automatically is set to true on WebkitSettings.

Expect to see same behaviour when clicked physically by human or programmatically.

-- 
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