refactor app directory structure and add tests
This commit is contained in:
BIN
tests/firefox/Throbber-small.gif
Normal file
BIN
tests/firefox/Throbber-small.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 825 B |
23
tests/firefox/application.ini
Normal file
23
tests/firefox/application.ini
Normal file
@@ -0,0 +1,23 @@
|
||||
; This file is not used. If you modify it and want the application to use
|
||||
; your modifications, move it under the browser/ subdirectory and start with
|
||||
; the "-app /path/to/browser/application.ini" argument.
|
||||
[App]
|
||||
Vendor=Mozilla
|
||||
Name=Firefox
|
||||
RemotingName=firefox
|
||||
Version=45.4.0
|
||||
BuildID=20160905130425
|
||||
SourceRepository=https://hg.mozilla.org/releases/mozilla-esr45
|
||||
SourceStamp=1dc77ae31dc3ed2de5d156c2c1867098ccdebe9d
|
||||
ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
||||
|
||||
[Gecko]
|
||||
MinVersion=45.4.0
|
||||
MaxVersion=45.4.0
|
||||
|
||||
[XRE]
|
||||
EnableProfileMigrator=1
|
||||
|
||||
[Crash Reporter]
|
||||
Enabled=1
|
||||
ServerURL=https://crash-reports.mozilla.com/submit?id={ec8030f7-c20a-464f-9b0e-13a3a9e97384}&version=45.4.0&buildid=20160905130425
|
4167
tests/firefox/browser/blocklist.xml
Normal file
4167
tests/firefox/browser/blocklist.xml
Normal file
File diff suppressed because it is too large
Load Diff
1
tests/firefox/browser/chrome.manifest
Normal file
1
tests/firefox/browser/chrome.manifest
Normal file
@@ -0,0 +1 @@
|
||||
manifest components/components.manifest
|
BIN
tests/firefox/browser/chrome/icons/default/default16.png
Normal file
BIN
tests/firefox/browser/chrome/icons/default/default16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 829 B |
BIN
tests/firefox/browser/chrome/icons/default/default32.png
Normal file
BIN
tests/firefox/browser/chrome/icons/default/default32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
tests/firefox/browser/chrome/icons/default/default48.png
Normal file
BIN
tests/firefox/browser/chrome/icons/default/default48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
1
tests/firefox/browser/components/components.manifest
Normal file
1
tests/firefox/browser/components/components.manifest
Normal file
@@ -0,0 +1 @@
|
||||
binary-component libbrowsercomps.so
|
BIN
tests/firefox/browser/components/libbrowsercomps.so
Executable file
BIN
tests/firefox/browser/components/libbrowsercomps.so
Executable file
Binary file not shown.
8
tests/firefox/browser/crashreporter-override.ini
Normal file
8
tests/firefox/browser/crashreporter-override.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
; This file is in the UTF-8 encoding
|
||||
[Strings]
|
||||
; LOCALIZATION NOTE (CrashReporterProductErrorText2): The %s is replaced with a string containing detailed information.
|
||||
CrashReporterProductErrorText2=Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts.\n\nUnfortunately the crash reporter is unable to submit a crash report.\n\nDetails: %s
|
||||
CrashReporterDescriptionText2=Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts.\n\nTo help us diagnose and fix the problem, you can send us a crash report.
|
Binary file not shown.
BIN
tests/firefox/browser/features/loop@mozilla.org.xpi
Normal file
BIN
tests/firefox/browser/features/loop@mozilla.org.xpi
Normal file
Binary file not shown.
BIN
tests/firefox/browser/icons/mozicon128.png
Normal file
BIN
tests/firefox/browser/icons/mozicon128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
tests/firefox/browser/omni.ja
Normal file
BIN
tests/firefox/browser/omni.ja
Normal file
Binary file not shown.
BIN
tests/firefox/crashreporter
Executable file
BIN
tests/firefox/crashreporter
Executable file
Binary file not shown.
57
tests/firefox/crashreporter.ini
Normal file
57
tests/firefox/crashreporter.ini
Normal file
@@ -0,0 +1,57 @@
|
||||
; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
; This file is in the UTF-8 encoding
|
||||
[Strings]
|
||||
; LOCALIZATION NOTE (isRTL):
|
||||
; Leave this entry empty unless your language requires right-to-left layout,
|
||||
; for example like Arabic, Hebrew, Persian. If your language needs RTL, please
|
||||
; use the untranslated English word "yes" as value
|
||||
isRTL=
|
||||
CrashReporterTitle=Crash Reporter
|
||||
; LOCALIZATION NOTE (CrashReporterVendorTitle): %s is replaced with the vendor name. (i.e. "Mozilla")
|
||||
CrashReporterVendorTitle=%s Crash Reporter
|
||||
; LOCALIZATION NOTE (CrashReporterErrorText): %s is replaced with another string containing detailed information.
|
||||
CrashReporterErrorText=The application had a problem and crashed.\n\nUnfortunately, the crash reporter is unable to submit a report for this crash.\n\nDetails: %s
|
||||
; LOCALIZATION NOTE (CrashReporterProductErrorText2): The first %s is replaced with the product name (i.e. "Firefox"), the second is replaced with another string containing detailed information. These two substitutions can not be reordered!
|
||||
CrashReporterProductErrorText2=%s had a problem and crashed.\n\nUnfortunately, the crash reporter is unable to submit a crash report.\n\nDetails: %s
|
||||
CrashReporterSorry=We're Sorry
|
||||
; LOCALIZATION NOTE (CrashReporterDescriptionText2): The %s is replaced with the product name.
|
||||
CrashReporterDescriptionText2=%s had a problem and crashed.\n\nTo help us diagnose and fix the problem, you can send us a crash report.
|
||||
CrashReporterDefault=This application is run after a crash to report the problem to the application vendor. It should not be run directly.
|
||||
Details=Details…
|
||||
ViewReportTitle=Report Contents
|
||||
CommentGrayText=Add a comment (comments are publicly visible)
|
||||
ExtraReportInfo=This report also contains technical information about the state of the application when it crashed.
|
||||
; LOCALIZATION NOTE (CheckSendReport): The %s is replaced with the vendor name.
|
||||
CheckSendReport=Tell %s about this crash so they can fix it
|
||||
CheckIncludeURL=Include the address of the page I was on
|
||||
CheckAllowEmail=Allow %s to contact me about this report
|
||||
EmailGrayText=Enter your email address here
|
||||
ReportPreSubmit2=Your crash report will be submitted before you quit or restart.
|
||||
ReportDuringSubmit2=Submitting your report…
|
||||
ReportSubmitSuccess=Report submitted successfully!
|
||||
ReportSubmitFailed=There was a problem submitting your report.
|
||||
ReportResubmit=Resending reports that previously failed to send…
|
||||
; LOCALIZATION NOTE (Quit2): The %s is replaced with the product name.
|
||||
Quit2=Quit %s
|
||||
; LOCALIZATION NOTE (Restart): The %s is replaced with the product name.
|
||||
Restart=Restart %s
|
||||
Ok=OK
|
||||
Close=Close
|
||||
; LOCALIZATION NOTE (CrashID): The %s is replaced with the Crash ID from the server, which is a string like abc12345-6789-0abc-def1-23456abcdef1
|
||||
CrashID=Crash ID: %s
|
||||
; LOCALIZATION NOTE (CrashDetailsURL): The %s is replaced with a URL that the user can visit to view the crash details.
|
||||
CrashDetailsURL=You can view details of this crash at %s
|
||||
ErrorBadArguments=The application passed an invalid argument.
|
||||
ErrorExtraFileExists=The application didn't leave an application data file.
|
||||
ErrorExtraFileRead=Couldn't read the application data file.
|
||||
ErrorExtraFileMove=Couldn't move application data file.
|
||||
ErrorDumpFileExists=The application did not leave a crash dump file.
|
||||
ErrorDumpFileMove=Couldn't move crash dump.
|
||||
ErrorNoProductName=The application did not identify itself.
|
||||
ErrorNoServerURL=The application did not specify a crash reporting server.
|
||||
ErrorNoSettingsPath=Couldn't find the crash reporter's settings.
|
||||
ErrorCreateDumpDir=Couldn't create pending dump directory.
|
||||
; LOCALIZATION NOTE (ErrorEndOfLife): The %s is replaced with the product name.
|
||||
ErrorEndOfLife=The version of %s you are using is no longer supported. Crash reports are no longer being accepted for this version. Please consider upgrading to a supported version.
|
5
tests/firefox/defaults/pref/channel-prefs.js
Normal file
5
tests/firefox/defaults/pref/channel-prefs.js
Normal file
@@ -0,0 +1,5 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
pref("app.update.channel", "esr");
|
10
tests/firefox/dependentlibs.list
Normal file
10
tests/firefox/dependentlibs.list
Normal file
@@ -0,0 +1,10 @@
|
||||
libnspr4.so
|
||||
libplc4.so
|
||||
libplds4.so
|
||||
libnssutil3.so
|
||||
libnss3.so
|
||||
libsmime3.so
|
||||
libssl3.so
|
||||
libmozsqlite3.so
|
||||
liblgpllibs.so
|
||||
libxul.so
|
BIN
tests/firefox/firefox
Executable file
BIN
tests/firefox/firefox
Executable file
Binary file not shown.
BIN
tests/firefox/firefox-bin
Executable file
BIN
tests/firefox/firefox-bin
Executable file
Binary file not shown.
5
tests/firefox/gmp-clearkey/0.1/clearkey.info
Normal file
5
tests/firefox/gmp-clearkey/0.1/clearkey.info
Normal file
@@ -0,0 +1,5 @@
|
||||
Name: clearkey
|
||||
Description: ClearKey Gecko Media Plugin
|
||||
Version: 1
|
||||
APIs: eme-decrypt-v8[org.w3.clearkey]
|
||||
Libraries:
|
BIN
tests/firefox/gmp-clearkey/0.1/libclearkey.so
Executable file
BIN
tests/firefox/gmp-clearkey/0.1/libclearkey.so
Executable file
Binary file not shown.
BIN
tests/firefox/icons/updater.png
Normal file
BIN
tests/firefox/icons/updater.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
tests/firefox/libfreebl3.chk
Normal file
BIN
tests/firefox/libfreebl3.chk
Normal file
Binary file not shown.
BIN
tests/firefox/libfreebl3.so
Executable file
BIN
tests/firefox/libfreebl3.so
Executable file
Binary file not shown.
BIN
tests/firefox/liblgpllibs.so
Executable file
BIN
tests/firefox/liblgpllibs.so
Executable file
Binary file not shown.
BIN
tests/firefox/libmozsqlite3.so
Executable file
BIN
tests/firefox/libmozsqlite3.so
Executable file
Binary file not shown.
BIN
tests/firefox/libnspr4.so
Executable file
BIN
tests/firefox/libnspr4.so
Executable file
Binary file not shown.
BIN
tests/firefox/libnss3.so
Executable file
BIN
tests/firefox/libnss3.so
Executable file
Binary file not shown.
BIN
tests/firefox/libnssckbi.so
Executable file
BIN
tests/firefox/libnssckbi.so
Executable file
Binary file not shown.
BIN
tests/firefox/libnssdbm3.chk
Normal file
BIN
tests/firefox/libnssdbm3.chk
Normal file
Binary file not shown.
BIN
tests/firefox/libnssdbm3.so
Executable file
BIN
tests/firefox/libnssdbm3.so
Executable file
Binary file not shown.
BIN
tests/firefox/libnssutil3.so
Executable file
BIN
tests/firefox/libnssutil3.so
Executable file
Binary file not shown.
BIN
tests/firefox/libplc4.so
Executable file
BIN
tests/firefox/libplc4.so
Executable file
Binary file not shown.
BIN
tests/firefox/libplds4.so
Executable file
BIN
tests/firefox/libplds4.so
Executable file
Binary file not shown.
BIN
tests/firefox/libsmime3.so
Executable file
BIN
tests/firefox/libsmime3.so
Executable file
Binary file not shown.
BIN
tests/firefox/libsoftokn3.chk
Normal file
BIN
tests/firefox/libsoftokn3.chk
Normal file
Binary file not shown.
BIN
tests/firefox/libsoftokn3.so
Executable file
BIN
tests/firefox/libsoftokn3.so
Executable file
Binary file not shown.
BIN
tests/firefox/libssl3.so
Executable file
BIN
tests/firefox/libssl3.so
Executable file
Binary file not shown.
BIN
tests/firefox/libxul.so
Executable file
BIN
tests/firefox/libxul.so
Executable file
Binary file not shown.
BIN
tests/firefox/omni.ja
Normal file
BIN
tests/firefox/omni.ja
Normal file
Binary file not shown.
5
tests/firefox/platform.ini
Normal file
5
tests/firefox/platform.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
[Build]
|
||||
BuildID=20160905130425
|
||||
Milestone=45.4.0
|
||||
SourceStamp=1dc77ae31dc3ed2de5d156c2c1867098ccdebe9d
|
||||
SourceRepository=https://hg.mozilla.org/releases/mozilla-esr45
|
BIN
tests/firefox/plugin-container
Executable file
BIN
tests/firefox/plugin-container
Executable file
Binary file not shown.
64
tests/firefox/precomplete
Normal file
64
tests/firefox/precomplete
Normal file
@@ -0,0 +1,64 @@
|
||||
remove "webapprt/webapprt.ini"
|
||||
remove "webapprt/omni.ja"
|
||||
remove "webapprt-stub"
|
||||
remove "updater.ini"
|
||||
remove "updater"
|
||||
remove "run-mozilla.sh"
|
||||
remove "removed-files"
|
||||
remove "precomplete"
|
||||
remove "plugin-container"
|
||||
remove "platform.ini"
|
||||
remove "omni.ja"
|
||||
remove "libxul.so"
|
||||
remove "libssl3.so"
|
||||
remove "libsoftokn3.so"
|
||||
remove "libsoftokn3.chk"
|
||||
remove "libsmime3.so"
|
||||
remove "libplds4.so"
|
||||
remove "libplc4.so"
|
||||
remove "libnssutil3.so"
|
||||
remove "libnssdbm3.so"
|
||||
remove "libnssdbm3.chk"
|
||||
remove "libnssckbi.so"
|
||||
remove "libnss3.so"
|
||||
remove "libnspr4.so"
|
||||
remove "libmozsqlite3.so"
|
||||
remove "liblgpllibs.so"
|
||||
remove "libfreebl3.so"
|
||||
remove "libfreebl3.chk"
|
||||
remove "icons/updater.png"
|
||||
remove "gmp-clearkey/0.1/libclearkey.so"
|
||||
remove "gmp-clearkey/0.1/clearkey.info"
|
||||
remove "firefox-bin"
|
||||
remove "firefox"
|
||||
remove "dependentlibs.list"
|
||||
remove "crashreporter.ini"
|
||||
remove "crashreporter"
|
||||
remove "browser/omni.ja"
|
||||
remove "browser/icons/mozicon128.png"
|
||||
remove "browser/features/loop@mozilla.org.xpi"
|
||||
remove "browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi"
|
||||
remove "browser/crashreporter-override.ini"
|
||||
remove "browser/components/libbrowsercomps.so"
|
||||
remove "browser/components/components.manifest"
|
||||
remove "browser/chrome/icons/default/default48.png"
|
||||
remove "browser/chrome/icons/default/default32.png"
|
||||
remove "browser/chrome/icons/default/default16.png"
|
||||
remove "browser/chrome.manifest"
|
||||
remove "browser/blocklist.xml"
|
||||
remove "application.ini"
|
||||
remove "Throbber-small.gif"
|
||||
rmdir "webapprt/"
|
||||
rmdir "icons/"
|
||||
rmdir "gmp-clearkey/0.1/"
|
||||
rmdir "gmp-clearkey/"
|
||||
rmdir "defaults/pref/"
|
||||
rmdir "defaults/"
|
||||
rmdir "browser/icons/"
|
||||
rmdir "browser/features/"
|
||||
rmdir "browser/extensions/"
|
||||
rmdir "browser/components/"
|
||||
rmdir "browser/chrome/icons/default/"
|
||||
rmdir "browser/chrome/icons/"
|
||||
rmdir "browser/chrome/"
|
||||
rmdir "browser/"
|
28
tests/firefox/removed-files
Normal file
28
tests/firefox/removed-files
Normal file
@@ -0,0 +1,28 @@
|
||||
distribution/extensions/testpilot@labs.mozilla.com.xpi
|
||||
chrome/
|
||||
#ifndef XP_MACOSX
|
||||
chrome/icons/
|
||||
chrome/icons/default/
|
||||
#endif
|
||||
chrome/overlayinfo/
|
||||
components/
|
||||
defaults/autoconfig/
|
||||
defaults/profile/
|
||||
defaults/profile/chrome/
|
||||
defaults/profile/US/*
|
||||
defaults/profile/extensions/
|
||||
defaults/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/*
|
||||
distribution/
|
||||
distribution/extensions/
|
||||
extensions/
|
||||
extensions/inspector@mozilla.org/*
|
||||
extensions/reporter@mozilla.org/*
|
||||
extensions/talkback@mozilla.org/*
|
||||
extensions/testpilot@labs.mozilla.com/*
|
||||
extensions/{641d8d09-7dda-4850-8228-ac0ab65e2ac9}/*
|
||||
extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/*
|
||||
greprefs/
|
||||
jssubloader/
|
||||
modules/
|
||||
searchplugins/*
|
||||
webapprt/components/
|
362
tests/firefox/run-mozilla.sh
Executable file
362
tests/firefox/run-mozilla.sh
Executable file
@@ -0,0 +1,362 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
cmdname=`basename "$0"`
|
||||
MOZ_DIST_BIN=`dirname "$0"`
|
||||
MOZ_DEFAULT_NAME="./${cmdname}-bin"
|
||||
MOZ_APPRUNNER_NAME="./mozilla-bin"
|
||||
MOZ_PROGRAM=""
|
||||
|
||||
exitcode=1
|
||||
#
|
||||
##
|
||||
## Functions
|
||||
##
|
||||
##########################################################################
|
||||
moz_usage()
|
||||
{
|
||||
echo "Usage: ${cmdname} [options] [program]"
|
||||
echo ""
|
||||
echo " options:"
|
||||
echo ""
|
||||
echo " -g Run in debugger."
|
||||
echo " --debug"
|
||||
echo ""
|
||||
echo " -d debugger Debugger to use."
|
||||
echo " --debugger debugger"
|
||||
echo ""
|
||||
echo " -a debugger_args Arguments passed to [debugger]."
|
||||
echo " --debugger-args debugger_args"
|
||||
echo ""
|
||||
echo " Examples:"
|
||||
echo ""
|
||||
echo " Run the mozilla-bin binary"
|
||||
echo ""
|
||||
echo " ${cmdname} mozilla-bin"
|
||||
echo ""
|
||||
echo " Debug the mozilla-bin binary in gdb"
|
||||
echo ""
|
||||
echo " ${cmdname} -g mozilla-bin -d gdb"
|
||||
echo ""
|
||||
echo " Run mozilla-bin under valgrind with arguments"
|
||||
echo ""
|
||||
echo " ${cmdname} -g -d valgrind -a '--tool=memcheck --leak-check=full' mozilla-bin"
|
||||
echo ""
|
||||
return 0
|
||||
}
|
||||
##########################################################################
|
||||
moz_bail()
|
||||
{
|
||||
message=$1
|
||||
echo
|
||||
echo "$cmdname: $message"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
##########################################################################
|
||||
moz_test_binary()
|
||||
{
|
||||
binary=$1
|
||||
if [ -f "$binary" ]
|
||||
then
|
||||
if [ -x "$binary" ]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
##########################################################################
|
||||
moz_get_debugger()
|
||||
{
|
||||
debuggers="ddd gdb dbx bdb native-gdb"
|
||||
debugger="notfound"
|
||||
done="no"
|
||||
for d in $debuggers
|
||||
do
|
||||
moz_test_binary /bin/which
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
dpath=`which ${d}`
|
||||
else
|
||||
dpath=`LC_MESSAGES=C type ${d} | awk '{print $3;}' | sed -e 's/\.$//'`
|
||||
fi
|
||||
if [ -x "$dpath" ]
|
||||
then
|
||||
debugger=$dpath
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo $debugger
|
||||
return 0
|
||||
}
|
||||
##########################################################################
|
||||
moz_run_program()
|
||||
{
|
||||
prog=$MOZ_PROGRAM
|
||||
##
|
||||
## Make sure the program is executable
|
||||
##
|
||||
if [ ! -x "$prog" ]
|
||||
then
|
||||
moz_bail "Cannot execute $prog."
|
||||
fi
|
||||
##
|
||||
## Run the program
|
||||
##
|
||||
exec "$prog" ${1+"$@"}
|
||||
exitcode=$?
|
||||
}
|
||||
##########################################################################
|
||||
moz_debug_program()
|
||||
{
|
||||
prog=$MOZ_PROGRAM
|
||||
##
|
||||
## Make sure the program is executable
|
||||
##
|
||||
if [ ! -x "$prog" ]
|
||||
then
|
||||
moz_bail "Cannot execute $prog."
|
||||
fi
|
||||
if [ -n "$moz_debugger" ]
|
||||
then
|
||||
moz_test_binary /bin/which
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
debugger=`which $moz_debugger`
|
||||
else
|
||||
debugger=`LC_MESSAGES=C type $moz_debugger | awk '{print $3;}' | sed -e 's/\.$//'`
|
||||
fi
|
||||
else
|
||||
debugger=`moz_get_debugger`
|
||||
fi
|
||||
if [ -x "$debugger" ]
|
||||
then
|
||||
# If you are not using ddd, gdb and know of a way to convey the arguments
|
||||
# over to the prog then add that here- Gagan Saksena 03/15/00
|
||||
case `basename $debugger` in
|
||||
native-gdb) echo "$debugger $moz_debugger_args --args $prog" ${1+"$@"}
|
||||
exec "$debugger" $moz_debugger_args --args "$prog" ${1+"$@"}
|
||||
exitcode=$?
|
||||
;;
|
||||
gdb) echo "$debugger $moz_debugger_args --args $prog" ${1+"$@"}
|
||||
exec "$debugger" $moz_debugger_args --args "$prog" ${1+"$@"}
|
||||
exitcode=$?
|
||||
;;
|
||||
ddd) echo "$debugger $moz_debugger_args --gdb -- --args $prog" ${1+"$@"}
|
||||
exec "$debugger" $moz_debugger_args --gdb -- --args "$prog" ${1+"$@"}
|
||||
exitcode=$?
|
||||
;;
|
||||
*) echo "$debugger $moz_debugger_args $prog ${1+"$@"}"
|
||||
exec $debugger $moz_debugger_args "$prog" ${1+"$@"}
|
||||
exitcode=$?
|
||||
;;
|
||||
esac
|
||||
else
|
||||
moz_bail "Could not find a debugger on your system."
|
||||
fi
|
||||
}
|
||||
##########################################################################
|
||||
##
|
||||
## Command line arg defaults
|
||||
##
|
||||
moz_debug=0
|
||||
moz_debugger=""
|
||||
moz_debugger_args=""
|
||||
#
|
||||
##
|
||||
## Parse the command line
|
||||
##
|
||||
while [ $# -gt 0 ]
|
||||
do
|
||||
case $1 in
|
||||
-g | --debug)
|
||||
moz_debug=1
|
||||
shift
|
||||
;;
|
||||
-d | --debugger)
|
||||
moz_debugger=$2;
|
||||
if [ "${moz_debugger}" != "" ]; then
|
||||
shift 2
|
||||
else
|
||||
echo "-d requires an argument"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
-a | --debugger-args)
|
||||
moz_debugger_args=$2;
|
||||
if [ "${moz_debugger_args}" != "" ]; then
|
||||
shift 2
|
||||
else
|
||||
echo "-a requires an argument"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
break;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
#
|
||||
##
|
||||
## Program name given in $1
|
||||
##
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
MOZ_PROGRAM=$1
|
||||
shift
|
||||
fi
|
||||
##
|
||||
## Program not given, try to guess a default
|
||||
##
|
||||
if [ -z "$MOZ_PROGRAM" ]
|
||||
then
|
||||
##
|
||||
## Try this script's name with '-bin' appended
|
||||
##
|
||||
if [ -x "$MOZ_DEFAULT_NAME" ]
|
||||
then
|
||||
MOZ_PROGRAM=$MOZ_DEFAULT_NAME
|
||||
##
|
||||
## Try mozilla-bin
|
||||
##
|
||||
elif [ -x "$MOZ_APPRUNNER_NAME" ]
|
||||
then
|
||||
MOZ_PROGRAM=$MOZ_APPRUNNER_NAME
|
||||
fi
|
||||
fi
|
||||
#
|
||||
#
|
||||
##
|
||||
## Make sure the program is executable
|
||||
##
|
||||
if [ ! -x "$MOZ_PROGRAM" ]
|
||||
then
|
||||
moz_bail "Cannot execute $MOZ_PROGRAM."
|
||||
fi
|
||||
#
|
||||
##
|
||||
## Set MOZILLA_FIVE_HOME
|
||||
##
|
||||
MOZILLA_FIVE_HOME=$MOZ_DIST_BIN
|
||||
|
||||
if [ -z "$MRE_HOME" ]; then
|
||||
MRE_HOME=$MOZILLA_FIVE_HOME
|
||||
fi
|
||||
##
|
||||
## Set LD_LIBRARY_PATH
|
||||
##
|
||||
## On Solaris we use $ORIGIN (set in RUNPATH) instead of LD_LIBRARY_PATH
|
||||
## to locate shared libraries.
|
||||
##
|
||||
## When a shared library is a symbolic link, $ORIGIN will be replaced with
|
||||
## the real path (i.e., what the symbolic link points to) by the runtime
|
||||
## linker. For example, if dist/bin/libxul.so is a symbolic link to
|
||||
## toolkit/library/libxul.so, $ORIGIN will be "toolkit/library" instead of "dist/bin".
|
||||
## So the runtime linker will use "toolkit/library" NOT "dist/bin" to locate the
|
||||
## other shared libraries that libxul.so depends on. This only happens
|
||||
## when a user (developer) tries to start firefox, thunderbird, or seamonkey
|
||||
## under dist/bin. To solve the problem, we should rely on LD_LIBRARY_PATH
|
||||
## to locate shared libraries.
|
||||
##
|
||||
## Note:
|
||||
## We test $MOZ_DIST_BIN/*.so. If any of them is a symbolic link,
|
||||
## we need to set LD_LIBRARY_PATH.
|
||||
##########################################################################
|
||||
moz_should_set_ld_library_path()
|
||||
{
|
||||
[ `uname -s` != "SunOS" ] && return 0
|
||||
for sharedlib in $MOZ_DIST_BIN/*.so
|
||||
do
|
||||
[ -h $sharedlib ] && return 0
|
||||
done
|
||||
return 1
|
||||
}
|
||||
if moz_should_set_ld_library_path
|
||||
then
|
||||
LD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARY_PATH:+":$LD_LIBRARY_PATH"}
|
||||
fi
|
||||
|
||||
if [ -n "$LD_LIBRARYN32_PATH" ]
|
||||
then
|
||||
LD_LIBRARYN32_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARYN32_PATH:+":$LD_LIBRARYN32_PATH"}
|
||||
fi
|
||||
if [ -n "$LD_LIBRARYN64_PATH" ]
|
||||
then
|
||||
LD_LIBRARYN64_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARYN64_PATH:+":$LD_LIBRARYN64_PATH"}
|
||||
fi
|
||||
if [ -n "$LD_LIBRARY_PATH_64" ]; then
|
||||
LD_LIBRARY_PATH_64=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARY_PATH_64:+":$LD_LIBRARY_PATH_64"}
|
||||
fi
|
||||
#
|
||||
#
|
||||
## Set SHLIB_PATH for HPUX
|
||||
SHLIB_PATH=${MOZ_DIST_BIN}:${MRE_HOME}${SHLIB_PATH:+":$SHLIB_PATH"}
|
||||
#
|
||||
## Set LIBPATH for AIX
|
||||
LIBPATH=${MOZ_DIST_BIN}:${MRE_HOME}${LIBPATH:+":$LIBPATH"}
|
||||
#
|
||||
## Set DYLD_LIBRARY_PATH for Mac OS X (Darwin)
|
||||
DYLD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MRE_HOME}${DYLD_LIBRARY_PATH:+":$DYLD_LIBRARY_PATH"}
|
||||
#
|
||||
## Solaris Xserver(Xsun) tuning - use shared memory transport if available
|
||||
if [ "$XSUNTRANSPORT" = "" ]
|
||||
then
|
||||
XSUNTRANSPORT="shmem"
|
||||
XSUNSMESIZE="512"
|
||||
export XSUNTRANSPORT XSUNSMESIZE
|
||||
fi
|
||||
|
||||
# Disable Gnome crash dialog
|
||||
GNOME_DISABLE_CRASH_DIALOG=1
|
||||
export GNOME_DISABLE_CRASH_DIALOG
|
||||
|
||||
if [ "$moz_debug" -eq 1 ]
|
||||
then
|
||||
echo "MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME"
|
||||
echo " LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
|
||||
if [ -n "$LD_LIBRARYN32_PATH" ]
|
||||
then
|
||||
echo "LD_LIBRARYN32_PATH=$LD_LIBRARYN32_PATH"
|
||||
fi
|
||||
if [ -n "$LD_LIBRARYN64_PATH" ]
|
||||
then
|
||||
echo "LD_LIBRARYN64_PATH=$LD_LIBRARYN64_PATH"
|
||||
fi
|
||||
if [ -n "$LD_LIBRARY_PATH_64" ]; then
|
||||
echo "LD_LIBRARY_PATH_64=$LD_LIBRARY_PATH_64"
|
||||
fi
|
||||
if [ -n "$DISPLAY" ]; then
|
||||
echo "DISPLAY=$DISPLAY"
|
||||
fi
|
||||
if [ -n "$FONTCONFIG_PATH" ]; then
|
||||
echo "FONTCONFIG_PATH=$FONTCONFIG_PATH"
|
||||
fi
|
||||
if [ -n "$MOZILLA_POSTSCRIPT_PRINTER_LIST" ]; then
|
||||
echo "MOZILLA_POSTSCRIPT_PRINTER_LIST=$MOZILLA_POSTSCRIPT_PRINTER_LIST"
|
||||
fi
|
||||
echo "DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH"
|
||||
echo " LIBRARY_PATH=$LIBRARY_PATH"
|
||||
echo " SHLIB_PATH=$SHLIB_PATH"
|
||||
echo " LIBPATH=$LIBPATH"
|
||||
echo " ADDON_PATH=$ADDON_PATH"
|
||||
echo " MOZ_PROGRAM=$MOZ_PROGRAM"
|
||||
echo " MOZ_TOOLKIT=$MOZ_TOOLKIT"
|
||||
echo " moz_debug=$moz_debug"
|
||||
echo " moz_debugger=$moz_debugger"
|
||||
echo "moz_debugger_args=$moz_debugger_args"
|
||||
fi
|
||||
#
|
||||
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
|
||||
export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH DYLD_LIBRARY_PATH
|
||||
|
||||
if [ $moz_debug -eq 1 ]
|
||||
then
|
||||
moz_debug_program ${1+"$@"}
|
||||
else
|
||||
moz_run_program ${1+"$@"}
|
||||
fi
|
||||
|
||||
exit $exitcode
|
5
tests/firefox/update-settings.ini
Normal file
5
tests/firefox/update-settings.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
; If you modify this file updates may fail.
|
||||
; Do not modify this file.
|
||||
|
||||
[Settings]
|
||||
ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-esr
|
BIN
tests/firefox/updater
Executable file
BIN
tests/firefox/updater
Executable file
Binary file not shown.
9
tests/firefox/updater.ini
Normal file
9
tests/firefox/updater.ini
Normal file
@@ -0,0 +1,9 @@
|
||||
; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
; This file is in the UTF-8 encoding
|
||||
; All strings must be less than 600 chars.
|
||||
[Strings]
|
||||
Title=Firefox Update
|
||||
Info=Firefox is installing your updates and will start in a few moments…
|
||||
MozillaMaintenanceDescription=The Mozilla Maintenance Service ensures that you have the latest and most secure version of Mozilla Firefox on your computer. Keeping Firefox up to date is very important for your online security, and Mozilla strongly recommends that you keep this service enabled.
|
BIN
tests/firefox/webapprt-stub
Executable file
BIN
tests/firefox/webapprt-stub
Executable file
Binary file not shown.
BIN
tests/firefox/webapprt/omni.ja
Normal file
BIN
tests/firefox/webapprt/omni.ja
Normal file
Binary file not shown.
20
tests/firefox/webapprt/webapprt.ini
Normal file
20
tests/firefox/webapprt/webapprt.ini
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
[App]
|
||||
ID=webapprt@mozilla.org
|
||||
Vendor=Mozilla
|
||||
; Note: the Windows stub executable sets nsXREAppData::name to the webapp
|
||||
; origin, overriding the value below, to make the app runner treat webapps
|
||||
; as distinct products, per bug 747409.
|
||||
Name=Webapp Runtime
|
||||
Version=45.4.0
|
||||
BuildID=20160905130425
|
||||
UAName=Firefox
|
||||
|
||||
[Gecko]
|
||||
MinVersion=45.4.0
|
||||
MaxVersion=45.4.0
|
||||
|
||||
[Crash Reporter]
|
||||
Enabled=1
|
||||
ServerURL=https://crash-reports.mozilla.com/submit?id=webapprt@mozilla.org&version=45.4.0&buildid=20160905130425
|
Reference in New Issue
Block a user