Skip to content

v0.16.1 — Firefox 154 compatibility

Choose a tag to compare

@adamXbot adamXbot released this 21 Aug 09:41
· 2 commits to main since this release
976e307

A patch release for one thing: Firefox 154 broke every capture, and 0.16.0 or anything older will fail against it.

What happened

Firefox 154 moved ContextualIdentityService from resource://gre/modules/ContextualIdentityService.sys.mjs to moz-src:///toolkit/components/contextualidentity/. Importing either URL hard fails on the build that does not have it, so the container-tabs capture died the day 154 shipped:

MarionetteError: Failed to load resource://gre/modules/ContextualIdentityService.sys.mjs

Nothing in 0.16.0 caused it — core.py was byte-identical to 0.15.0. The same 0.16.0 passed on Firefox 153.0.4 three days before it failed on 154.0.

The fix

browser.js declares these modules with ChromeUtils.defineESModuleGetters(this, …) on both current Firefox and ESR 140, so the window property is the same object either side and names no URL to go stale. ContextualIdentityService now comes off the window, the way CustomizableUI already did for exactly this reason.

PlacesUtils moves to the same pattern. It has not moved and was not broken — it was the identical assumption waiting for the next uplift.

A test scans core.py for importESModule and fails on any that reappears.

Verified

All three CI platforms on Firefox 154.0, each capturing the container view that was failing, with no module-load errors.

If your CI pins fxcss, bump it to 0.16.1 — 154 is rolling out now.