812674
diff --git a/dom/media/webrtc/third_party_build/webrtc.mozbuild b/dom/media/webrtc/third_party_build/webrtc.mozbuild
812674
index 30169c36c2..335e3cb1a1 100644
812674
--- a/dom/media/webrtc/third_party_build/webrtc.mozbuild
812674
+++ b/dom/media/webrtc/third_party_build/webrtc.mozbuild
812674
@@ -35,6 +35,3 @@ if CONFIG['MOZ_WEBRTC']:
812674
 
812674
     if CONFIG['MOZ_X11']:
812674
         DEFINES['WEBRTC_USE_X11'] = True
812674
-
812674
-    if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
812674
-        DEFINES['WEBRTC_USE_PIPEWIRE'] = True
812674
diff --git a/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build b/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
812674
index 8c56b6b8e5..eaf8d7087a 100644
812674
--- a/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
812674
+++ b/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
812674
@@ -232,102 +232,6 @@ if CONFIG["CPU_ARCH"] == "aarch64":
812674
     DEFINES["WEBRTC_ARCH_ARM64"] = True
812674
     DEFINES["WEBRTC_HAS_NEON"] = True
812674
 
812674
-if CONFIG["CPU_ARCH"] == "arm":
812674
-
812674
-    CXXFLAGS += [
812674
-        "-mfpu=neon"
812674
-    ]
812674
-
812674
-    DEFINES["WEBRTC_ARCH_ARM"] = True
812674
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
812674
-    DEFINES["WEBRTC_HAS_NEON"] = True
812674
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
-    DEFINES["_GNU_SOURCE"] = True
812674
-
812674
-    LOCAL_INCLUDES += [
812674
-        "/gfx/angle/checkout/include/",
812674
-        "/third_party/drm/drm/",
812674
-        "/third_party/drm/drm/include/",
812674
-        "/third_party/drm/drm/include/libdrm/",
812674
-        "/third_party/gbm/gbm/",
812674
-        "/third_party/libepoxy/libepoxy/include/",
812674
-        "/third_party/pipewire/"
812674
-    ]
812674
-
812674
-    SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc"
812674
-    ]
812674
-
812674
-    UNIFIED_SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/mouse_cursor_monitor_pipewire.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/restore_token_manager.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
812674
-    ]
812674
-
812674
-if CONFIG["CPU_ARCH"] == "mips32":
812674
-
812674
-    DEFINES["MIPS32_LE"] = True
812674
-    DEFINES["MIPS_FPU_LE"] = True
812674
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
-    DEFINES["_GNU_SOURCE"] = True
812674
-
812674
-    LOCAL_INCLUDES += [
812674
-        "/gfx/angle/checkout/include/",
812674
-        "/third_party/drm/drm/",
812674
-        "/third_party/drm/drm/include/",
812674
-        "/third_party/drm/drm/include/libdrm/",
812674
-        "/third_party/gbm/gbm/",
812674
-        "/third_party/libepoxy/libepoxy/include/",
812674
-        "/third_party/pipewire/"
812674
-    ]
812674
-
812674
-    SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc"
812674
-    ]
812674
-
812674
-    UNIFIED_SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/mouse_cursor_monitor_pipewire.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/restore_token_manager.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
812674
-    ]
812674
-
812674
-if CONFIG["CPU_ARCH"] == "mips64":
812674
-
812674
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
-    DEFINES["_GNU_SOURCE"] = True
812674
-
812674
-    LOCAL_INCLUDES += [
812674
-        "/gfx/angle/checkout/include/",
812674
-        "/third_party/drm/drm/",
812674
-        "/third_party/drm/drm/include/",
812674
-        "/third_party/drm/drm/include/libdrm/",
812674
-        "/third_party/gbm/gbm/",
812674
-        "/third_party/libepoxy/libepoxy/include/",
812674
-        "/third_party/pipewire/"
812674
-    ]
812674
-
812674
-    SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc"
812674
-    ]
812674
-
812674
-    UNIFIED_SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/mouse_cursor_monitor_pipewire.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/restore_token_manager.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
812674
-    ]
812674
-
812674
 if CONFIG["CPU_ARCH"] == "ppc64":
812674
 
812674
     DEFINES["USE_X11"] = "1"
812674
@@ -410,97 +314,6 @@ if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
812674
 
812674
     DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
812674
 
812674
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
812674
-
812674
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
-    DEFINES["_GNU_SOURCE"] = True
812674
-
812674
-    LOCAL_INCLUDES += [
812674
-        "/gfx/angle/checkout/include/",
812674
-        "/third_party/drm/drm/",
812674
-        "/third_party/drm/drm/include/",
812674
-        "/third_party/drm/drm/include/libdrm/",
812674
-        "/third_party/gbm/gbm/",
812674
-        "/third_party/libepoxy/libepoxy/include/",
812674
-        "/third_party/pipewire/"
812674
-    ]
812674
-
812674
-    SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc"
812674
-    ]
812674
-
812674
-    UNIFIED_SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/mouse_cursor_monitor_pipewire.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/restore_token_manager.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
812674
-    ]
812674
-
812674
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
812674
-
812674
-    CXXFLAGS += [
812674
-        "-msse2"
812674
-    ]
812674
-
812674
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
-    DEFINES["_GNU_SOURCE"] = True
812674
-
812674
-    LOCAL_INCLUDES += [
812674
-        "/gfx/angle/checkout/include/",
812674
-        "/third_party/drm/drm/",
812674
-        "/third_party/drm/drm/include/",
812674
-        "/third_party/drm/drm/include/libdrm/",
812674
-        "/third_party/gbm/gbm/",
812674
-        "/third_party/libepoxy/libepoxy/include/",
812674
-        "/third_party/pipewire/"
812674
-    ]
812674
-
812674
-    SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc"
812674
-    ]
812674
-
812674
-    UNIFIED_SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/mouse_cursor_monitor_pipewire.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/restore_token_manager.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
812674
-    ]
812674
-
812674
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
812674
-
812674
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
-    DEFINES["_GNU_SOURCE"] = True
812674
-
812674
-    LOCAL_INCLUDES += [
812674
-        "/gfx/angle/checkout/include/",
812674
-        "/third_party/drm/drm/",
812674
-        "/third_party/drm/drm/include/",
812674
-        "/third_party/drm/drm/include/libdrm/",
812674
-        "/third_party/gbm/gbm/",
812674
-        "/third_party/libepoxy/libepoxy/include/",
812674
-        "/third_party/pipewire/"
812674
-    ]
812674
-
812674
-    SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc"
812674
-    ]
812674
-
812674
-    UNIFIED_SOURCES += [
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/mouse_cursor_monitor_pipewire.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/restore_token_manager.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc",
812674
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
812674
-    ]
812674
-
812674
 if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
812674
 
812674
     DEFINES["USE_X11"] = "1"
812674
diff --git a/third_party/libwebrtc/modules/portal/portal_gn/moz.build b/third_party/libwebrtc/modules/portal/portal_gn/moz.build
812674
index 77603c780b..e6f2c9e724 100644
812674
--- a/third_party/libwebrtc/modules/portal/portal_gn/moz.build
812674
+++ b/third_party/libwebrtc/modules/portal/portal_gn/moz.build
812674
@@ -26,7 +26,7 @@ DEFINES["WEBRTC_MOZILLA_BUILD"] = True
812674
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
812674
 DEFINES["WEBRTC_POSIX"] = True
812674
 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0"
812674
-DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
+DEFINES["WEBRTC_USE_PIPEWIRE"] = False
812674
 DEFINES["_FILE_OFFSET_BITS"] = "64"
812674
 DEFINES["_GNU_SOURCE"] = True
812674
 DEFINES["_LARGEFILE64_SOURCE"] = True
812674
diff --git a/third_party/libwebrtc/third_party/pipewire/pipewire_gn/moz.build b/third_party/libwebrtc/third_party/pipewire/pipewire_gn/moz.build
812674
index 86a0daf8fa..e895f2eb15 100644
812674
--- a/third_party/libwebrtc/third_party/pipewire/pipewire_gn/moz.build
812674
+++ b/third_party/libwebrtc/third_party/pipewire/pipewire_gn/moz.build
812674
@@ -24,7 +24,7 @@ DEFINES["WEBRTC_MOZILLA_BUILD"] = True
812674
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
812674
 DEFINES["WEBRTC_POSIX"] = True
812674
 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0"
812674
-DEFINES["WEBRTC_USE_PIPEWIRE"] = True
812674
+DEFINES["WEBRTC_USE_PIPEWIRE"] = False
812674
 DEFINES["_FILE_OFFSET_BITS"] = "64"
812674
 DEFINES["_GNU_SOURCE"] = True
812674
 DEFINES["_LARGEFILE64_SOURCE"] = True