Repository navigation
Description
Version
1.62.1
Steps to reproduce
On macOS 27.0 "Golden Gate" (developer beta, build 26A5388g, Apple silicon):
import { firefox } from "@playwright/test";
const browser = await firefox.launch({ headless: true }); // or headless: falsenpx [email protected] install firefox
node probe.mjs
Expected behavior
Firefox launches, as it does on Linux with the identical browser build.
Actual behavior
Firefox never completes startup. Its internal sandbox cannot issue the sandbox
extension for the plugin-container child, the child is killed with signal 9,
and the parent hangs (headless) or exits (headed).
Headless — times out at the launch timeout:
[err] *** You are running in headless mode.
[err] sandbox_extension_issue_file_to_process failed for
.../firefox-1538/firefox/Nightly.app/Contents/MacOS/plugin-container.app: 1 (Operation not permitted)
[out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: RenderCompositorSWGL
failed mapping default framebuffer, no dt
Headed — browserType.launch: Failed to launch the browser process:
[err] sandbox_extension_issue_file_to_process failed for
.../plugin-container.app: 1 (Operation not permitted)
[err] Nightly GPU Helper[...] Connection Invalid error for service com.apple.hiservices-xpcservice
[err] [Parent, IPC I/O Parent] WARNING: process 91098 exited on signal 9:
file ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc:161
[pid=...] <process did exit: exitCode=1, signal=null>
In headed mode Firefox also shows its generic "Profile Missing" dialog. That is
a red herring — the profile directory
($TMPDIR/playwright_firefoxdev_profile-*) is created correctly every run; the
dialog is just how Firefox reports a failed start.
Additional context
The same Playwright version and the same Firefox build work fine on Linux.
Probed inside a node:26-bookworm container with [email protected] and
npx [email protected] install:
firefox: PASS (153.0)
chromium: PASS (151.0.7922.34)
webkit: PASS (26.5)
So this looks specific to macOS 27 rather than to the Firefox build.
Not fixed by newer Firefox rolls. First hit on r1532 (Nightly buildID
20260611192437) with Playwright 1.61.1. Still identical on r1538 / Firefox
153.0 with 1.62.1 — six rolls later.
Chromium and WebKit are unaffected on macOS 27; a full e2e suite passes on
both.
Reproduced both under a sandboxed shell and unsandboxed, so it is not an
artifact of a wrapping sandbox. Nothing in the config touches launch flags,
profiles, or sandbox settings.
I could not find an existing issue for this — searching the tracker for
sandbox_extension_issue_file_to_process and for macOS 27 Firefox launch
failures returned nothing.
Environment
- Operating System: macOS 27.0 (
26A5388g, developer beta), Apple silicon - Node.js version: 26.3.0
- Browser: Firefox 153.0 (playwright firefox r1538)
- Playwright Version: 1.62.1
Activity
theeaglesfan005 commentedon Aug 3, 2026
Interesting... also seeing similar issue with Firefox on the macOS 27 beta as well... thought was something I did
also getting the same
sandbox_extension_issue_file_to_process failed for /Users/USERFOLDER/Library/Caches/ms-playwright/firefox-1532/firefox/Nightly.app/Contents/MacOS/plugin-container.app: 1 (Operation not permitted)errorgithub-actions commentedon Aug 4, 2026
Hi, I'm the Playwright bot and I took a first look at this.
This looks like a macOS 27 beta + Firefox sandbox interaction, not a Playwright bug — and not something Playwright can patch around. The failing call,
sandbox_extension_issue_file_to_process ... plugin-container.app: 1 (Operation not permitted), is Firefox's own macOS process-sandbox code issuing a sandbox extension to itsplugin-containerchild. When that's denied the child is killed on signal 9 and startup never completes — exactly what you're seeing. Playwright ships a stock Firefox and doesn't patch its macOS sandbox, so there's no launch flag or profile setting on our side that changes this.Your own evidence lines up with that: the identical Firefox build launches fine on Linux, Chromium and WebKit are unaffected on the same macOS 27 box, and six Firefox rolls didn't move it. That points squarely at a sandbox-policy change in the macOS 27.0 developer beta (
26A5388g) that current Firefox doesn't yet satisfy, rather than at anything in the browser build or in Playwright.I couldn't reproduce it myself — this is Apple-silicon macOS 27 developer-beta specific and I don't have that OS — so I'm going on the logs and the cross-platform matrix you already gathered, which are pretty conclusive. Thanks for the thorough writeup and the Linux/Chromium/WebKit control runs; that's what made the localization easy.
Realistically this resolves when Firefox adapts to the macOS 27 sandbox changes (or when the beta itself changes), so it's worth watching Mozilla's tracker for
sandbox_extension_issue_file_to_processon macOS 27. If you can, a quick check would help confirm: does a stock Firefox Nightly downloaded from mozilla.org (not via Playwright) launch on the same machine? If it fails the same way, that nails it as upstream; if it launches, that'd be a surprising and useful signal to dig into.What I checked
sandbox_extension_issue_file_to_processand macOS 27 Firefox launch failures — no existing issue.browser_patches/firefox) — the onlysandboxhits are unrelated XPConnect/JS sandbox globals and a Linuxsecurity.sandbox.warn_unprivileged_namespacespref.Triaged by the Playwright bot - agent run
Skn0tt commentedon Aug 4, 2026
Hi Glenn Jorde (@tregusti), thanks for trying this out and calling in! The above is not entirely correct, Playwright does not ship a stock Firefox but a slightly patched one. I checked our patches but couldn't find anything that looks like it would cause this error.
I suspect this is also broken on stock Firefox, please check whether Firefox Nightly works for you.
tregusti commentedon Aug 4, 2026
Thank you Simon Knott (@Skn0tt).
Checked stock Firefox Nightly from mozilla.org (Developer ID signed,
org.mozilla.nightly) on the same machine — it fails the same way, withPlaywright not involved at all:
Headless fails too (never completes startup). So this is upstream in Firefox on
macOS 27, not a Playwright issue — feel free to close.
Two notes in case they save anyone time: the signing difference between your
build and Mozilla's isn't the cause (both reproduce), and stock Nightly
double-clicked from Finder does launch — it's the command-line launch with a
fresh profile that fails, which is how Playwright starts it.
I'll take this to Mozilla's tracker.
Skn0tt commentedon Aug 4, 2026
Thanks for checking! Closing per above then.
feat!: prepare Nuxt Photo 1.0 release candidate (#36)
jeremybdk commentedon Aug 31, 2026
Hello, did you create an issue on Moziilla's tracker by any chance ? So that I can follow it if it's already created, thanks
tregusti commentedon Sep 1, 2026
Yes I did.
https://bugzilla.mozilla.org/show_bug.cgi?id=2060476
Switch screenshot rendering from Firefox to Chromium