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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Dec 2023 21:56:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273931

Jesper Schmitz Mouridsen <jsm@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm@FreeBSD.org

--- Comment #6 from Jesper Schmitz Mouridsen <jsm@FreeBSD.org> ---
Not tested on recent firefox but pipewire and wayland support seems to bug x11
screen sharing. 
If I remove the following from
third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
(After bsd patches are applied) it works under X11.. 


if CONFIG["CPU_ARCH"] == "x86_64":

    DEFINES["WEBRTC_ENABLE_AVX2"] = True
    DEFINES["WEBRTC_USE_PIPEWIRE"] = True

    LOCAL_INCLUDES += [
        "/gfx/angle/checkout/include/",
        "/third_party/drm/drm/",
        "/third_party/drm/drm/include/",
        "/third_party/drm/drm/include/libdrm/",
        "/third_party/gbm/gbm/",
        "/third_party/libepoxy/libepoxy/include/",
        "/third_party/pipewire/"
    ]

    SOURCES += [
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_linux.cc"
    ]

    UNIFIED_SOURCES += [
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/mouse_cursor_monitor_pipewire.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/restore_token_manager.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/screen_capturer_linux.cc",
       
"/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
    ]

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