mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 11:50:22 +03:00
browser(webkit): do not hang on close when there is a dialog (#4332)
This commit is contained in:
parent
bc9765072f
commit
890add98fe
@ -1,2 +1,2 @@
|
||||
1377
|
||||
Changed: yurys@chromium.org Tue 03 Nov 2020 03:59:48 PM PST
|
||||
1378
|
||||
Changed: yurys@chromium.org Tue Nov 3 18:28:54 PST 2020
|
||||
|
@ -358,6 +358,7 @@ const NSActivityOptions ActivityOptions =
|
||||
#pragma mark WKUIDelegate
|
||||
|
||||
- (void)webViewDidClose:(WKWebView *)webView {
|
||||
[self webView:webView handleJavaScriptDialog:false value:nil];
|
||||
for (NSWindow *window in _headlessWindows) {
|
||||
if (webView.window != window)
|
||||
continue;
|
||||
|
@ -418,6 +418,7 @@ static BOOL areEssentiallyEqual(double a, double b)
|
||||
}
|
||||
|
||||
- (void)webViewDidClose:(WKWebView *)webView {
|
||||
[self webView:webView handleJavaScriptDialog:false value:nil];
|
||||
[self.window close];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user