Skip to content

Instantly share code, notes, and snippets.

@Rush
Created May 10, 2026 06:00
Show Gist options
  • Select an option

  • Save Rush/1d9276720cea0aabea4cce27be94978d to your computer and use it in GitHub Desktop.

Select an option

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
// 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