[Webkit-unassigned] [Bug 23432] window.open scripts do not trigger newWindowDelegate callback.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 9 14:23:12 PST 2010


Nicolas Dufresne <nicolas.dufresne at collabora.co.uk> changed:

           What    |Removed                     |Added
  Attachment #73418|                            |review?
               Flag|                            |

--- Comment #11 from Nicolas Dufresne <nicolas.dufresne at collabora.co.uk>  2010-11-09 14:23:12 PST ---
Created an attachment (id=73418)
 --> (https://bugs.webkit.org/attachment.cgi?id=73418&action=review)
[PATCH 4/4] Trigger newWindowDelegate when window.open() is called

This is a bit tricky since newWindowDelegate() is normally triggered before
creating the actual window. But since window.open() returns a window, we have
no choice but to create it. In this patch, we play with the window visibility,
creating the window and launching the newWindowDelegate() through
changeLocation() and a special optional parameter. The result is that the
window will only be showed if the policy is accepted, and will be closed

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