Cap font sizes for popup menus on Mac
Minor
提交哈希:
44241f776394c53f5f373e8a71930cace1619cf2
提交时间: 2026-05-04 15:54:35
影响等级: Minor
生成工具: chromium-watcher
上游审核链接:
查看上游审核 🔗
📋 摘要
This commit adds a defensive cap of 10,000 on font sizes for Mac popup menus (e.g.
🎯 影响分析
The impact on WebView2Mac is minor. The change is in content/app_shim_remote_cocoa/web_menu_runner_mac.mm,
which is part of the Remote Cocoa layer handling web popup menus. This file exists in the Edge downstream
repo and currently lacks this fix. The change is purely a defensive security hardening (adding std::min cap)
with no Mojo interface changes, no Bridge/Host communication protocol modifications, and no API behavior
changes. WebView2Mac's HostingNSWindowBridge and popup menu functionality will not be functionally affected.
This fix will be seamlessly incorporated during the next upstream merge.
which is part of the Remote Cocoa layer handling web popup menus. This file exists in the Edge downstream
repo and currently lacks this fix. The change is purely a defensive security hardening (adding std::min cap)
with no Mojo interface changes, no Bridge/Host communication protocol modifications, and no API behavior
changes. WebView2Mac's HostingNSWindowBridge and popup menu functionality will not be functionally affected.
This fix will be seamlessly incorporated during the next upstream merge.
受影响的类:
WebMenuRunner (content/app_shim_remote_cocoa/web_menu_runner_mac.mm)