Skip to content

Commit 890add9

Browse files
authored
browser(webkit): do not hang on close when there is a dialog (#4332)
1 parent bc97650 commit 890add9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1377
2-
Changed: [email protected] Tue 03 Nov 2020 03:59:48 PM PST
1+
1378
2+
Changed: [email protected] Tue Nov 3 18:28:54 PST 2020

browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ - (void)quit
358358
#pragma mark WKUIDelegate
359359

360360
- (void)webViewDidClose:(WKWebView *)webView {
361+
[self webView:webView handleJavaScriptDialog:false value:nil];
361362
for (NSWindow *window in _headlessWindows) {
362363
if (webView.window != window)
363364
continue;

browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ - (void)windowWillClose:(NSNotification *)notification
418418
}
419419

420420
- (void)webViewDidClose:(WKWebView *)webView {
421+
[self webView:webView handleJavaScriptDialog:false value:nil];
421422
[self.window close];
422423
}
423424

0 commit comments

Comments
 (0)