[Bug 273931] www/firefox: Crash when trying to share screen

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 Dec 2023 02:12:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273931

--- Comment #7 from Jesper Schmitz Mouridsen <jsm@FreeBSD.org> ---
(In reply to Jesper Schmitz Mouridsen from comment #6)
diff dom/media/webrtc/third_party_build/webrtc.mozbuild
dom/media/webrtc/third_party_build/webrtc.mozbuild.orig 
22,23c22,23
<     if CONFIG['OS_TARGET'] == 'FreeBSD':
<         DEFINES['WEBRTC_BSD'] = True
---
>     if CONFIG['OS_TARGET'] == 'Linux':
>         DEFINES['WEBRTC_LINUX'] = True

This ensures that WEBRTC_* defines are the same across relevant directories
specifically WEBRTC_USE_PIPEWIRE, which fixes the bug. The above patched file
is included in dom/media/systemservices/moz.build. I did test shortly under
sway with guides from here
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268726>, the screencast did
start, but I am new to xdg-portal- stuff, so I could not get a window picker or
a stable experience..

-- 
You are receiving this mail because:
You are the assignee for the bug.