🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6961

Bug#1155982: firefox: Please enable media.webrtc.camera.allow-pipewire (MIPI cameras unusable)

#6961
From: Mike Hommey
Date: Tue, 01 Dec 2026 00:40
83 lines
4589 bytes
Please file this upstream.

Mike

On Mon, Nov 30, 2026 at 11:42:57PM +0100, Paul Menzel wrote:
> Package: firefox
> Version: 160.0.1-1
> Severity: normal
> 
> Dear Debian folks,
> 
> 
> Firefox still defaults to media.webrtc.camera.allow-pipewire=false, so it
> uses the V4L2 camera backend. On laptops with a MIPI camera driven through
> libcamera, like Intel IPU6 (most current business laptops), the V4L2 video
> devices are raw CSI-2 receivers that only libcamera can drive. Firefox
> offers a camera, but getUserMedia() fails:
> 
>     NotReadableError: Starting videoinput failed
> 
> With the preference set to true, Firefox goes through the camera portal and
> PipeWire (libcamera SPA plugin), and the camera works:
> 
>     track: Interne vordere Kamera {"height":480,"width":640, ...}
> 
> Tested on a Dell XPS 9315 (IPU6, OV01A10 sensor) with Debian sid, GNOME 51
> on Wayland:
> 
>     firefox                160.0.1-1
> 
>     libcamera0.7           0.7.2-1
> 
>     libspa-0.2-libcamera   1.6.11-2
> 
>     pipewire               1.6.11-2
> 
>     wireplumber            0.5.19-1
> 
>     xdg-desktop-portal     1.22.1+ds-1
> 
>     xdg-desktop-portal-gnome 51.0-2
> 
> 
> The default value was checked in Firefox’s default preference branch:
> media.webrtc.camera.allow-pipewire=false (camera),
> media.webrtc.capture.allow-pipewire=true (screen sharing, see Debian bug
> #960645). Upstream’'s modules/libpref/init/StaticPrefList.yaml on main still
> has value false.
> 
> 
> Fedora has shipped the preference as true since Fedora 41 [1]. The
> firefox.spec appends it to firefox-redhat-default-prefs.js:
> 
> 
>     echo 'pref("media.webrtc.camera.allow-pipewire", true);' >> ...
> 
> The risk for systems without a camera portal looks small: since Firefox 124,
> Firefox falls back to V4L2 if the portal request fails or is rejected [2].
> 
> Proposed change, for debian/browser.js.in (it ends up in
> /etc/firefox/firefox.js):
> 
>     // Use the camera portal and PipeWire for cameras, as Fedora does.
>     // Without it, MIPI cameras driven by libcamera (for example
>     // Intel IPU6) do not work.
>     pref("media.webrtc.camera.allow-pipewire", true);
> 
> firefox-esr has the same default, so it probably wants the same change.
> 
> Workaround for affected users: set the preference in about:config, or
> system-wide in a file in /etc/firefox/defaults/pref/.
> 
> 
> Kind regards,
> 
> Paul
> 
> 
> [1]: https://src.fedoraproject.org/rpms/firefox/c/b9b254a
>      "Enable PipeWire camera support for F41+" (2024-08-14)
> [2]: https://bugzilla.mozilla.org/show_bug.cgi?id=1849608
>      "Fallback to v4l2 camera backend if the pipewire backend is in use and
> access request failed or was rejected"
Technical Details
Message-ID: <O5k4x-fdUK-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <O5im5-fcTS-5@gated-at.bofh.it> <O5im5-fcTS-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Mike Hommey <mh@glandium.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155982: firefox: Please enable media.webrtc.camera.allow-pipewire (MIPI cameras unusable)
Date: Tue, 01 Dec 2026 01:40:01 +0100
Message-ID: <O5k4x-fdUK-1@gated-at.bofh.it>
References: <O5im5-fcTS-5@gated-at.bofh.it> <O5im5-fcTS-5@gated-at.bofh.it>
X-Original-To: Paul Menzel <pmenzel@molgen.mpg.de>, 1155982@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Dec  1 00:31:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Mike Hommey <mh@glandium.org>, 1155982@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-mozilla@tracker.debian.org
X-Debian-Pr-Message: followup 1155982
X-Debian-Pr-Package: firefox
X-Debian-Pr-Source: firefox, iceweasel
X-Gpg-Fingerprint: 182E 161D 1130 B9FC CD7D  B167 E42A A04F A6AA 8C72
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Content-Disposition: inline
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006212
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 83
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 1 Dec 2026 09:28:47 +0900
X-Original-Message-ID: <tzy7fbcasppokdted5t76cmkbukledjjby7iobsoxslnkpmlnc@bsqks6zr4sbd>
X-Original-References: <b802d60a-6956-4819-9766-6fa106980e53@molgen.mpg.de> <b802d60a-6956-4819-9766-6fa106980e53@molgen.mpg.de>