electron/patches
trop[bot] e2b9cedf0f
feat: add support for associating a Menu with a WebFrameMain (#46350)
feat: add support for associating a Menu with a WebFrameMain (#45138)

* feat: add support for associating a Menu with a WebFrameMain

This allows certain OS level features to activate such as Writing Tools, Autofill.. and Services.

There appears to be a bug in macOS where the responder chain isn't traversed if the menu is not popped up using an event, as such we spoof a fake mouse event at the write coordinates in the right window and use that to open the menu.

* build: fix build on non-mac

* build: oops missed a header

* fix: safely handle optional T* by checking nullptr too

* build: fix gn check and build errors

* docs: suggested changes

* feat: default `frame` to `window.webContents.mainFrame` when possible

* fix: avoid deref nullptr view

* Revert "feat: default `frame` to `window.webContents.mainFrame` when possible"

This reverts commit 2e888368199317d67f6ad931a7e9eff0295c4b1b.

* fix: lint

* Remove redundant scoped objects

This code, including the comments, matches almost exactly the behavior of this argument to the function.

* Add ScopedPumpMessagesInPrivateModes patch

* More null pointer safety

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Samuel Attard <sam@electronjs.org>
2025-04-01 09:00:46 -05:00
..
boringssl chore: bump chromium to 136.0.7067.0 (36-x-y) (#46017) 2025-03-21 10:21:08 -04:00
chromium feat: add support for associating a Menu with a WebFrameMain (#46350) 2025-04-01 09:00:46 -05:00
devtools_frontend chore: bump chromium to 136.0.7067.0 (36-x-y) (#46017) 2025-03-21 10:21:08 -04:00
ffmpeg chore: bump chromium to 131.0.6734.0 (main) (#43769) 2024-09-25 06:19:39 -05:00
Mantle chore: bump chromium to 096e5313aaf19dfa0c4710145c34d (master) (#26535) 2020-12-14 10:57:36 -08:00
nan chore: bump chromium to 135.0.7041.2 (main) (#45850) 2025-02-28 17:29:23 -05:00
node fix: ensure TraverseParent bails on resource path exit (#46212) 2025-03-24 11:29:40 -04:00
perfetto chore: bump chromium to 128.0.6558.0 (main) (#42413) 2024-07-02 09:51:33 +02:00
ReactiveObjC chore: bump chromium to 94.0.4584.0 (main) (#30030) 2021-07-26 09:02:16 -07:00
reclient-configs chore: bump chromium to 124.0.6359.0 (main) (#41584) 2024-03-15 14:03:42 -04:00
sqlite build: reland bump Node.js to v22.9.0 (#44597) 2024-11-13 15:34:30 +01:00
squirrel.mac chore: bump chromium to 129.0.6630.0 (main) (#43087) 2024-08-02 09:02:11 -05:00
v8 chore: bump chromium to 136.0.7067.0 (36-x-y) (#46017) 2025-03-21 10:21:08 -04:00
webrtc build: combine pipewire patches (#46145) 2025-03-21 15:55:55 -04:00
config.json build: reland bump Node.js to v22.9.0 (#44597) 2024-11-13 15:34:30 +01:00
README.md docs: add a dev doc describing the patch system (#20489) 2019-10-09 14:48:09 -07:00