browser(webkit): close context menu on Windows when closing page (#2825)

Review URL: 358fd983a9
This commit is contained in:
Andrey Lushnikov 2020-07-02 15:21:12 -07:00 committed by GitHub
parent 6aef045fd4
commit 3dd09f04ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,2 +1,2 @@
1300 1301
Changed: lushnikov@chromium.org Wed Jul 2 12:02:52 PDT 2020 Changed: lushnikov@chromium.org Thu Jul 2 15:14:04 PDT 2020

View file

@ -13742,7 +13742,7 @@ index 0000000000000000000000000000000000000000..135a60361fa8fbf907382625e7c8dd4e
+ +
+} // namespace WebKit +} // namespace WebKit
diff --git a/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp b/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp diff --git a/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp b/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp
index aa171f48bc40a96a86d951451b578f609c573fce..2a335dd6d0a8e2ce416acc940d66f177f6771f19 100644 index aa171f48bc40a96a86d951451b578f609c573fce..c275d25f142ea265ef6b1805c7cfdc04aba758c0 100644
--- a/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp --- a/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp
+++ b/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp +++ b/Source/WebKit/UIProcess/win/WebContextMenuProxyWin.cpp
@@ -122,5 +122,11 @@ WebContextMenuProxyWin::~WebContextMenuProxyWin() @@ -122,5 +122,11 @@ WebContextMenuProxyWin::~WebContextMenuProxyWin()
@ -13752,7 +13752,7 @@ index aa171f48bc40a96a86d951451b578f609c573fce..2a335dd6d0a8e2ce416acc940d66f177
+void WebContextMenuProxyWin::hide() +void WebContextMenuProxyWin::hide()
+{ +{
+ if (m_menu) + if (m_menu)
+ ::DestroyMenu(m_menu); + ::EndMenu();
+} +}
+ +
} // namespace WebKit } // namespace WebKit