forked from pool/MozillaFirefox
13e2ddea0f
* Fixed an issue which could cause installed search engines to not be visible when upgrading from a previous release. - enable MOZ_USE_XINPUT2 for TW (boo#1173320) * Protections Dashboard (about:protections) * WebRTC not interrupted by screensaver anymore * disabled TLS 1.0 and 1.1 by default MFSA 2020-24 (bsc#1173576) * CVE-2020-12415 (bmo#1586630) AppCache manifest poisoning due to url encoded character processing * CVE-2020-12416 (bmo#1639734) Use-after-free in WebRTC VideoBroadcaster * CVE-2020-12417 (bmo#1640737) Memory corruption due to missing sign-extension for ValueTags on ARM64 * CVE-2020-12418 (bmo#1641303) Information disclosure due to manipulated URL object * CVE-2020-12419 (bmo#1643874) Use-after-free in nsGlobalWindowInner * CVE-2020-12420 (bmo#1643437) Use-After-Free when trying to connect to a STUN server * CVE-2020-12402 (bmo#1631597) RSA Key Generation vulnerable to side-channel attack * CVE-2020-12421 (bmo#1308251) Add-On updates did not respect the same certificate trust rules as software updates * CVE-2020-12422 (bmo#1450353) Integer overflow in nsJPEGEncoder::emptyOutputBuffer * CVE-2020-12423 (bmo#1642400) DLL Hijacking due to searching %PATH% for a library OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=835
132 lines
3.9 KiB
Bash
132 lines
3.9 KiB
Bash
#!/bin/sh
|
|
#
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
#
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
# http://www.mozilla.org/MPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
# for the specific language governing rights and limitations under the
|
|
# License.
|
|
#
|
|
# The Original Code is mozilla.org Code.
|
|
#
|
|
# The Initial Developer of the Original Code is
|
|
# Netscape Communications Corporation.
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
# the Initial Developer. All Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Wolfgang Rosenauer <wolfgang.rosenauer@suse.de>
|
|
# <wr@rosenauer.org>
|
|
#
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
# the provisions above, a recipient may use your version of this file under
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
#
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
##
|
|
## Usage:
|
|
##
|
|
## $ mozilla [args]
|
|
##
|
|
## This script is meant to run a mozilla program from the mozilla
|
|
## rpm installation.
|
|
##
|
|
## The script will setup all the environment voodoo needed to make
|
|
## mozilla work.
|
|
|
|
cmdname=`basename $0`
|
|
|
|
##
|
|
## Variables
|
|
##
|
|
MOZ_DIST_BIN="%PREFIX"
|
|
MOZ_DIST_LIB="%PROGDIR"
|
|
MOZ_APPNAME="%APPNAME"
|
|
MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME"
|
|
|
|
MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh"
|
|
if [ "$0" = "$MOZ_APP_LAUNCHER" ]; then
|
|
[ -h "/usr/bin/$MOZ_APPNAME" ] && \
|
|
_link=$(readlink -f "/usr/bin/$MOZ_APPNAME")
|
|
if [ "$_link" = "$MOZ_APP_LAUNCHER" ]; then
|
|
export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME"
|
|
fi
|
|
else
|
|
export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME"
|
|
fi
|
|
|
|
MOZILLA_FIVE_HOME="$MOZ_DIST_LIB"
|
|
export MOZILLA_FIVE_HOME
|
|
LD_LIBRARY_PATH=$MOZ_DIST_LIB${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
|
export LD_LIBRARY_PATH
|
|
|
|
# needed for SUN Java under Xorg >= 7.2
|
|
export LIBXCB_ALLOW_SLOPPY_LOCK=1
|
|
|
|
# disable Gnome crash dialog (doesn't make sense anyway)
|
|
export GNOME_DISABLE_CRASH_DIALOG=1
|
|
|
|
# Wayland
|
|
# $XDG_SESSION_TYPE should contain either x11 or wayland
|
|
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
fi
|
|
|
|
# xinput2 (boo#1173320)
|
|
source /etc/os-release
|
|
if [ "$ID" = "opensuse-tumbleweed" ]; then
|
|
export MOZ_USE_XINPUT2=1
|
|
fi
|
|
|
|
moz_debug=0
|
|
script_args=""
|
|
pass_arg_count=0
|
|
while [ $# -gt $pass_arg_count ]
|
|
do
|
|
case "$1" in
|
|
-d | --debugger)
|
|
moz_debugger=$2;
|
|
if [ "${moz_debugger}" != "" ]; then
|
|
shift 2
|
|
moz_debug=1
|
|
else
|
|
echo "-d requires an argument"
|
|
exit 1
|
|
fi
|
|
;;
|
|
*)
|
|
# Move the unrecognized argument to the end of the list.
|
|
arg="$1"
|
|
shift
|
|
set -- "$@" "$arg"
|
|
pass_arg_count=`expr $pass_arg_count + 1`
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [ $moz_debug -eq 1 ]; then
|
|
tmpfile=`mktemp /tmp/mozargs.XXXXXX` || { echo "Cannot create temporary file" >&2; exit 1; }
|
|
trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
|
|
echo "set args ${1+"$@"}" > $tmpfile
|
|
echo "run" >> $tmpfile
|
|
echo "$moz_debugger $MOZ_PROGRAM -x $tmpfile"
|
|
exec $moz_debugger "$MOZ_PROGRAM" -x $tmpfile
|
|
else
|
|
exec $MOZ_PROGRAM "$@"
|
|
fi
|