Created attachment 222027 [details] 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.
Turns out this was security problem. I had to set java script can open windows flag.