Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

browser(webkit): destroy main window after the view (#2233)

Pavel Feldman62ae07903552
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER
index f954c7ae0f..f70eccf23b 100644
--- a/browser_patches/webkit/BUILD_NUMBER
+++ b/browser_patches/webkit/BUILD_NUMBER
@@ -1 +1 @@
-1229
+1230
diff --git a/browser_patches/webkit/src/Tools/Playwright/win/MainWindow.cpp b/browser_patches/webkit/src/Tools/Playwright/win/MainWindow.cpp
index a8dc408782..2c9c9507ae 100644
--- a/browser_patches/webkit/src/Tools/Playwright/win/MainWindow.cpp
+++ b/browser_patches/webkit/src/Tools/Playwright/win/MainWindow.cpp
@@ -325,7 +325,7 @@ LRESULT CALLBACK MainWindow::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
}
}
break;
- case WM_DESTROY:
+ case WM_NCDESTROY:
SetWindowLongPtr(hWnd, GWLP_USERDATA, 0);
delete thisWindow;
if (s_noStartupWindow || s_numInstances > 0)