Skip to content

firefox (all versions): some WebExtensions and first boot landing page crash silently #167785

@neirenoir

Description

@neirenoir

Since my last NixOS upgrade, most of my Firefox addons have stopped working. Finding the root cause of the bug has been complicated since the bug is not consistent across computers of similar configuration, and the debugging tools or the CLI do not give away any information.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install any version of Firefox (vanilla, bin, ESR, devedition, beta, wayland, etc)
  2. Install an addon that can replicate the bug (uBlock seems to be prone to crashing)
  3. Try to click the addon's icon to open it. You will be met with a vertical white strip instead.
  4. Go to about:debugging and navigate through the Manifest link corresponding to the faulty extension shown in This Firefox until you find the addon's popup HTML file (in the case of uBlock, it is found in moz-extension://{extension ID here}/popup.html)
  5. "Gah. Your tab just crashed."

Expected behavior

Funnily enough, not all extensions, nor all of the pages inside of an extension will cause a crash. HTTPS Everywhere seems to work most of the time, but uBlock, uMatrix and also Metamask crash before being able to start. uBlock and uMatrix stop working completely, but Metamask still manages to inject window.web3 and even attempts to open wallet connection request popups (although they don't manage to render) when interacting with it. uBlock and uMatrix's internal setting pages don't seem to crash the browser.

Additional context

To make the issue more bizarre, this is only happening in my desktop, not in my laptop. The configuration of both machines is similar, and I am almost sure hardware is not the issue. Checking Mozilla's crash stats, there have been (to date) 78 crashes with the same signature, of which 100% come from NixOS machines with all sorts of hardware configurations. The common point between all these crashes is that Firefox reports to be missing libc.so.6, libgio-2.0.so.0 and libglib-2.0.so.0.

Notify maintainers

Tagging @mweinelt @lovesegfault @edolstra @Ma27 @lovek323 @7c6f434c. Pardon me if this bug report is not relevant to some of you.

Metadata

[nix-shell:~]$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.17.1, NixOS, 22.05 (Quokka), 22.05pre367572.b6966d911da`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions