Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Exambrowser on MacBook Air displays a JavaScript error

Exambrowser on MacBook Air: "A JavaScript error occurred in the main process"


Hello everyone,


I’m having trouble opening Exambrowser on my MacBook Air. I keep getting this error message:

"A JavaScript error occurred in the main process — Uncaught Exception: TypeError: Cannot read properties of null (reading 'webContents')"

I’ve already tried these steps but the issue persists:


1. Uninstalled and reinstalled the macOS version of Exambrowser from the official link


2. Ran the command xattr -cr /Applications/exambrowser.app in Terminal


3. Tried to grant permissions in System Settings → Privacy & Security → Accessibility, but Exambrowser does not appear there, and the lock icon is also hard to locate


4. Enabled Screen Recording permission as well


Could anyone help with this JavaScript error? Are there any special or different settings needed specifically for MacBook Air?

2 replies

Hi,

This specific error means an Electron-based application (the framework your exam browser is built on) tried to control an internal browser window that does not exist or has already been closed. In exam software, this is usually triggered when the browser window loses focus, is unexpectedly blocked by macOS, or crashes during a download/file-handling process.