Logo
Explore Help
Register Sign In
yujunjun/playwright
1
0
Fork 0
You've already forked playwright
mirror of https://github.com/microsoft/playwright.git synced 2025-06-26 21:40:17 +00:00
Code Issues Packages Projects Releases Wiki Activity
playwright/browser_patches/webkit/BUILD_NUMBER

2 lines
5 B
Plaintext
Raw Normal View History

browser(webkit): let web page close when it has open context menu (#2802) Review URL: https://github.com/aslushnikov/webkit/commit/42f86e9d77a4867f23fa9b580b241d7cf3b85f93 Currently, if web page has an open context menu, then it won't close. This prevents browser from quitting. In stock safari, this behavior can also be observed in a way that context menu will stay opened even if related page got closed. While investigating this behavior on Mac, a crucial observation was that `[NSMenu popUpContextMenu]` is spawning a nested event loop, keeping reference to `WebContextMenuProxyMac` instance, which in turn keeps references on associated `NSView` with `WKWebView`. To exit the loop, we need to explicitly cancel context menu. For this, this patch adds a method `hide` on `WebContextMenuProxy` that uses port-specific code to cancel context menu. Windows part of this patch is somewhat speculative: I didn't check it, but given the same symptomps, I applied the same solution. Fixes #2700
2020-07-01 18:12:11 -07:00
1297
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 265ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API