mirror of
https://codeberg.org/kiss-community/repo
synced 2025-01-21 18:04:41 -07:00
firefox: 116.0
This commit is contained in:
parent
d695558da7
commit
3c5a5ae939
@ -1,4 +1,4 @@
|
||||
9f9317c045810f7ea01ec7f00c6c3e631e0914f57909976940b548d6f1cbfae959
|
||||
76bd992e27cd7ba21451b0c93659c4e27347f3086018ba996939ed4b4659095877
|
||||
bd231369e10f0300360b79ae2e9b429f1d5833f6a46b615722979c38b6ebb70882
|
||||
ee279241e461011e2265086328d9d0a913ab938bb81aa97fa22b8b9b7edf5e33bc
|
||||
8c0f419eb138061e67dbe2ac73e9c8332649fb90aacb57ac4f00d5de94c0cf23a8
|
||||
|
@ -1,4 +1,4 @@
|
||||
https://ftp.mozilla.org/pub/firefox/releases/115.0.2/source/firefox-115.0.2.source.tar.xz
|
||||
https://ftp.mozilla.org/pub/firefox/releases/116.0/source/firefox-116.0.source.tar.xz
|
||||
patches/fix-overalignment.patch
|
||||
patches/musl-sandbox.patch
|
||||
patches/no-atk.patch
|
||||
|
@ -1 +1 @@
|
||||
115.0.2 1
|
||||
116.0 1
|
||||
|
@ -1,123 +0,0 @@
|
||||
firefox
|
||||
________________________________________________________________________________
|
||||
|
||||
Mozilla Firefox or simply Firefox, is a free and open-source web browser
|
||||
developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation.
|
||||
Firefox uses the Gecko rendering engine to display web pages. [0]
|
||||
|
||||
Upstream: https://www.mozilla.org/firefox
|
||||
|
||||
|
||||
[000] Index
|
||||
________________________________________________________________________________
|
||||
|
||||
* Installation ........................................................... [001]
|
||||
* Runtime Dependencies ................................................. [002]
|
||||
* Privacy Package ...................................................... [003]
|
||||
* Setup .................................................................. [004]
|
||||
* Enable VAAPI Acceleration ............................................ [005]
|
||||
* Usage .................................................................. [006]
|
||||
* References ............................................................. [007]
|
||||
|
||||
|
||||
[001] Installation
|
||||
________________________________________________________________________________
|
||||
|
||||
+------------------------------------------------------------------------------+
|
||||
| |
|
||||
| $ kiss b firefox |
|
||||
| |
|
||||
+------------------------------------------------------------------------------+
|
||||
|
||||
|
||||
--[002] Runtime Dependencies ---------------------------------------------------
|
||||
|
||||
Firefox needs a few additional things to be fully functional. One is an icon
|
||||
theme and the other is a font. If you have already installed the fonts and
|
||||
icon theme of your choosing, this step can be skipped.
|
||||
|
||||
+----------------------------------------------------------------------------+
|
||||
| |
|
||||
| $ kiss b [hicolor-icon-theme|adwaita-icon-theme] |
|
||||
| $ kiss b ttf-croscore |
|
||||
| |
|
||||
+----------------------------------------------------------------------------+
|
||||
|
||||
|
||||
--[003] Privacy Package --------------------------------------------------------
|
||||
|
||||
Provided is also an optional privacy package which makes Firefox perform zero
|
||||
unsolicited network requests. More information can be found in the
|
||||
documentation (@/firefox-privacy) Expect some website breakage when using this
|
||||
privacy package YMMV.
|
||||
|
||||
+----------------------------------------------------------------------------+
|
||||
| |
|
||||
| $ kiss b firefox-privacy |
|
||||
| |
|
||||
+----------------------------------------------------------------------------+
|
||||
|
||||
|
||||
[004] Setup
|
||||
________________________________________________________________________________
|
||||
|
||||
As of Firefox 91. There is no need to set special environment variables to
|
||||
enable Wayland support (in a Wayland only environment like ours). The browser
|
||||
should start with no further configuration.
|
||||
|
||||
|
||||
--[005] Enable VAAPI Acceleration ----------------------------------------------
|
||||
|
||||
As of Firefox 102, only the following modification to about:config should be
|
||||
required, with no need to disable any sandbox features.
|
||||
|
||||
+------------------------------------------------------------------------------+
|
||||
| |
|
||||
| about:config |
|
||||
| |
|
||||
| media.ffmpeg.vaapi.enabled=true |
|
||||
| |
|
||||
+------------------------------------------------------------------------------+
|
||||
|
||||
If using AMDGPU, the following kernel option must be enabled. [1]
|
||||
|
||||
+------------------------------------------------------------------------------+
|
||||
| |
|
||||
| .config |
|
||||
| |
|
||||
| CONFIG_CHECKPOINT_RESTORE=y |
|
||||
| |
|
||||
+------------------------------------------------------------------------------+
|
||||
|
||||
You may also need to set the following environment variable.
|
||||
|
||||
+------------------------------------------------------------------------------+
|
||||
| |
|
||||
| .profile |
|
||||
| |
|
||||
| export MOZ_WAYLAND_DRM_DEVICE=/dev/dri/renderD128 |
|
||||
| |
|
||||
+------------------------------------------------------------------------------+
|
||||
|
||||
To verify that VAAPI is working, launch Firefox with the following argument and
|
||||
attempt to watch a video. Pay attention for errors in the output.
|
||||
|
||||
+------------------------------------------------------------------------------+
|
||||
| |
|
||||
| $ firefox --MOZ_LOG=PlatformDecoderModule:4 |
|
||||
| |
|
||||
+------------------------------------------------------------------------------+
|
||||
|
||||
|
||||
[006] Usage
|
||||
________________________________________________________________________________
|
||||
|
||||
Refer to the browser's help output and online documentation for further
|
||||
information.
|
||||
|
||||
|
||||
[007] References
|
||||
________________________________________________________________________________
|
||||
|
||||
[0] https://en.wikipedia.org/wiki/Firefox
|
||||
|
@ -1,77 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
for p in *.patch; do
|
||||
patch -p1 < "$p"
|
||||
done
|
||||
|
||||
sed '/UNZIP/d' toolkit/moz.configure > _
|
||||
mv -f _ toolkit/moz.configure
|
||||
|
||||
# If using libc++, CXXSTDLIB needs to be set manually.
|
||||
case $("$CC" -print-file-name=libc++.so) in */*)
|
||||
export CXXSTDLIB=c++
|
||||
esac
|
||||
|
||||
export CFLAGS="$CFLAGS -w"
|
||||
export CXXFLAGS="$CXXFLAGS -w"
|
||||
|
||||
# Instruct the compiler to trim absolute paths in resulting binaries and instead
|
||||
# change them to relative paths ($PWD/... ./...).
|
||||
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$PWD=."
|
||||
|
||||
export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/firefox,--enable-new-dtags"
|
||||
export RUSTFLAGS="$RUSTFLAGS -Cdebuginfo=0"
|
||||
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
|
||||
export MOZ_DEBUG_FLAGS=-g0
|
||||
export MOZBUILD_STATE_PATH="$PWD/state"
|
||||
export MOZ_NOSPAM=1
|
||||
|
||||
cat > .mozconfig << EOF
|
||||
ac_add_options --prefix=/usr
|
||||
ac_add_options --libdir=/usr/lib
|
||||
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland-only
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-audio-backends=alsa
|
||||
ac_add_options --enable-install-strip
|
||||
ac_add_options --enable-official-branding
|
||||
ac_add_options --enable-application=browser
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --with-system-ffi
|
||||
ac_add_options --with-system-jpeg
|
||||
ac_add_options --with-system-libvpx
|
||||
ac_add_options --with-system-nspr
|
||||
ac_add_options --with-system-nss
|
||||
ac_add_options --with-system-pixman
|
||||
ac_add_options --with-system-png
|
||||
ac_add_options --with-system-webp
|
||||
ac_add_options --with-system-zlib
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
ac_add_options --disable-eme
|
||||
ac_add_options --disable-dbus
|
||||
ac_add_options --disable-tests
|
||||
ac_add_options --disable-vtune
|
||||
ac_add_options --disable-updater
|
||||
ac_add_options --disable-jemalloc
|
||||
ac_add_options --disable-elf-hack
|
||||
ac_add_options --disable-callgrind
|
||||
ac_add_options --disable-profiling
|
||||
ac_add_options --disable-necko-wifi
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --disable-accessibility
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --disable-debug-symbols
|
||||
ac_add_options --disable-parental-controls
|
||||
ac_add_options --disable-system-extension-dirs
|
||||
EOF
|
||||
|
||||
./mach build
|
||||
./mach run
|
||||
DESTDIR="$1" ./mach install
|
||||
|
||||
# Remove a lot of uneeded "stuff".
|
||||
rm -rf \
|
||||
"$1/usr/include" \
|
||||
"$1/usr/lib/firefox-devel" \
|
||||
"$1/usr/share/idl"
|
@ -1,6 +0,0 @@
|
||||
726b06d8cc5764564766c8416283cc0b14fe188339a24aa288cebe4703589b7622
|
||||
bd231369e10f0300360b79ae2e9b429f1d5833f6a46b615722979c38b6ebb70882
|
||||
ee279241e461011e2265086328d9d0a913ab938bb81aa97fa22b8b9b7edf5e33bc
|
||||
8c0f419eb138061e67dbe2ac73e9c8332649fb90aacb57ac4f00d5de94c0cf23a8
|
||||
3bfec8b5e7cb94481d94e1039a602e14564c8a6da5a28f089ce4a69d23f9e42bbb
|
||||
2914dbf6d620c3403fbe99fcd04618eaab4257b706470dec3bacc5952f79a0fa31
|
@ -1,33 +0,0 @@
|
||||
alsa-lib
|
||||
bzip2
|
||||
cairo
|
||||
cbindgen make
|
||||
clang make
|
||||
expat
|
||||
ffmpeg
|
||||
fontconfig
|
||||
freetype-harfbuzz
|
||||
gdk-pixbuf
|
||||
glib
|
||||
gtk+3
|
||||
libdrm
|
||||
libffi
|
||||
libjpeg-turbo
|
||||
libpng
|
||||
libvpx
|
||||
libwebp
|
||||
llvm make
|
||||
m4 make
|
||||
mesa
|
||||
nasm make
|
||||
nodejs make
|
||||
nspr
|
||||
nss
|
||||
pango
|
||||
pixman
|
||||
pkgconf make
|
||||
python make
|
||||
rust make
|
||||
wayland
|
||||
wayland-protocols make
|
||||
zlib
|
@ -1,50 +0,0 @@
|
||||
diff --git a/js/public/Utility.h b/js/public/Utility.h
|
||||
index 5a3002b..8927d65 100644
|
||||
--- a/js/public/Utility.h
|
||||
+++ b/js/public/Utility.h
|
||||
@@ -478,6 +478,9 @@ static inline void js_free(void* p) {
|
||||
#define JS_DECLARE_NEW_METHODS(NEWNAME, ALLOCATOR, QUALIFIERS) \
|
||||
template <class T, typename... Args> \
|
||||
QUALIFIERS T* MOZ_HEAP_ALLOCATOR NEWNAME(Args&&... args) { \
|
||||
+ static_assert( \
|
||||
+ alignof(T) <= alignof(max_align_t), \
|
||||
+ "over-aligned type is not supported by JS_DECLARE_NEW_METHODS"); \
|
||||
void* memory = ALLOCATOR(sizeof(T)); \
|
||||
return MOZ_LIKELY(memory) ? new (memory) T(std::forward<Args>(args)...) \
|
||||
: nullptr; \
|
||||
@@ -494,6 +497,9 @@ static inline void js_free(void* p) {
|
||||
#define JS_DECLARE_NEW_ARENA_METHODS(NEWNAME, ALLOCATOR, QUALIFIERS) \
|
||||
template <class T, typename... Args> \
|
||||
QUALIFIERS T* MOZ_HEAP_ALLOCATOR NEWNAME(arena_id_t arena, Args&&... args) { \
|
||||
+ static_assert( \
|
||||
+ alignof(T) <= alignof(max_align_t), \
|
||||
+ "over-aligned type is not supported by JS_DECLARE_NEW_ARENA_METHODS"); \
|
||||
void* memory = ALLOCATOR(arena, sizeof(T)); \
|
||||
return MOZ_LIKELY(memory) ? new (memory) T(std::forward<Args>(args)...) \
|
||||
: nullptr; \
|
||||
diff --git a/js/src/gc/GCMarker.h b/js/src/gc/GCMarker.h
|
||||
index 495e66c..053ba90 100644
|
||||
--- a/js/src/gc/GCMarker.h
|
||||
+++ b/js/src/gc/GCMarker.h
|
||||
@@ -274,7 +274,7 @@ enum ShouldReportMarkTime : bool {
|
||||
|
||||
} /* namespace gc */
|
||||
|
||||
-class alignas(TypicalCacheLineSize) GCMarker {
|
||||
+class GCMarker {
|
||||
enum MarkingState : uint8_t {
|
||||
// Have not yet started marking.
|
||||
NotActive,
|
||||
diff --git a/js/src/gc/Nursery.h b/js/src/gc/Nursery.h
|
||||
index ae1e8c2..3dde209 100644
|
||||
--- a/js/src/gc/Nursery.h
|
||||
+++ b/js/src/gc/Nursery.h
|
||||
@@ -67,7 +67,7 @@ class GCSchedulingTunables;
|
||||
class TenuringTracer;
|
||||
} // namespace gc
|
||||
|
||||
-class alignas(TypicalCacheLineSize) Nursery {
|
||||
+class Nursery {
|
||||
public:
|
||||
explicit Nursery(gc::GCRuntime* gc);
|
||||
~Nursery();
|
@ -1,29 +0,0 @@
|
||||
diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
|
||||
index dffefac..19cc432 100644
|
||||
--- a/security/sandbox/linux/SandboxFilter.cpp
|
||||
+++ b/security/sandbox/linux/SandboxFilter.cpp
|
||||
@@ -1595,6 +1595,11 @@ class ContentSandboxPolicy : public SandboxPolicyCommon {
|
||||
case __NR_clone3:
|
||||
return Error(ENOSYS);
|
||||
|
||||
+# ifdef __NR_fork
|
||||
+ case __NR_fork:
|
||||
+ return Error(ENOSYS);
|
||||
+# endif
|
||||
+
|
||||
# ifdef __NR_fadvise64
|
||||
case __NR_fadvise64:
|
||||
return Allow();
|
||||
@@ -1736,10 +1741,10 @@ class GMPSandboxPolicy : public SandboxPolicyCommon {
|
||||
return Allow();
|
||||
case __NR_sched_get_priority_min:
|
||||
case __NR_sched_get_priority_max:
|
||||
+ case __NR_sched_setscheduler:
|
||||
return Allow();
|
||||
case __NR_sched_getparam:
|
||||
- case __NR_sched_getscheduler:
|
||||
- case __NR_sched_setscheduler: {
|
||||
+ case __NR_sched_getscheduler: {
|
||||
Arg<pid_t> pid(0);
|
||||
return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr));
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
|
||||
index b77fadc..520305a 100644
|
||||
--- a/widget/gtk/nsWindow.cpp
|
||||
+++ b/widget/gtk/nsWindow.cpp
|
||||
@@ -659,9 +659,11 @@ void nsWindow::Destroy() {
|
||||
// We need to detach accessible object here because mContainer is a custom
|
||||
// widget and doesn't call gtk_widget_real_destroy() from destroy handler
|
||||
// as regular widgets.
|
||||
+#ifdef ACCESSIBILITY
|
||||
if (AtkObject* ac = gtk_widget_get_accessible(GTK_WIDGET(mContainer))) {
|
||||
gtk_accessible_set_widget(GTK_ACCESSIBLE(ac), nullptr);
|
||||
}
|
||||
+#endif
|
||||
|
||||
gtk_widget_destroy(mShell);
|
||||
mShell = nullptr;
|
@ -1,56 +0,0 @@
|
||||
diff -r fc5ee47dac3e toolkit/components/remote/moz.build
|
||||
--- a/toolkit/components/remote/moz.build Tue Jun 28 12:00:27 2022 -0500
|
||||
+++ b/toolkit/components/remote/moz.build Thu Jun 30 00:35:24 2022 -0500
|
||||
@@ -26,7 +26,7 @@
|
||||
"nsUnixRemoteServer.h",
|
||||
"RemoteUtils.h",
|
||||
]
|
||||
- else:
|
||||
+ elif CONFIG["MOZ_X11"]:
|
||||
SOURCES += [
|
||||
"nsGTKRemoteServer.cpp",
|
||||
"nsXRemoteClient.cpp",
|
||||
diff -r fc5ee47dac3e toolkit/components/remote/nsRemoteService.cpp
|
||||
--- a/toolkit/components/remote/nsRemoteService.cpp Tue Jun 28 12:00:27 2022 -0500
|
||||
+++ b/toolkit/components/remote/nsRemoteService.cpp Thu Jun 30 00:35:24 2022 -0500
|
||||
@@ -6,12 +6,14 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
-# ifdef MOZ_ENABLE_DBUS
|
||||
+# if defined(MOZ_ENABLE_DBUS)
|
||||
# include "nsDBusRemoteServer.h"
|
||||
# include "nsDBusRemoteClient.h"
|
||||
-# else
|
||||
+# elif defined(MOZ_X11)
|
||||
# include "nsGTKRemoteServer.h"
|
||||
# include "nsXRemoteClient.h"
|
||||
+# else
|
||||
+# include "nsRemoteClient.h"
|
||||
# endif
|
||||
#elif defined(XP_WIN)
|
||||
# include "nsWinRemoteServer.h"
|
||||
@@ -94,8 +96,10 @@
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
# if defined(MOZ_ENABLE_DBUS)
|
||||
client = MakeUnique<nsDBusRemoteClient>();
|
||||
+# elif defined(MOZ_X11)
|
||||
+ client = MakeUnique<nsXRemoteClient>();
|
||||
# else
|
||||
- client = MakeUnique<nsXRemoteClient>();
|
||||
+ return REMOTE_NOT_FOUND;
|
||||
# endif
|
||||
#elif defined(XP_WIN)
|
||||
client = MakeUnique<nsWinRemoteClient>();
|
||||
@@ -138,8 +142,10 @@
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
# if defined(MOZ_ENABLE_DBUS)
|
||||
mRemoteServer = MakeUnique<nsDBusRemoteServer>();
|
||||
+# elif defined(MOZ_X11)
|
||||
+ mRemoteServer = MakeUnique<nsGTKRemoteServer>();
|
||||
# else
|
||||
- mRemoteServer = MakeUnique<nsGTKRemoteServer>();
|
||||
+ return;
|
||||
# endif
|
||||
#elif defined(XP_WIN)
|
||||
mRemoteServer = MakeUnique<nsWinRemoteServer>();
|
@ -1,12 +0,0 @@
|
||||
diff --git a/config/system-headers.mozbuild b/config/system-headers.mozbuild
|
||||
index a1b58eb59b..d35da57db3 100644
|
||||
--- a/config/system-headers.mozbuild
|
||||
+++ b/config/system-headers.mozbuild
|
||||
@@ -267,7 +267,6 @@ system_headers = [
|
||||
'freetype/t1tables.h',
|
||||
'freetype/ttnameid.h',
|
||||
'freetype/tttables.h',
|
||||
- 'fribidi/fribidi.h',
|
||||
'FSp_fopen.h',
|
||||
'fstream',
|
||||
'fstream.h',
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Run 'kiss help firefox' for setup
|
||||
information and general troubleshooting.
|
||||
|
||||
Also available here:
|
||||
|
||||
https://kisslinux.org/wiki/pkg/firefox
|
||||
|
||||
EOF
|
@ -1,6 +0,0 @@
|
||||
https://ftp.mozilla.org/pub/firefox/releases/116.0b8/source/firefox-116.0b8.source.tar.xz
|
||||
patches/fix-overalignment.patch
|
||||
patches/musl-sandbox.patch
|
||||
patches/no-atk.patch
|
||||
patches/no-dbus.patch
|
||||
patches/no-fribidi.patch
|
@ -1 +0,0 @@
|
||||
116.0b8 1
|
Loading…
Reference in New Issue
Block a user