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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 20 07:54:50 PST 2009


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

           Summary: window.open scripts do not trigger newWindowDelegate
                    callback.
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: Macintosh Intel
               URL: http://code.google.com/p/pandoraboy/source/browse/tags/p
                    andoraboy_0_3/Controller.m#156
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: d.theisen at objectpark.org


By WebKit delegate implements

- (void)webView:(WebView *)sender decidePolicyForNewWindowAction:(NSDictionary
*)actionInformation request:(NSURLRequest *)request newFrameName:(NSString
*)frameName decisionListener:(id < WebPolicyDecisionListener >)listener;

It gets called for href links an target set, but not for javascript
window.open(url) links. Instead, a new window is silently requested and the new
url is requested to load into that new window.

I'd expect the above delegate to be called prior to new window/frame generation
with the url given in the window.open call.


In addition, on window.open the delegate method

- (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest
*)request

gets passed a nil request which makes it impossible to take appropriate action
as a workaround. This might qualify for a different bug.


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



More information about the webkit-unassigned mailing list