Created
May 10, 2026 06:00
-
-
Save Rush/1d9276720cea0aabea4cce27be94978d to your computer and use it in GitHub Desktop.
Electron crash repro: SIGSEGV on right-click in -webkit-app-region: drag on macOS 26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // main.js — Minimal reproduction for right-click crash on macOS 26 | |
| // Run: npx electron . | |
| // Then right-click the gray drag bar → SIGSEGV crash | |
| // | |
| // Tested: crashes on Electron 42.0.1 and 43.0.0-alpha.1 | |
| // Works fine on Electron 41.3.0 | |
| // macOS Tahoe 26.2 (25C56), Apple Silicon | |
| const { app, BrowserWindow } = require('electron'); | |
| app.whenReady().then(() => { | |
| const win = new BrowserWindow({ | |
| width: 800, | |
| height: 600, | |
| titleBarStyle: 'hidden', | |
| webPreferences: { | |
| nodeIntegration: false, | |
| contextIsolation: true, | |
| }, | |
| }); | |
| win.loadURL(`data:text/html, | |
| <div style="-webkit-app-region: drag; height: 40px; background: %23333; | |
| color: white; display: flex; align-items: center; padding: 0 80px; | |
| user-select: none;"> | |
| RIGHT CLICK HERE TO CRASH | |
| </div> | |
| <div style="padding: 20px;"> | |
| Content area — right-click here is fine | |
| </div> | |
| `); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment