Updated to 27.1.0

This commit is contained in:
Алзим 2017-02-10 22:48:28 +03:00
parent 5bd460c48f
commit e001aca369
10 changed files with 567 additions and 609 deletions

View file

@ -1,2 +1,2 @@
sources:
Pale-Moon-26.5.0_Release.tar.gz: 5cbde7b517632dede1e113d32b7de9b07f1e1fc2
Pale-Moon-27.1.0_Release.tar.gz: a96eff1da71eee668713f389126db9f1eb9d1126

View file

@ -1,28 +0,0 @@
diff -up firefox-21.0/mozilla-release/browser/app/profile/firefox.js.addons firefox-21.0/mozilla-release/browser/app/profile/firefox.js
--- firefox-21.0/mozilla-release/browser/app/profile/firefox.js.addons 2013-05-11 21:19:20.000000000 +0200
+++ firefox-21.0/mozilla-release/browser/app/profile/firefox.js 2013-05-16 12:02:13.840660585 +0200
@@ -61,7 +61,8 @@ pref("extensions.hotfix.certs.1.sha1Fing
// Disable add-ons that are not installed by the user in all scopes by default.
// See the SCOPE constants in AddonManager.jsm for values to use here.
-pref("extensions.autoDisableScopes", 15);
+pref("extensions.autoDisableScopes", 0);
+pref("extensions.showMismatchUI", false);
// Dictionary download preference
pref("browser.dictionaries.download.url", "https://addons.mozilla.org/%LOCALE%/firefox/dictionaries/");
diff -up firefox-21.0/mozilla-release/toolkit/mozapps/extensions/XPIProvider.jsm.addons firefox-21.0/mozilla-release/toolkit/mozapps/extensions/XPIProvider.jsm
diff -up firefox-15.0/mozilla-beta/toolkit/mozapps/extensions/XPIProvider.jsm.addons firefox-15.0/mozilla-beta/toolkit/mozapps/extensions/XPIProvider.jsm
--- firefox-15.0/mozilla-beta/toolkit/mozapps/extensions/XPIProvider.jsm.addons 2012-08-15 07:48:32.000000000 +0200
+++ firefox-15.0/mozilla-beta/toolkit/mozapps/extensions/XPIProvider.jsm 2012-08-21 11:56:41.441980035 +0200
@@ -1630,8 +1630,8 @@ var XPIProvider = {
this.showUpgradeUI();
flushCaches = true;
}
- else if (aAppChanged === undefined) {
- // For new profiles we will never need to show the add-on selection UI
+ else {
+ // For all profiles we will never need to show the add-on selection UI
Services.prefs.setBoolPref(PREF_SHOWN_SELECTION_UI, true);
}

View file

@ -1,16 +0,0 @@
Patch from: Bill Nottingham <notting@redhat.com>
diff -up mozilla-release/browser/base/Makefile.in.fu mozilla-release/browser/base/Makefile.in
--- mozilla-release/browser/base/Makefile.in.fu 2011-06-24 16:50:23.802042086 -0400
+++ mozilla-release/browser/base/Makefile.in 2011-06-24 16:50:42.324042096 -0400
@@ -62,7 +62,7 @@ EXTRA_JS_MODULES = \
include $(topsrcdir)/config/rules.mk
-PRE_RELEASE_SUFFIX := ""
+PRE_RELEASE_SUFFIX :=
DEFINES += \
-DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \

View file

@ -1,7 +1,7 @@
diff -urN mozilla-orig/browser/components/shell/src/nsKDEShellService.cpp mozilla-patched/browser/components/shell/src/nsKDEShellService.cpp
--- mozilla-orig/browser/components/shell/src/nsKDEShellService.cpp 2014-02-16 11:27:48.238244349 +1100
+++ mozilla-patched/browser/components/shell/src/nsKDEShellService.cpp 2014-02-18 19:57:45.740168755 +1100
@@ -15,6 +15,21 @@
diff -urN mozilla-release.orig/browser/components/shell/nsKDEShellService.cpp mozilla-release/browser/components/shell/nsKDEShellService.cpp
--- mozilla-release.orig/browser/components/shell/nsKDEShellService.cpp 2014-08-04 17:37:32.064081427 +0400
+++ mozilla-release/browser/components/shell/nsKDEShellService.cpp 2014-08-04 17:42:22.108041230 +0400
@@ -17,6 +17,21 @@
#include "nsIMutableArray.h"
#include "nsISupportsPrimitives.h"
#include "nsArrayUtils.h"
@ -21,10 +21,10 @@ diff -urN mozilla-orig/browser/components/shell/src/nsKDEShellService.cpp mozill
+#include <limits.h>
+#include <stdlib.h>
nsresult
nsKDEShellService::Init()
@@ -115,23 +130,109 @@
return NS_OK;
using namespace mozilla;
@@ -28,6 +43,29 @@
return NS_OK;
}
+static nsresult
@ -48,13 +48,16 @@ diff -urN mozilla-orig/browser/components/shell/src/nsKDEShellService.cpp mozill
+ return res ? NS_OK : NS_ERROR_FAILURE;
+#endif
+}
+
+
+
NS_IMPL_ISUPPORTS(nsKDEShellService, nsIShellService)
NS_IMETHODIMP
@@ -123,19 +161,83 @@
nsKDEShellService::SetDesktopBackground(nsIDOMElement* aElement,
PRInt32 aPosition)
- {
{
- return NS_ERROR_NOT_IMPLEMENTED;
+{
+ nsresult rv;
+ nsCOMPtr<nsIImageLoadingContent> imageContent = do_QueryInterface(aElement, &rv);
+ if (!imageContent) return rv;
@ -96,9 +99,9 @@ diff -urN mozilla-orig/browser/components/shell/src/nsKDEShellService.cpp mozill
+ rv = brandBundle->GetStringFromName(NS_LITERAL_STRING("brandShortName").get(),
+ getter_Copies(brandName));
+ NS_ENSURE_SUCCESS(rv, rv);
}
+ }
+ }
+
+ // build the file name
+ filePath.Append('/');
+ filePath.Append(NS_ConvertUTF16toUTF8(brandName));
@ -119,21 +122,21 @@ diff -urN mozilla-orig/browser/components/shell/src/nsKDEShellService.cpp mozill
+ modestr->SetData( options );
+ command->AppendElement( modestr, false );
+ return nsKDEUtils::command( command ) ? rv : NS_ERROR_FAILURE;
+}
+
}
NS_IMETHODIMP
nsKDEShellService::GetDesktopBackgroundColor(PRUint32 *aColor)
{
{
- return NS_ERROR_NOT_IMPLEMENTED;
+ aColor = 0;
+ return NS_OK;
}
}
NS_IMETHODIMP
nsKDEShellService::SetDesktopBackgroundColor(PRUint32 aColor)
{
{
- return NS_ERROR_NOT_IMPLEMENTED;
+ return NS_OK;
}
}
NS_IMETHODIMP

View file

@ -17,8 +17,8 @@
Summary: Web browser based on Goanna engine
Name: newmoon
Version: 26.5.0
Release: 2
Version: 27.1.0
Release: 1
License: MPLv2.0
Group: Networking/WWW
Url: http://www.palemoon.org
@ -31,14 +31,13 @@ Source9: kde.js
Patch1: firefox-6.0-lang.patch
Patch3: firefox-22.0-disable-check-default-browser.patch
Patch4: firefox-5.0-asciidel.patch
Patch5: firefox-3.5.3-default-mail-handler.patch
Patch6: firefox-15.0-enable-addons.patch
Patch7: palemoon-26.4.1-user-agent-overrides.patch
Patch6: palemoon-27.0.2-enable-addons.patch
Patch7: palemoon-27.0.2-user-agent-overrides.patch
# Patches for KDE integration of New Moon
Patch11: palemoon-26.3.1-firefox-kde.patch
Patch12: palemoon-26.3.1-mozilla-kde.patch
Patch11: palemoon-27.0.2-firefox-kde.patch
Patch12: palemoon-27.0.2-mozilla-kde.patch
Patch13: mozilla-kde-background.patch
BuildRequires: autoconf2.1
@ -138,9 +137,8 @@ Files and macros mainly for building New Moon extensions.
%patch1 -p1 -b .lang
%patch3 -p1 -b .disable-software-update
%patch4 -p1 -b .ascii
%patch5 -p1 -b .default-mail-handler
%patch6 -p2 -b .addons
%patch6 -p1 -b .addons
%patch7 -p1 -b .ua
# KDE integration
@ -178,6 +176,7 @@ mk_add_options MOZILLA_OFFICIAL=0
mk_add_options BUILD_OFFICIAL=0
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
mk_add_options AUTOCLOBBER=1
ac_add_options --host=%{_host}
ac_add_options --target=%{_target_platform}
ac_add_options --enable-optimize
@ -215,7 +214,7 @@ ac_add_options --enable-libnotify
ac_add_options --enable-xinerama
ac_add_options --with-distribution-id=org.rosa
ac_add_options --disable-crashreporter
ac_add_options --enable-gstreamer=1.0
ac_add_options --enable-gstreamer
ac_add_options --with-valgrind
ac_add_options --disable-javaxpcom
ac_add_options --enable-opus
@ -253,9 +252,9 @@ install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
cp %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}/%{mozillalibdir}/browser/icons/
for i in 16 22 24 32 48 128; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
convert browser/branding/unofficial/mozicon128.png -scale ${i}x${i} %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default${i}.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ;
convert browser/branding/unofficial/mozicon128.png -scale ${i}x${i} %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default${i}.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ;
done
# exclusions
@ -290,7 +289,7 @@ install -m644 %{SOURCE1} %{buildroot}%{mozillalibdir}/browser/defaults/profile/l
mkdir -p %{buildroot}%{mozillalibdir}/browser/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/browser/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
list-style-image: url("chrome://branding/content/icon16.png");
list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

View file

@ -1,99 +0,0 @@
diff -urN Pale-Moon-26.4.1_Release/browser/branding/unofficial/pref/firefox-branding.js Pale-Moon-26.4.1_Release-patched/browser/branding/unofficial/pref/firefox-branding.js
--- Pale-Moon-26.4.1_Release/browser/branding/unofficial/pref/firefox-branding.js 2016-09-07 21:37:13.000000000 +1000
+++ Pale-Moon-26.4.1_Release-patched/browser/branding/unofficial/pref/firefox-branding.js 2016-09-16 16:55:58.847912091 +1000
@@ -63,11 +63,20 @@
pref("general.useragent.override.outlook.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 (Pale Moon)");
pref("general.useragent.override.web.de","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 (Pale Moon)");
pref("general.useragent.override.aol.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 (Pale Moon)");
+#ifndef XP_UNIX
pref("general.useragent.override.google.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
-pref("general.useragent.override.googlevideos.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.9) Gecko/20100101 Goanna/2.0 Firefox/31.9 PaleMoon/26.0");
-pref("general.useragent.override.fonts.googleapis.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.9) Gecko/20100101 Goanna/2.0 Firefox/31.9 PaleMoon/26.0");
-pref("general.useragent.override.gstatic.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.9) Gecko/20100101 Goanna/2.0 Firefox/31.9 PaleMoon/26.0");
-pref("general.useragent.override.youtube.com","Mozilla/5.0 (Windows NT 5.1; rv:42.0) Gecko/20100101 Firefox/42.0 PaleMoon/26.0");
+pref("general.useragent.override.google.com.ua","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.by","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.de","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.es","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.fr","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.it","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.pl","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.ru","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.googlevideos.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.fonts.googleapis.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.gstatic.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.youtube.com","Mozilla/5.0 (Windows NT 5.1; rv:45.9) Gecko/20100101 Firefox/45.9 PaleMoon/26.0");
pref("general.useragent.override.netflix.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/31.9");
pref("general.useragent.override.calendar.yahoo.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 (Pale Moon)");
@@ -78,6 +87,7 @@
pref("general.useragent.override.chase.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.9) Gecko/20100101 Firefox/31.9");
// Citi requires native mode. Or it blocks.. "too old firefox"
pref("general.useragent.override.citi.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Goanna/20160101 PaleMoon/26.0");
+pref("general.useragent.override.consultant.ru","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.9) Gecko/20100101 Firefox/38.9 (Pale Moon)");
pref("general.useragent.override.base.consultant.ru","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.9) Gecko/20100101 Firefox/38.9 (Pale Moon)");
// Yuku fora don't like the Goanna slice (result: broken mobile site)
pref("general.useragent.override.yuku.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.9) Gecko/20100101 Firefox/38.9 PaleMoon/26.0");
@@ -92,6 +102,62 @@
// The following domains don't like the Goanna slice
pref("general.useragent.override.hitbox.tv","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.9) Gecko/20100101 Firefox/31.9");
+#else
+pref("general.useragent.override.google.com","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.com.ua","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.by","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.de","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.es","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.fr","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.it","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.pl","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.google.ru","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.googlevideos.com","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.fonts.googleapis.com","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.gstatic.com","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Goanna/2.0 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.youtube.com","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 PaleMoon/26.0");
+pref("general.useragent.override.netflix.com","Mozilla/5.0 (Linux; X11; rv:26.0) Gecko/20100101 Firefox/31.9");
+pref("general.useragent.override.calendar.yahoo.com","Mozilla/5.0 (Linux; X11; rv:45.0) Gecko/20100101 Firefox/45.0 (Pale Moon)");
+
+// UA-Sniffing domains below are pending responses from their operators - temp workaround
+pref("general.useragent.override.facebook.com","Mozilla/5.0 (Linux; X11; rv:38.9) Gecko/20100101 Goanna/2.0 Firefox/38.9 PaleMoon/26.0");
+pref("general.useragent.override.fbcdn.com","Mozilla/5.0 (Linux; X11; rv:38.9) Gecko/20100101 Goanna/2.0 Firefox/38.9 PaleMoon/26.0");
+pref("general.useragent.override.fbcdn.net","Mozilla/5.0 (Linux; X11; rv:38.9) Gecko/20100101 Goanna/2.0 Firefox/38.9 PaleMoon/26.0");
+pref("general.useragent.override.chase.com","Mozilla/5.0 (Linux; X11; rv:31.9) Gecko/20100101 Firefox/31.9");
+// Citi requires native mode. Or it blocks.. "too old firefox"
+pref("general.useragent.override.citi.com","Mozilla/5.0 (Linux; X11; rv:2.0) Goanna/20160101 PaleMoon/26.0");
+pref("general.useragent.override.consultant.ru","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.base.consultant.ru","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+// Yuku fora don't like the Goanna slice (result: broken mobile site)
+pref("general.useragent.override.yuku.com","Mozilla/5.0 (Linux; X11; rv:38.9) Gecko/20100101 Firefox/38.9 PaleMoon/26.0");
+
+// UA-Sniffing domains below have indicated no interest in supporting Pale Moon (BOO!)
+pref("general.useragent.override.humblebundle.com","Mozilla/5.0 (Linux; X11; rv:33.0) Gecko/20100101 Firefox/33.0 (Pale Moon)");
+pref("general.useragent.override.privat24.ua","Mozilla/5.0 (Linux; X11; rv:28.0) Gecko/20100101 Firefox/28.0");
+pref("general.useragent.override.icloud.com","Mozilla/5.0 (Linux; X11; rv:38.0) Gecko/20100101 Firefox/38.0 (Pale Moon)");
+
+// UA-sniffing domains that are "app/vendor-specific" and don't like Pale Moon
+pref("general.useragent.override.web.whatsapp.com","Mozilla/5.0 (Linux; X11; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36");
+
+// The following domains don't like the Goanna slice
+pref("general.useragent.override.hitbox.tv","Mozilla/5.0 (Linux; X11; rv:31.9) Gecko/20100101 Firefox/31.9");
+#endif
+
+#ifndef XP_UNIX
+pref("general.useragent.override.avito.ru","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.citilink.ru","Mozilla/5.0 Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.superjob.ru","Mozilla/5.0 Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.kibergrad.fm","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.vk.com","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+#else
+// Mozilla/5.0 (Linux; X11; rv:38.9) Gecko/20100101 Firefox/38.9 (Pale Moon)
+pref("general.useragent.override.avito.ru","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.citilink.ru","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.superjob.ru","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.kibergrad.fm","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+pref("general.useragent.override.vk.com","Mozilla/5.0 (Linux; X11; rv:45.9) Gecko/20100101 Firefox/45.9 (Pale Moon)");
+#endif
+
// Enable Firefox compatibility mode globally?
pref("general.useragent.compatMode.firefox", false);

View file

@ -0,0 +1,31 @@
diff -urN Pale-Moon-27.0.2_Release/browser/app/profile/firefox.js Pale-Moon-27.0.2_Release-patched/browser/app/profile/firefox.js
--- Pale-Moon-27.0.2_Release/browser/app/profile/firefox.js 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-patched/browser/app/profile/firefox.js 2016-12-03 00:47:23.948786628 +1000
@@ -62,7 +62,8 @@
// Disable add-ons that are not installed by the user in all scopes by default.
// See the SCOPE constants in AddonManager.jsm for values to use here.
-pref("extensions.autoDisableScopes", 15);
+pref("extensions.autoDisableScopes", 0);
+pref("extensions.showMismatchUI", false);
// Dictionary download preference
pref("browser.dictionaries.download.url", "https://addons.mozilla.org/%LOCALE%/firefox/dictionaries/");
diff -urN Pale-Moon-27.0.2_Release/toolkit/mozapps/extensions/internal/XPIProvider.jsm Pale-Moon-27.0.2_Release-patched/toolkit/mozapps/extensions/internal/XPIProvider.jsm
--- Pale-Moon-27.0.2_Release/toolkit/mozapps/extensions/internal/XPIProvider.jsm 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-patched/toolkit/mozapps/extensions/internal/XPIProvider.jsm 2016-12-03 00:46:50.685789008 +1000
@@ -2114,11 +2114,9 @@
AddonManagerPrivate.markProviderSafe(this);
- if (aAppChanged === undefined) {
- // For new profiles we will never need to show the add-on selection UI
- Services.prefs.setBoolPref(PREF_SHOWN_SELECTION_UI, true);
- }
- else if (aAppChanged && !this.allAppGlobal &&
+ // For all profiles we will never need to show the add-on selection UI
+ Services.prefs.setBoolPref(PREF_SHOWN_SELECTION_UI, true);
+ if (aAppChanged && !this.allAppGlobal &&
Preferences.get(PREF_EM_SHOW_MISMATCH_UI, true)) {
if (!Preferences.get(PREF_SHOWN_SELECTION_UI, false)) {
// Flip a flag to indicate that we interrupted startup with an interactive prompt

View file

@ -1,7 +1,7 @@
diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moon-26.3.1_Release-patched/browser/base/content/browser-kde.xul
--- Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/base/content/browser-kde.xul 2016-06-27 21:29:53.965744116 +1000
@@ -0,0 +1,1058 @@
diff -urN Pale-Moon-27.0.2_Release/browser/base/content/browser-kde.xul Pale-Moon-27.0.2_Release-FF/browser/base/content/browser-kde.xul
--- Pale-Moon-27.0.2_Release/browser/base/content/browser-kde.xul 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/base/content/browser-kde.xul 2016-12-03 04:46:04.008761790 +1000
@@ -0,0 +1,1056 @@
+#filter substitution
+<?xml version="1.0"?>
+# -*- Mode: HTML -*-
@ -17,7 +17,7 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moo
+
+<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
+#ifdef MOZ_DEVTOOLS
+<?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?>
+<?xml-stylesheet href="chrome://global/skin/devtools/common.css" type="text/css"?>
+#endif
+<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
+
@ -29,8 +29,6 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moo
+<?xul-overlay href="chrome://browser/content/padlock.xul"?>
+# Improve bookmark menu dragging
+<?xul-overlay href="chrome://browser/content/browser-menudragging.xul"?>
+# Promises injector
+<?xul-overlay href="chrome://browser/content/promises.xul"?>
+
+
+# All DTD information is stored in a separate file so that it can be shared by
@ -42,19 +40,19 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moo
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();"
+ title="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
+ title_normal="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
+ title="&mainWindow.title;"
+ title_normal="&mainWindow.title;"
+#ifdef XP_MACOSX
+ title_privatebrowsing="&mainWindow.title;@PRE_RELEASE_SUFFIX@&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
+ titledefault="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
+ title_privatebrowsing="&mainWindow.title;&mainWindow.titlemodifiermenuseparator;&mainWindow.titlePrivateBrowsingSuffix;"
+ titledefault="&mainWindow.title;"
+ titlemodifier=""
+ titlemodifier_normal=""
+ titlemodifier_privatebrowsing="&mainWindow.titlePrivateBrowsingSuffix;"
+#else
+ title_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
+ titlemodifier="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
+ titlemodifier_normal="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@"
+ titlemodifier_privatebrowsing="&mainWindow.titlemodifier;@PRE_RELEASE_SUFFIX@ &mainWindow.titlePrivateBrowsingSuffix;"
+ title_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
+ titlemodifier="&mainWindow.titlemodifier;"
+ titlemodifier_normal="&mainWindow.titlemodifier;"
+ titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
+#endif
+ titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
+ lightweightthemes="true"
@ -164,7 +162,7 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moo
+ </row>
+ <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
+ <hbox id="editBookmarkPanelBottomButtons" pack="end">
+#ifdef XP_UNIX
+#ifndef XP_UNIX
+ <button id="editBookmarkPanelDoneButton"
+ class="editBookmarkPanelBottomButton"
+ label="&editBookmark.done.label;"
@ -565,7 +563,7 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moo
+#ifndef XP_MACOSX
+ class="menuitem-iconic"
+#endif
+ label="&palemoon.menu.allBookmarks.label;"
+ label="&organizeBookmarks.label;"
+ command="Browser:ShowAllBookmarks"
+ key="manBookmarkKb"/>
+ <menuseparator/>
@ -1003,7 +1001,7 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moo
+#endif
+
+ <toolbar id="addon-bar"
+ toolbarname="&palemoon.menu.statusBar.label;" accesskey="&palemoon.menu.statusBar.accesskey;"
+ toolbarname="&statusBar.label;" accesskey="&statusBar.accesskey;"
+ collapsed="true"
+ class="toolbar-primary chromeclass-toolbar"
+ context="toolbar-context-menu" toolboxid="navigator-toolbox"
@ -1060,11 +1058,11 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/content/browser-kde.xul Pale-Moo
+</deck>
+
+</window>
diff -urN Pale-Moon-26.3.1_Release/browser/base/jar.mn Pale-Moon-26.3.1_Release-patched/browser/base/jar.mn
--- Pale-Moon-26.3.1_Release/browser/base/jar.mn 2016-06-24 00:37:32.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/base/jar.mn 2016-06-27 20:04:41.596109991 +1000
diff -urN Pale-Moon-27.0.2_Release/browser/base/jar.mn Pale-Moon-27.0.2_Release-FF/browser/base/jar.mn
--- Pale-Moon-27.0.2_Release/browser/base/jar.mn 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/base/jar.mn 2016-12-03 04:46:04.035761788 +1000
@@ -55,6 +55,8 @@
* content/browser/browser-title.css (content/browser-title.css)
content/browser/browser-title.css (content/browser-title.css)
* content/browser/browser.js (content/browser.js)
* content/browser/browser.xul (content/browser.xul)
+* content/browser/browser-kde.xul (content/browser-kde.xul)
@ -1072,9 +1070,9 @@ diff -urN Pale-Moon-26.3.1_Release/browser/base/jar.mn Pale-Moon-26.3.1_Release-
* content/browser/browser-tabPreviews.xml (content/browser-tabPreviews.xml)
content/browser/content.js (content/content.js)
content/browser/imagedocument.png (content/imagedocument.png)
diff -urN Pale-Moon-26.3.1_Release/browser/components/build/nsModule.cpp Pale-Moon-26.3.1_Release-patched/browser/components/build/nsModule.cpp
--- Pale-Moon-26.3.1_Release/browser/components/build/nsModule.cpp 2016-06-24 00:37:32.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/build/nsModule.cpp 2016-06-27 19:56:07.827146759 +1000
diff -urN Pale-Moon-27.0.2_Release/browser/components/build/nsModule.cpp Pale-Moon-27.0.2_Release-FF/browser/components/build/nsModule.cpp
--- Pale-Moon-27.0.2_Release/browser/components/build/nsModule.cpp 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/build/nsModule.cpp 2016-12-03 04:46:04.083761784 +1000
@@ -13,7 +13,7 @@
#elif defined(XP_MACOSX)
#include "nsMacShellService.h"
@ -1095,17 +1093,17 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/build/nsModule.cpp Pale-Mo
#if defined(XP_WIN)
@@ -65,7 +63,7 @@
#if defined(XP_WIN)
{ &kNS_SHELLSERVICE_CID, false, NULL, nsWindowsShellServiceConstructor },
{ &kNS_SHELLSERVICE_CID, false, nullptr, nsWindowsShellServiceConstructor },
#elif defined(MOZ_WIDGET_GTK)
- { &kNS_SHELLSERVICE_CID, false, NULL, nsGNOMEShellServiceConstructor },
+ { &kNS_SHELLSERVICE_CID, false, NULL, nsUnixShellServiceConstructor },
- { &kNS_SHELLSERVICE_CID, false, nullptr, nsGNOMEShellServiceConstructor },
+ { &kNS_SHELLSERVICE_CID, false, nullptr, nsUnixShellServiceConstructor },
#endif
{ &kNS_FEEDSNIFFER_CID, false, NULL, nsFeedSnifferConstructor },
{ &kNS_BROWSER_ABOUT_REDIRECTOR_CID, false, NULL, AboutRedirector::Create },
diff -urN Pale-Moon-26.3.1_Release/browser/components/preferences/advanced.js Pale-Moon-26.3.1_Release-patched/browser/components/preferences/advanced.js
--- Pale-Moon-26.3.1_Release/browser/components/preferences/advanced.js 2016-06-24 00:37:32.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/preferences/advanced.js 2016-06-27 19:56:07.827146759 +1000
@@ -28,6 +28,12 @@
{ &kNS_FEEDSNIFFER_CID, false, nullptr, nsFeedSnifferConstructor },
{ &kNS_BROWSER_ABOUT_REDIRECTOR_CID, false, nullptr, AboutRedirector::Create },
diff -urN Pale-Moon-27.0.2_Release/browser/components/preferences/advanced.js Pale-Moon-27.0.2_Release-FF/browser/components/preferences/advanced.js
--- Pale-Moon-27.0.2_Release/browser/components/preferences/advanced.js 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/preferences/advanced.js 2016-12-03 04:46:04.139761780 +1000
@@ -29,6 +29,12 @@
advancedPrefs.selectedIndex = preference.value;
}
@ -1118,10 +1116,10 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/preferences/advanced.js Pa
#ifdef HAVE_SHELL_SERVICE
this.updateSetDefaultBrowser();
#ifdef XP_WIN
@@ -666,6 +672,17 @@
if (!shellSvc)
@@ -728,6 +734,17 @@
Cu.reportError(ex);
return;
shellSvc.setDefaultBrowser(true, false);
}
+ if (kde_session == 1) {
+ var shellObj = Components.classes["@mozilla.org/file/local;1"]
+ .createInstance(Components.interfaces.nsILocalFile);
@ -1136,10 +1134,10 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/preferences/advanced.js Pa
let selectedIndex =
shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
document.getElementById("setDefaultPane").selectedIndex = selectedIndex;
diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/Makefile.in Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/Makefile.in
--- Pale-Moon-26.3.1_Release/browser/components/shell/src/Makefile.in 2016-06-24 00:37:32.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/Makefile.in 2016-06-27 19:56:07.827146759 +1000
@@ -22,5 +22,7 @@
diff -urN Pale-Moon-27.0.2_Release/browser/components/shell/Makefile.in Pale-Moon-27.0.2_Release-FF/browser/components/shell/Makefile.in
--- Pale-Moon-27.0.2_Release/browser/components/shell/Makefile.in 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/shell/Makefile.in 2016-12-03 04:46:04.146761780 +1000
@@ -7,5 +7,7 @@
CXXFLAGS += $(TK_CFLAGS)
@ -1147,32 +1145,33 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/Makefile.in Pale
+
clobber::
rm -f $(DIST)/lib/$(LIBRARY_NAME).lib
diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/moz.build Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/moz.build
--- Pale-Moon-26.3.1_Release/browser/components/shell/src/moz.build 2016-06-24 00:37:32.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/moz.build 2016-06-27 19:56:07.828146759 +1000
@@ -16,7 +16,9 @@
]
diff -urN Pale-Moon-27.0.2_Release/browser/components/shell/moz.build Pale-Moon-27.0.2_Release-FF/browser/components/shell/moz.build
--- Pale-Moon-27.0.2_Release/browser/components/shell/moz.build 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/shell/moz.build 2016-12-03 04:46:04.147761780 +1000
@@ -32,6 +32,8 @@
elif CONFIG['MOZ_WIDGET_GTK']:
CPP_SOURCES += [
+ 'nsUnixShellService.cpp',
SOURCES += [
'nsGNOMEShellService.cpp',
+ 'nsKDEShellService.cpp'
+ 'nsKDEShellService.cpp',
+ 'nsUnixShellService.cpp',
]
if CPP_SOURCES:
diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellService.cpp Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsKDEShellService.cpp
--- Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellService.cpp 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsKDEShellService.cpp 2016-06-27 19:56:07.828146759 +1000
@@ -0,0 +1,234 @@
if SOURCES:
diff -urN Pale-Moon-27.0.2_Release/browser/components/shell/nsKDEShellService.cpp Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsKDEShellService.cpp
--- Pale-Moon-27.0.2_Release/browser/components/shell/nsKDEShellService.cpp 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsKDEShellService.cpp 2016-12-03 13:50:57.000000000 +1000
@@ -0,0 +1,238 @@
+/* -*- 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
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#include "mozilla/ArrayUtils.h"
+
+#include "nsCOMPtr.h"
+#include "nsKDEShellService.h"
+#include "nsShellService.h"
+#include "nsKDEUtils.h"
+#include "nsCOMPtr.h"
+#include "nsIPrefService.h"
+#include "nsIProcess.h"
+#include "nsIFile.h"
@ -1182,21 +1181,23 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+#include "nsISupportsPrimitives.h"
+#include "nsArrayUtils.h"
+
+using namespace mozilla;
+
+nsresult
+nsKDEShellService::Init()
+ {
+{
+ if( !nsKDEUtils::kdeSupport())
+ return NS_ERROR_NOT_AVAILABLE;
+ return NS_OK;
+ }
+}
+
+NS_IMPL_ISUPPORTS1(nsKDEShellService, nsIShellService)
+NS_IMPL_ISUPPORTS(nsKDEShellService, nsIShellService)
+
+NS_IMETHODIMP
+nsKDEShellService::IsDefaultBrowser(bool aStartupCheck,
+ bool aForAllTypes,
+ bool* aIsDefaultBrowser)
+ {
+{
+ *aIsDefaultBrowser = false;
+ if (aStartupCheck)
+ mCheckedThisSession = true;
@ -1215,12 +1216,12 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+ if( nsKDEUtils::command( command ))
+ *aIsDefaultBrowser = true;
+ return NS_OK;
+ }
+}
+
+NS_IMETHODIMP
+nsKDEShellService::SetDefaultBrowser(bool aClaimAllTypes,
+ bool aForAllUsers)
+ {
+{
+ nsCOMPtr<nsIMutableArray> command = do_CreateInstance( NS_ARRAY_CONTRACTID );
+ if (!command)
+ return NS_ERROR_FAILURE;
@ -1237,7 +1238,7 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+ command->AppendElement( paramstr, false );
+
+ return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
+ }
+}
+
+NS_IMETHODIMP
+nsKDEShellService::GetShouldCheckDefaultBrowser(bool* aResult)
@ -1284,25 +1285,25 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+NS_IMETHODIMP
+nsKDEShellService::SetDesktopBackground(nsIDOMElement* aElement,
+ PRInt32 aPosition)
+ {
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+ }
+}
+
+NS_IMETHODIMP
+nsKDEShellService::GetDesktopBackgroundColor(PRUint32 *aColor)
+ {
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+ }
+}
+
+NS_IMETHODIMP
+nsKDEShellService::SetDesktopBackgroundColor(PRUint32 aColor)
+ {
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+ }
+}
+
+NS_IMETHODIMP
+nsKDEShellService::OpenApplication(PRInt32 aApplication)
+ {
+{
+ nsCOMPtr<nsIMutableArray> command = do_CreateInstance( NS_ARRAY_CONTRACTID );
+ if (!command)
+ return NS_ERROR_FAILURE;
@ -1320,11 +1321,11 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+
+ command->AppendElement( str, false );
+ return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
+ }
+}
+
+NS_IMETHODIMP
+nsKDEShellService::OpenApplicationWithURI(nsIFile* aApplication, const nsACString& aURI)
+ {
+{
+ nsCOMPtr<nsIMutableArray> command = do_CreateInstance( NS_ARRAY_CONTRACTID );
+ if (!command)
+ return NS_ERROR_FAILURE;
@ -1345,11 +1346,11 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+ uristr->SetData( aURI );
+ command->AppendElement( uristr, false );
+ return nsKDEUtils::command( command ) ? NS_OK : NS_ERROR_FAILURE;
+ }
+}
+
+NS_IMETHODIMP
+nsKDEShellService::GetDefaultFeedReader(nsIFile** _retval)
+ {
+{
+ *_retval = nullptr;
+
+ nsCOMPtr<nsIMutableArray> command = do_CreateInstance( NS_ARRAY_CONTRACTID );
@ -1397,11 +1398,11 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+
+ NS_ADDREF(*_retval = defaultReader);
+ return NS_OK;
+ }
diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellService.h Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsKDEShellService.h
--- Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellService.h 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsKDEShellService.h 2016-06-27 19:56:07.828146759 +1000
@@ -0,0 +1,59 @@
+}
diff -urN Pale-Moon-27.0.2_Release/browser/components/shell/nsKDEShellService.h Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsKDEShellService.h
--- Pale-Moon-27.0.2_Release/browser/components/shell/nsKDEShellService.h 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsKDEShellService.h 2016-12-03 13:50:57.000000000 +1000
@@ -0,0 +1,60 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
@ -1443,11 +1444,12 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+
+#include "nsIShellService.h"
+#include "nsStringAPI.h"
+#include "mozilla/Attributes.h"
+
+class nsKDEShellService : public nsIShellService
+class nsKDEShellService final : public nsIShellService
+{
+public:
+ nsKDEShellService() : mCheckedThisSession(PR_FALSE) { }
+ nsKDEShellService() : mCheckedThisSession(false) { }
+
+ NS_DECL_ISUPPORTS
+ NS_DECL_NSISHELLSERVICE
@ -1457,13 +1459,13 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsKDEShellServic
+private:
+ ~nsKDEShellService() {}
+
+ PRPackedBool mCheckedThisSession;
+ bool mCheckedThisSession;
+};
+
+#endif // nskdeshellservice_h____
diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsUnixShellService.cpp Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsUnixShellService.cpp
--- Pale-Moon-26.3.1_Release/browser/components/shell/src/nsUnixShellService.cpp 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsUnixShellService.cpp 2016-06-27 19:56:07.828146759 +1000
diff -urN Pale-Moon-27.0.2_Release/browser/components/shell/nsUnixShellService.cpp Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsUnixShellService.cpp
--- Pale-Moon-27.0.2_Release/browser/components/shell/nsUnixShellService.cpp 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsUnixShellService.cpp 2016-12-03 13:50:57.000000000 +1000
@@ -0,0 +1,52 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* ***** BEGIN LICENSE BLOCK *****
@ -1517,9 +1519,9 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsUnixShellServi
+ return nsKDEShellServiceConstructor( aOuter, aIID, aResult );
+ return nsGNOMEShellServiceConstructor( aOuter, aIID, aResult );
+}
diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsUnixShellService.h Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsUnixShellService.h
--- Pale-Moon-26.3.1_Release/browser/components/shell/src/nsUnixShellService.h 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/components/shell/src/nsUnixShellService.h 2016-06-27 19:56:07.828146759 +1000
diff -urN Pale-Moon-27.0.2_Release/browser/components/shell/nsUnixShellService.h Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsUnixShellService.h
--- Pale-Moon-27.0.2_Release/browser/components/shell/nsUnixShellService.h 1970-01-01 10:00:00.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/components/shell/nsUnixShellService.h 2016-12-03 13:50:57.000000000 +1000
@@ -0,0 +1,45 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* ***** BEGIN LICENSE BLOCK *****
@ -1566,18 +1568,18 @@ diff -urN Pale-Moon-26.3.1_Release/browser/components/shell/src/nsUnixShellServi
+nsUnixShellServiceConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult);
+
+#endif // nsunixshellservice_h____
diff -urN Pale-Moon-26.3.1_Release/browser/installer/package-manifest.in Pale-Moon-26.3.1_Release-patched/browser/installer/package-manifest.in
--- Pale-Moon-26.3.1_Release/browser/installer/package-manifest.in 2016-06-24 00:37:32.000000000 +1000
+++ Pale-Moon-26.3.1_Release-patched/browser/installer/package-manifest.in 2016-06-27 19:56:07.828146759 +1000
@@ -585,9 +585,11 @@
diff -urN Pale-Moon-27.0.2_Release/browser/installer/package-manifest.in Pale-Moon-27.0.2_Release-FF/browser/installer/package-manifest.in
--- Pale-Moon-27.0.2_Release/browser/installer/package-manifest.in 2016-12-02 03:57:12.000000000 +1000
+++ Pale-Moon-27.0.2_Release-FF/browser/installer/package-manifest.in 2016-12-03 04:46:04.165761778 +1000
@@ -689,9 +689,11 @@
; Technically this is an app pref file, but we are keeping it in the original
; gre location for now.
@BINPATH@/defaults/pref/channel-prefs.js
+@BINPATH@/defaults/pref/kde.js
@RESPATH@/defaults/pref/channel-prefs.js
+@RESPATH@/defaults/pref/kde.js
#else
; For Fx-on-xr, channel-prefs lives with the app preferences. (Bug 762588)
@BINPATH@/@PREF_DIR@/channel-prefs.js
+@BINPATH@/@PREF_DIR@/kde.js
@RESPATH@/@PREF_DIR@/channel-prefs.js
+@RESPATH@/@PREF_DIR@/kde.js
#endif
; Services (gre) prefs

View file

@ -0,0 +1,39 @@
diff -Naur Pale-Moon-27.1.0_Release.orig/browser/branding/shared/pref/uaoverrides.inc Pale-Moon-27.1.0_Release/browser/branding/shared/pref/uaoverrides.inc
--- Pale-Moon-27.1.0_Release.orig/browser/branding/shared/pref/uaoverrides.inc 2017-02-10 20:36:47.077980230 +0300
+++ Pale-Moon-27.1.0_Release/browser/branding/shared/pref/uaoverrides.inc 2017-02-10 20:36:57.191979200 +0300
@@ -30,6 +30,14 @@
pref("@GUAO_PREF@.aol.com","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
pref("@GUAO_PREF@.calendar.yahoo.com","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
pref("@GUAO_PREF@.google.com","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.com.ua","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.by","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.de","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.es","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.fr","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.it","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.pl","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.google.ru","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.googlevideos.com","Mozilla/5.0 (@OS_SLICE@ rv:38.9) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/38.9 @PM_SLICE@");
pref("@GUAO_PREF@.gstatic.com","Mozilla/5.0 (@OS_SLICE@ rv:31.9) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/31.9 @PM_SLICE@");
pref("@GUAO_PREF@.youtube.com","Mozilla/5.0 (@OS_SLICE@ rv:42.0) @GK_SLICE@ Firefox/42.0 @PM_SLICE@");
@@ -60,12 +68,20 @@
// Citi requires native mode. Or it blocks.. "too old firefox"
pref("@GUAO_PREF@.citi.com","Mozilla/5.0 (@OS_SLICE@ rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+// Consultant doesn't work
+pref("@GUAO_PREF@.consultant.ru","Mozilla/5.0 (@OS_SLICE@ rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+
// UA-Sniffing domains below have indicated no interest in supporting Pale Moon (BOO!)
pref("@GUAO_PREF@.humblebundle.com","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
pref("@GUAO_PREF@.privat24.ua","Mozilla/5.0 (@OS_SLICE@ rv:38.0) @GK_SLICE@ Firefox/38.0");
// UA-sniffing domains that are "app/vendor-specific" and do not like Pale Moon
pref("@GUAO_PREF@.web.whatsapp.com","Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36");
+pref("@GUAO_PREF@.avito.ru","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.citilink.ru","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.superjob.ru","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.kibergrad.fm","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.vk.com","Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
// The following domains do not like the Goanna slice
pref("@GUAO_PREF@.hitbox.tv","Mozilla/5.0 (@OS_SLICE@; rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");