[Webkit-unassigned] [Bug 146638] New: WKUIDelegate should support closing windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 6 08:24:55 PDT 2015


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

            Bug ID: 146638
           Summary: WKUIDelegate should support closing windows
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: iOS 8.2
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: stefan at arentz.ca

The WKUIDelegate has a method that is called when a new WKWebView is created when the web application calls window.open(). This is great to support things like OAuth flows that typically open up in external (popup) windows.

However, there is no way to correctly deal with web applications then calling window.close() on those windows.

This is a request for a new WKUIDelegate method that is called when the web application closes a window. Its signature could be something like this:

- (void) webView: (WKWebView * nonnull) webView wantsToCloseWebView: (WKWebView * nonnull) webViewToClose;

The application can then take appropriate action. Like updating the UI and releasing the WKWebView that is closing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150706/ab4acf49/attachment.html>


More information about the webkit-unassigned mailing list