Right-clicking on a renderer-created window with vibrancy causes crash #44943
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
32.2.6
What operating system(s) are you using?
macOS
Operating System Version
Sequoia 15.1.1
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
32.2.5
Expected Behavior
- Create a window from the renderer via
window.open
, and override the options in the main process to setvibrancy: "titlebar"
(though any validvibrancy
value seems to reproduce this). - Right-click on the created window.
- The normal right-click action (possibly a no-op) occurs.
Actual Behavior
The app crashes.
Testcase Gist URL
https://gist.github.com/cptpcrd/38d609cf5b77a31560a84a09965d60c2
Additional Information
This reproduces on 32.2.6, 33.2.1, and 34.0.0-beta.6. It does not reproduce on 32.2.5, 33.2.0, or 34.0.0-beta.5.
I made a local build from v32.2.6
and tested. Reverting #44761 (or more properly, its v32 backport #44798 / 85a3ed3) fixed the crash, but applying #44940 did not fix the crash.