Bug 146638

Summary: WKUIDelegate should support closing windows
Product: WebKit Reporter: Stefan Arentz <stefan>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Enhancement CC: andersca, benjamin, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: iOS 8.2   

Stefan Arentz
Reported 2015-07-06 08:24:55 PDT
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.
Attachments
Radar WebKit Bug Importer
Comment 1 2015-07-06 16:45:48 PDT
Anders Carlsson
Comment 2 2015-07-06 16:50:02 PDT
*** This bug has been marked as a duplicate of bug 145957 ***
Note You need to log in before you can comment on or make changes to this bug.