Skip to content

[Bug]: Firefox fails to launch on macOS 27 — sandbox extension for plugin-container denied, child killed on signal 9 #42082

Closed as not planned

Description

@tregusti

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: false
npx [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

  1. theeaglesfan005 commented on Aug 3, 2026

    @theeaglesfan005

    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) error

  2. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

    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 its plugin-container child. 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_process on 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
    • Searched the tracker for sandbox_extension_issue_file_to_process and macOS 27 Firefox launch failures — no existing issue.
    • Confirmed Playwright's Firefox patches don't touch the macOS process sandbox (browser_patches/firefox) — the only sandbox hits are unrelated XPConnect/JS sandbox globals and a Linux security.sandbox.warn_unprivileged_namespaces pref.
    • Could not reproduce directly: no Apple-silicon macOS 27 host available. Verdict is based on the logs and your cross-platform matrix (Linux + Chromium/WebKit on macOS 27 all pass).

    Triaged by the Playwright bot - agent run

  3. Skn0tt commented on Aug 4, 2026

    @Skn0tt
    Contributor

    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.

  4. tregusti commented on Aug 4, 2026

    @tregusti
    Author

    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, with
    Playwright not involved at all:

    $ /Applications/Firefox Nightly.app/Contents/MacOS/firefox -profile /tmp/p -no-remote about:blank
    sandbox_extension_issue_file_to_process failed for
      /Applications/Firefox Nightly.app/Contents/MacOS/plugin-container.app: 1 (Operation not permitted)
    [Parent 60618, IPC I/O Parent] WARNING: process 60700 exited on signal 9
    → exit code 1
    

    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.

  5. Skn0tt commented on Aug 4, 2026

    @Skn0tt
    Contributor

    Thanks for checking! Closing per above then.

  6. jeremybdk commented on Aug 31, 2026

    @jeremybdk

    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, with Playwright not involved at all:

    $ /Applications/Firefox Nightly.app/Contents/MacOS/firefox -profile /tmp/p -no-remote about:blank
    sandbox_extension_issue_file_to_process failed for
      /Applications/Firefox Nightly.app/Contents/MacOS/plugin-container.app: 1 (Operation not permitted)
    [Parent 60618, IPC I/O Parent] WARNING: process 60700 exited on signal 9
    → exit code 1
    

    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.

    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

  7. tregusti commented on Sep 1, 2026

    @tregusti
    Author

    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

    Yes I did.

    https://bugzilla.mozilla.org/show_bug.cgi?id=2060476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions