From 0b6de140a7da0fc7c2c626914c138b0b5d6b19a3bb24d0a79258eabb11dc39e8 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Tue, 6 Feb 2018 11:31:29 +0000 Subject: [PATCH] Accepting request 573267 from home:fstrba:branches:mozilla:Factory Fix bmo#1430274, ALSA sound not working in Firefox 58 due to sandboxing OBS-URL: https://build.opensuse.org/request/show/573267 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=632 --- MozillaFirefox.changes | 7 +++++++ MozillaFirefox.spec | 2 ++ mozilla-alsa-sandbox.patch | 12 ++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 mozilla-alsa-sandbox.patch diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 0a28f77..c2c5ef7 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 6 07:03:42 UTC 2018 - fstrba@suse.com + +- Added patch: + * mozilla-alsa-sandbox.patch: Fix bmo#1430274, ALSA sound (still + or again?) not working in Firefox 58 due to sandboxing. + ------------------------------------------------------------------- Mon Jan 29 22:32:21 UTC 2018 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 7572e48..89a5735 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -155,6 +155,7 @@ Patch6: mozilla-reduce-files-per-UnifiedBindings.patch Patch7: mozilla-aarch64-startup-crash.patch Patch8: mozilla-enable-csd.patch Patch9: mozilla-bmo256180.patch +Patch10: mozilla-alsa-sandbox.patch # Firefox/browser Patch101: firefox-kde.patch Patch102: firefox-no-default-ualocale.patch @@ -267,6 +268,7 @@ cd $RPM_BUILD_DIR/mozilla %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 # Firefox %patch101 -p1 %patch102 -p1 diff --git a/mozilla-alsa-sandbox.patch b/mozilla-alsa-sandbox.patch new file mode 100644 index 0000000..70b6a3a --- /dev/null +++ b/mozilla-alsa-sandbox.patch @@ -0,0 +1,12 @@ +--- mozilla/security/sandbox/linux/moz.build 2018-02-06 07:58:27.127145777 +0100 ++++ mozilla/security/sandbox/linux/moz.build 2018-02-06 08:01:22.213706297 +0100 +@@ -77,6 +77,9 @@ + 'SandboxOpenedFiles.cpp', + ] + ++if CONFIG['MOZ_ALSA']: ++ DEFINES['MOZ_ALSA'] = True ++ + # This copy of SafeSPrintf doesn't need to avoid the Chromium logging + # dependency like the one in libxul does, but this way the behavior is + # consistent. See also the comment in SandboxLogging.h.