fix alsa firefox58
authorWolfgang Rosenauer <wr@rosenauer.org>
Wed, 07 Feb 2018 19:42:16 +0100
branchfirefox58
changeset 1029 725d6acf23b5
parent 1028 4ce2b699562f
child 1030 cd02d400c081
fix alsa
MozillaFirefox/MozillaFirefox.changes
MozillaFirefox/MozillaFirefox.spec
MozillaFirefox/mozilla-alsa-sandbox.patch
mozilla-alsa-sandbox.patch
series
--- a/MozillaFirefox/MozillaFirefox.changes	Wed Feb 07 19:40:32 2018 +0100
+++ b/MozillaFirefox/MozillaFirefox.changes	Wed Feb 07 19:42:16 2018 +0100
@@ -1,10 +1,17 @@
 -------------------------------------------------------------------
+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
 
 - update to Firefox 58.0.1
   MFSA 2018-05
   *  Arbitrary code execution through unsanitized browser UI (bmo#1432966)
-- fixed language packs (boo#1077590)
+- use correct language packs
 - readd mozilla-enable-csd.patch as it only lands for FF59 upstream
 - allow larger number of nested elements (mozilla-bmo256180.patch)
 
--- a/MozillaFirefox/MozillaFirefox.spec	Wed Feb 07 19:40:32 2018 +0100
+++ b/MozillaFirefox/MozillaFirefox.spec	Wed Feb 07 19:42:16 2018 +0100
@@ -155,6 +155,7 @@
 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 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 # Firefox
 %patch101 -p1
 %patch102 -p1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/mozilla-alsa-sandbox.patch	Wed Feb 07 19:42:16 2018 +0100
@@ -0,0 +1,1 @@
+../mozilla-alsa-sandbox.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mozilla-alsa-sandbox.patch	Wed Feb 07 19:42:16 2018 +0100
@@ -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.
--- a/series	Wed Feb 07 19:40:32 2018 +0100
+++ b/series	Wed Feb 07 19:42:16 2018 +0100
@@ -9,6 +9,7 @@
 mozilla-aarch64-startup-crash.patch
 mozilla-enable-csd.patch
 mozilla-bmo256180.patch
+mozilla-alsa-sandbox.patch
 
 # Firefox patches
 firefox-kde.patch