[Webkit-unassigned] [Bug 91722] Executing window.open with setTimeout does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 19 13:32:07 PDT 2012


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





--- Comment #3 from Alexey Proskuryakov <ap at webkit.org>  2012-07-19 13:32:07 PST ---
> I feel strange a bit because just executing window.open("http://www.webkit.org"); works even the option is enabled, and also  executing setTimeout(function(){ window.open("http://www.webkit.org"); }, 0);) works on WebKit for Windows even the option is enabled.

window.open only works when invoked from a user gesture handler (such as a click event handler).

> I just want to open a page in a separate window (or tab) few seconds after a user clicks a link.

It might be possible to keep user gesture flag in code run inside setTimeout, but I'm not sure about the tradeoffs.

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