Window.print() crashes cursor

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I use a workaround to export a canvas to PDF. I open teh canvas, click “inspect element” and enter window.print() in teh console. This opens the system print dialog and gives me the possibility to print to a PDF so I can share teh canvas with non-cursor users.

Since the last update this function call crashes cursor. It immediately closes.

I am on macOS 26.5.2 (25F84):

Cursor Version: 3.9.16
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0

Steps to Reproduce

  • Create a canvas
  • open it
  • right click > inspect element
  • in teh console enter “window.print()”
  • after hitting ENTER cursor crashes

Expected Behavior

The system print dialog should open for the canvas page

Operating System

MacOS

Version Information

Version: 3.9.16
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0

For AI issues: which model did you use?

N/A

For AI issues: add Request ID with privacy disabled

N/A

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @SFR!

Thanks for the report. This looks like electron/electron#50827, and it will eventually get fixed in Cursor when we bump the version of Electron.