mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00: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
|
1378
|
||||||
Changed: yurys@chromium.org Tue 03 Nov 2020 03:59:48 PM PST
|
Changed: yurys@chromium.org Tue Nov 3 18:28:54 PST 2020
|
||||||
|
@ -358,6 +358,7 @@ const NSActivityOptions ActivityOptions =
|
|||||||
#pragma mark WKUIDelegate
|
#pragma mark WKUIDelegate
|
||||||
|
|
||||||
- (void)webViewDidClose:(WKWebView *)webView {
|
- (void)webViewDidClose:(WKWebView *)webView {
|
||||||
|
[self webView:webView handleJavaScriptDialog:false value:nil];
|
||||||
for (NSWindow *window in _headlessWindows) {
|
for (NSWindow *window in _headlessWindows) {
|
||||||
if (webView.window != window)
|
if (webView.window != window)
|
||||||
continue;
|
continue;
|
||||||
|
@ -418,6 +418,7 @@ static BOOL areEssentiallyEqual(double a, double b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)webViewDidClose:(WKWebView *)webView {
|
- (void)webViewDidClose:(WKWebView *)webView {
|
||||||
|
[self webView:webView handleJavaScriptDialog:false value:nil];
|
||||||
[self.window close];
|
[self.window close];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user