summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornikatar2022-03-11 18:06:11 +0300
committernikatar2022-03-11 18:06:11 +0300
commit81e1dcae17f8c641fc782a0626d81b49ddbfff9a (patch)
treee01ce53783f8e91edcaeb2bb16a84692345ad78c
parent39380bef14cc8ce2a446fd97949d62a87eb79720 (diff)
downloadaur-81e1dcae17f8c641fc782a0626d81b49ddbfff9a.tar.gz
98.0-1
-rw-r--r--.SRCINFO14
-rw-r--r--0001-Use-remoting-name-for-GDK-application-names.patch57
-rw-r--r--PKGBUILD14
-rw-r--r--unity-menubar.patch52
4 files changed, 32 insertions, 105 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8bc559226ae1..f030b336139e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = firefox-appmenu
pkgdesc = Firefox from extra with appmenu patch
- pkgver = 97.0.1
+ pkgver = 98.0
pkgrel = 1
url = https://www.mozilla.org/firefox/
arch = x86_64
@@ -47,29 +47,27 @@ pkgbase = firefox-appmenu
optdepends = speech-dispatcher: Text-to-Speech
optdepends = hunspell-en_US: Spell checking, American English
optdepends = xdg-desktop-portal: Screensharing with Wayland
- provides = firefox=97.0.1
+ provides = firefox=98.0
conflicts = firefox
options = !emptydirs
options = !makeflags
options = !strip
options = !lto
options = !debug
- source = https://archive.mozilla.org/pub/firefox/releases/97.0.1/source/firefox-97.0.1.source.tar.xz
- source = https://archive.mozilla.org/pub/firefox/releases/97.0.1/source/firefox-97.0.1.source.tar.xz.asc
- source = 0001-Use-remoting-name-for-GDK-application-names.patch
+ source = https://archive.mozilla.org/pub/firefox/releases/98.0/source/firefox-98.0.source.tar.xz
+ source = https://archive.mozilla.org/pub/firefox/releases/98.0/source/firefox-98.0.source.tar.xz.asc
source = firefox.desktop
source = identity-icons-brand.svg
source = fix-wayland-build.patch
source = unity-menubar.patch
source = fix_csd_window_buttons.patch
validpgpkeys = 14F26682D0916CDD81E37B6D61B7B526D98F0353
- sha256sums = 3f2c87cf28645130777e875ddc9c67e8994c8d5c859f425f3ddced6fecb78d45
+ sha256sums = fd0a4c11d007d9045706667eb0f99f9b7422945188424cb937bfef530cb6f4dd
sha256sums = SKIP
- sha256sums = 8de6c0ecc70d2763936be6df4b91a3d2e806765bf510f987d6f2ffa2377c3f01
sha256sums = 34514a657d6907a159594c51e674eeb81297c431ec26a736417c2fdb995c2c0c
sha256sums = a9b8b4a0a1f4a7b4af77d5fc70c2686d624038909263c795ecc81e0aec7711e9
sha256sums = 46724a625f51c358abaee488a7ce75673078e96ba009459339120b8dd11dec25
- sha256sums = 4ad7d369e79281d2bd9c7364e21b174d76df16558ac21d4400d6ac9f1e04f897
+ sha256sums = 771ba92312897a85de26525bf222468fe9074c2dee093cf35fdf219428ea4412
sha256sums = e08d0bc5b7e562f5de6998060e993eddada96d93105384960207f7bdf2e1ed6e
pkgname = firefox-appmenu
diff --git a/0001-Use-remoting-name-for-GDK-application-names.patch b/0001-Use-remoting-name-for-GDK-application-names.patch
deleted file mode 100644
index f307772948eb..000000000000
--- a/0001-Use-remoting-name-for-GDK-application-names.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
-Date: Mon, 25 Mar 2019 20:30:11 +0100
-Subject: [PATCH] Use remoting name for GDK application names
-
----
- toolkit/xre/nsAppRunner.cpp | 6 +-----
- widget/gtk/nsAppShell.cpp | 12 +++++-------
- 2 files changed, 6 insertions(+), 12 deletions(-)
-
-diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
-index ce001e93821f..3be817c5cbd5 100644
---- a/toolkit/xre/nsAppRunner.cpp
-+++ b/toolkit/xre/nsAppRunner.cpp
-@@ -4348,11 +4348,7 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
- // consistently.
-
- // Set program name to the one defined in application.ini.
-- {
-- nsAutoCString program(gAppData->name);
-- ToLowerCase(program);
-- g_set_prgname(program.get());
-- }
-+ g_set_prgname(gAppData->remotingName);
-
- // Initialize GTK here for splash.
-
-diff --git a/widget/gtk/nsAppShell.cpp b/widget/gtk/nsAppShell.cpp
-index c8bbd9a373f5..a6a2186f20fb 100644
---- a/widget/gtk/nsAppShell.cpp
-+++ b/widget/gtk/nsAppShell.cpp
-@@ -27,6 +27,8 @@
- # include "nsIObserverService.h"
- #endif
- #include "gfxPlatform.h"
-+#include "nsAppRunner.h"
-+#include "mozilla/XREAppData.h"
- #include "ScreenHelperGTK.h"
- #include "HeadlessScreenHelper.h"
- #include "mozilla/widget/ScreenManager.h"
-@@ -257,13 +259,9 @@ nsresult nsAppShell::Init() {
- // See https://bugzilla.gnome.org/show_bug.cgi?id=747634
- //
- // Only bother doing this for the parent process, since it's the one
-- // creating top-level windows. (At this point, a child process hasn't
-- // received the list of registered chrome packages, so the
-- // GetBrandShortName call would fail anyway.)
-- nsAutoString brandName;
-- mozilla::widget::WidgetUtils::GetBrandShortName(brandName);
-- if (!brandName.IsEmpty()) {
-- gdk_set_program_class(NS_ConvertUTF16toUTF8(brandName).get());
-+ // creating top-level windows.
-+ if (gAppData) {
-+ gdk_set_program_class(gAppData->remotingName);
- }
- }
- }
diff --git a/PKGBUILD b/PKGBUILD
index 95063fd24eff..2604e847147b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=firefox-appmenu
_pkgname=firefox
-pkgver=97.0.1
+pkgver=98.0
pkgrel=1
pkgdesc="Firefox from extra with appmenu patch"
arch=(x86_64)
@@ -28,19 +28,17 @@ provides=("firefox=$pkgver")
conflicts=("firefox")
options=(!emptydirs !makeflags !strip !lto !debug)
source=(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz{,.asc}
- 0001-Use-remoting-name-for-GDK-application-names.patch
$_pkgname.desktop
identity-icons-brand.svg
fix-wayland-build.patch
unity-menubar.patch
fix_csd_window_buttons.patch)
-sha256sums=('3f2c87cf28645130777e875ddc9c67e8994c8d5c859f425f3ddced6fecb78d45'
+sha256sums=('fd0a4c11d007d9045706667eb0f99f9b7422945188424cb937bfef530cb6f4dd'
'SKIP'
- '8de6c0ecc70d2763936be6df4b91a3d2e806765bf510f987d6f2ffa2377c3f01'
'34514a657d6907a159594c51e674eeb81297c431ec26a736417c2fdb995c2c0c'
'a9b8b4a0a1f4a7b4af77d5fc70c2686d624038909263c795ecc81e0aec7711e9'
'46724a625f51c358abaee488a7ce75673078e96ba009459339120b8dd11dec25'
- '4ad7d369e79281d2bd9c7364e21b174d76df16558ac21d4400d6ac9f1e04f897'
+ '771ba92312897a85de26525bf222468fe9074c2dee093cf35fdf219428ea4412'
'e08d0bc5b7e562f5de6998060e993eddada96d93105384960207f7bdf2e1ed6e')
validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases <release@mozilla.com>
@@ -63,12 +61,6 @@ prepare() {
#https://aur.archlinux.org/packages/firefox-appmenu nicman32 comment 2021-08-16
patch -Np1 -i ../fix-wayland-build.patch
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1530052
- patch -Np1 -i ../0001-Use-remoting-name-for-GDK-application-names.patch
-
- # Fix build with wayland 1.20
-# patch -Np1 -i ../0002-Bug-1745560-Add-missing-stub-for-wl_proxy_marshal_fl.patch
-
# actual appmenu patch from ubuntu repos
# http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_80.0+build2-0ubuntu0.16.04.1.debian.tar.xz
patch -Np1 -i ../unity-menubar.patch
diff --git a/unity-menubar.patch b/unity-menubar.patch
index dc9ffd1c3662..d3b2d8771e89 100644
--- a/unity-menubar.patch
+++ b/unity-menubar.patch
@@ -16,7 +16,7 @@
#endif
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
-@@ -6251,11 +6251,18 @@ function onViewToolbarsPopupShowing(aEve
+@@ -6451,11 +6451,18 @@ function onViewToolbarsPopupShowing(aEve
MozXULElement.insertFTLIfNeeded("browser/toolbarContextMenu.ftl");
let firstMenuItem = aInsertPoint || popup.firstElementChild;
let toolbarNodes = gNavToolbox.querySelectorAll("toolbar");
@@ -47,7 +47,7 @@
<menupopup id="organizeButtonPopup">
--- a/dom/xul/XULPopupElement.cpp
+++ b/dom/xul/XULPopupElement.cpp
-@@ -211,6 +211,10 @@ void XULPopupElement::GetState(nsString&
+@@ -207,6 +207,10 @@ void XULPopupElement::GetState(nsString&
// set this here in case there's no frame for the popup
aState.AssignLiteral("closed");
@@ -58,7 +58,7 @@
if (nsXULPopupManager* pm = nsXULPopupManager::GetInstance()) {
switch (pm->GetPopupState(this)) {
case ePopupShown:
-@@ -233,6 +237,11 @@ void XULPopupElement::GetState(nsString&
+@@ -229,6 +233,11 @@ void XULPopupElement::GetState(nsString&
break;
}
}
@@ -72,7 +72,7 @@
nsINode* XULPopupElement::GetTriggerNode() const {
--- a/dom/xul/moz.build
+++ b/dom/xul/moz.build
-@@ -83,4 +83,9 @@ LOCAL_INCLUDES += [
+@@ -82,4 +82,9 @@ LOCAL_INCLUDES += [
include("/ipc/chromium/chromium-config.mozbuild")
@@ -84,7 +84,7 @@
FINAL_LIBRARY = "xul"
--- a/layout/build/moz.build
+++ b/layout/build/moz.build
-@@ -68,6 +68,10 @@ elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "an
+@@ -70,6 +70,10 @@ elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "an
"/dom/system",
"/dom/system/android",
]
@@ -97,7 +97,7 @@
"components.conf",
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
-@@ -301,6 +301,9 @@ pref("dom.mouseevent.click.hack.use_lega
+@@ -310,6 +310,9 @@ pref("dom.mouseevent.click.hack.use_lega
// Fastback caching - if this pref is negative, then we calculate the number
// of content viewers to cache based on the amount of available memory.
pref("browser.sessionhistory.max_total_viewers", -1);
@@ -125,7 +125,7 @@
}
--- a/widget/gtk/moz.build
+++ b/widget/gtk/moz.build
-@@ -33,6 +33,7 @@
+@@ -34,6 +34,7 @@ EXPORTS += [
EXPORTS.mozilla += ["WidgetUtilsGtk.h"]
EXPORTS.mozilla.widget += [
@@ -133,18 +133,11 @@
"WindowSurface.h",
"WindowSurfaceProvider.h",
]
-@@ -45,6 +46,7 @@
- "MozContainer.cpp",
- "MPRISServiceHandler.cpp",
- "NativeKeyBindings.cpp",
-+ "NativeMenuSupport.cpp",
- "nsApplicationChooser.cpp",
- "nsAppShell.cpp",
- "nsBidiKeyboard.cpp",
-@@ -70,6 +72,15 @@
+@@ -71,6 +72,16 @@ UNIFIED_SOURCES += [
SOURCES += [
"MediaKeysEventSourceFactory.cpp",
++ "NativeMenuSupport.cpp",
+ "nsDbusmenu.cpp",
+ "nsMenu.cpp", # conflicts with X11 headers
+ "nsMenuBar.cpp",
@@ -157,7 +150,7 @@
"nsNativeThemeGTK.cpp", # conflicts with X11 headers
"nsWindow.cpp", # conflicts with X11 headers
"WaylandVsyncSource.cpp", # conflicts with X11 headers
-@@ -138,6 +149,7 @@
+@@ -138,6 +149,7 @@ LOCAL_INCLUDES += [
"/layout/base",
"/layout/forms",
"/layout/generic",
@@ -5060,7 +5053,7 @@
+#endif /* __nsNativeMenuService_h__ */
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
-@@ -6436,6 +6436,10 @@ void nsWindow::HideWindowChrome(bool aSh
+@@ -7122,6 +7122,10 @@ void nsWindow::HideWindowChrome(bool aSh
SetWindowDecoration(aShouldHide ? eBorderStyle_none : mBorderStyle);
}
@@ -5073,7 +5066,7 @@
nsIRollupListener* rollupListener = GetActiveRollupListener();
--- a/widget/gtk/nsWindow.h
+++ b/widget/gtk/nsWindow.h
-@@ -39,6 +39,8 @@
+@@ -26,6 +26,8 @@
#include "nsRefPtrHashtable.h"
#include "IMContextWrapper.h"
@@ -5082,8 +5075,8 @@
#ifdef ACCESSIBILITY
# include "mozilla/a11y/LocalAccessible.h"
#endif
-@@ -168,6 +170,8 @@ class nsWindow final : public nsBaseWidg
- nsIScreen* aTargetScreen = nullptr) override;
+@@ -171,6 +173,8 @@ class nsWindow final : public nsBaseWidg
+ nsresult MakeFullScreen(bool aFullScreen) override;
void HideWindowChrome(bool aShouldHide) override;
+ void SetMenuBar(mozilla::UniquePtr<nsMenuBar> aMenuBar);
@@ -5091,15 +5084,15 @@
/**
* GetLastUserInputTime returns a timestamp for the most recent user input
* event. This is intended for pointer grab requests (including drags).
-@@ -708,6 +712,8 @@ class nsWindow final : public nsBaseWidg
- static GtkWindowDecoration sGtkWindowDecoration;
+@@ -828,6 +832,8 @@ class nsWindow final : public nsBaseWidg
static bool sTransparentMainWindow;
-+
-+ mozilla::UniquePtr<nsMenuBar> mMenuBar;
++ mozilla::UniquePtr<nsMenuBar> mMenuBar;
++
#ifdef ACCESSIBILITY
RefPtr<mozilla::a11y::LocalAccessible> mRootAccessible;
+
--- /dev/null
+++ b/xpcom/ds/NativeMenuAtoms.py
@@ -0,0 +1,9 @@
@@ -5122,7 +5115,7 @@
import sys
# Static atom definitions, used to generate nsGkAtomList.h.
-@@ -2506,7 +2507,7 @@ STATIC_ATOMS = [
+@@ -2527,7 +2528,7 @@ STATIC_ATOMS = [
InheritingAnonBoxAtom("AnonBox_mozSVGForeignContent", ":-moz-svg-foreign-content"),
InheritingAnonBoxAtom("AnonBox_mozSVGText", ":-moz-svg-text"),
# END ATOMS
@@ -5133,7 +5126,7 @@
--- a/widget/gtk/components.conf
+++ b/widget/gtk/components.conf
-@@ -82,6 +82,14 @@ Classes = [
+@@ -76,6 +76,14 @@ Classes = [
'headers': ['/widget/gtk/nsApplicationChooser.h'],
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
},
@@ -5161,7 +5154,7 @@
#endif
--- /dev/null
+++ b/widget/gtk/NativeMenuSupport.cpp
-@@ -0,0 +1,25 @@
+@@ -0,0 +1,26 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* 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
@@ -5171,6 +5164,7 @@
+
+#include "MainThreadUtils.h"
+#include "nsINativeMenuService.h"
++#include "nsServiceManagerUtils.h"
+
+namespace mozilla::widget {
+
@@ -5223,7 +5217,7 @@
+#endif // mozilla_widget_NativeMenuSupport_h
--- a/widget/moz.build
+++ b/widget/moz.build
-@@ -144,6 +144,11 @@ EXPORTS += [
+@@ -139,6 +139,11 @@ EXPORTS += [
"PuppetWidget.h",
]