Initial import
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
From: Mike Hommey <glandium@debian.org>
|
||||
Date: Sat, 27 Sep 2008 17:17:39 +0200
|
||||
Subject: Don't register plugins if the MOZILLA_DISABLE_PLUGINS environment
|
||||
variable is set
|
||||
|
||||
---
|
||||
dom/plugins/base/nsPluginHost.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp
|
||||
index ad37e00..e5833d7 100644
|
||||
--- a/dom/plugins/base/nsPluginHost.cpp
|
||||
+++ b/dom/plugins/base/nsPluginHost.cpp
|
||||
@@ -290,6 +290,10 @@ nsPluginHost::nsPluginHost()
|
||||
Preferences::AddStrongObserver(this, "plugin.disable");
|
||||
}
|
||||
|
||||
+ const char *env = PR_GetEnv("MOZILLA_DISABLE_PLUGINS");
|
||||
+ if (env && env[0])
|
||||
+ mPluginsDisabled = PR_TRUE;
|
||||
+
|
||||
nsCOMPtr<nsIObserverService> obsService =
|
||||
mozilla::services::GetObserverService();
|
||||
if (obsService) {
|
||||
@@ -0,0 +1,21 @@
|
||||
From: Mike Hommey <mh@glandium.org>
|
||||
Date: Sun, 5 Feb 2017 08:41:22 +0900
|
||||
Subject: Set program name from the remoting name
|
||||
|
||||
---
|
||||
toolkit/xre/nsAppRunner.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
|
||||
index ef72d1b..4affb82 100644
|
||||
--- a/toolkit/xre/nsAppRunner.cpp
|
||||
+++ b/toolkit/xre/nsAppRunner.cpp
|
||||
@@ -3750,7 +3750,7 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
|
||||
|
||||
// Set program name to the one defined in application.ini.
|
||||
{
|
||||
- nsAutoCString program(gAppData->name);
|
||||
+ nsAutoCString program(gAppData->remotingName);
|
||||
ToLowerCase(program);
|
||||
g_set_prgname(program.get());
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
From: Mike Hommey <mh@glandium.org>
|
||||
Date: Mon, 3 Sep 2018 07:37:40 +0900
|
||||
Subject: Use remoting name for call to gdk_set_program_class
|
||||
|
||||
Closes: #907574
|
||||
---
|
||||
widget/gtk/nsAppShell.cpp | 7 +++----
|
||||
1 file changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/widget/gtk/nsAppShell.cpp b/widget/gtk/nsAppShell.cpp
|
||||
index a424664..1126bf9 100644
|
||||
--- a/widget/gtk/nsAppShell.cpp
|
||||
+++ b/widget/gtk/nsAppShell.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
# include "WakeLockListener.h"
|
||||
#endif
|
||||
#include "gfxPlatform.h"
|
||||
+#include "nsAppRunner.h"
|
||||
#include "ScreenHelperGTK.h"
|
||||
#include "HeadlessScreenHelper.h"
|
||||
#include "mozilla/widget/ScreenManager.h"
|
||||
@@ -178,10 +179,8 @@ nsresult nsAppShell::Init() {
|
||||
// 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());
|
||||
+ if (gAppData) {
|
||||
+ gdk_set_program_class(gAppData->remotingName);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
From: Mike Hommey <glandium@debian.org>
|
||||
Date: Sat, 21 Jun 2008 02:48:46 +0200
|
||||
Subject: Allow .js preference files to set locked prefs with lockPref()
|
||||
|
||||
---
|
||||
modules/libpref/parser/src/lib.rs | 23 ++++++++++++-----------
|
||||
1 file changed, 12 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/modules/libpref/parser/src/lib.rs b/modules/libpref/parser/src/lib.rs
|
||||
index a8c5b6b..aceacf3 100644
|
||||
--- a/modules/libpref/parser/src/lib.rs
|
||||
+++ b/modules/libpref/parser/src/lib.rs
|
||||
@@ -10,7 +10,7 @@
|
||||
//!
|
||||
//! <pref-file> = <pref>*
|
||||
//! <pref> = <pref-spec> "(" <pref-name> "," <pref-value> <pref-attrs> ")" ";"
|
||||
-//! <pref-spec> = "user_pref" | "pref" | "sticky_pref" // in default pref files
|
||||
+//! <pref-spec> = "user_pref" | "pref" | "sticky_pref | lockPref" // in default pref files
|
||||
//! <pref-spec> = "user_pref" // in user pref files
|
||||
//! <pref-name> = <string-literal>
|
||||
//! <pref-value> = <string-literal> | "true" | "false" | <int-value>
|
||||
@@ -169,6 +169,7 @@ enum Token {
|
||||
// Keywords
|
||||
Pref, // pref
|
||||
StickyPref, // sticky_pref
|
||||
+ LockPref, // lockPref
|
||||
UserPref, // user_pref
|
||||
True, // true
|
||||
False, // false
|
||||
@@ -291,7 +292,7 @@ struct KeywordInfo {
|
||||
token: Token,
|
||||
}
|
||||
|
||||
-const KEYWORD_INFOS: [KeywordInfo; 7] = [
|
||||
+const KEYWORD_INFOS: [KeywordInfo; 8] = [
|
||||
// These are ordered by frequency.
|
||||
KeywordInfo {
|
||||
string: b"pref",
|
||||
@@ -321,6 +322,10 @@ const KEYWORD_INFOS: [KeywordInfo; 7] = [
|
||||
string: b"sticky_pref",
|
||||
token: Token::StickyPref,
|
||||
},
|
||||
+ KeywordInfo {
|
||||
+ string: b"lock_pref",
|
||||
+ token: Token::LockPref,
|
||||
+ },
|
||||
];
|
||||
|
||||
struct Parser<'t> {
|
||||
@@ -373,14 +378,11 @@ impl<'t> Parser<'t> {
|
||||
// this will be either the first token of a new pref, or EOF.
|
||||
loop {
|
||||
// <pref-spec>
|
||||
- let (pref_value_kind, mut is_sticky) = match token {
|
||||
- Token::Pref if self.kind == PrefValueKind::Default => {
|
||||
- (PrefValueKind::Default, false)
|
||||
- }
|
||||
- Token::StickyPref if self.kind == PrefValueKind::Default => {
|
||||
- (PrefValueKind::Default, true)
|
||||
- }
|
||||
- Token::UserPref => (PrefValueKind::User, false),
|
||||
+ let (pref_value_kind, mut is_sticky, mut is_locked) = match token {
|
||||
+ Token::Pref => (PrefValueKind::Default, false, false),
|
||||
+ Token::StickyPref => (PrefValueKind::Default, true, false),
|
||||
+ Token::LockPref => (PrefValueKind::Default, false, true),
|
||||
+ Token::UserPref => (PrefValueKind::User, false, false),
|
||||
Token::SingleChar(EOF) => return !self.has_errors,
|
||||
_ => {
|
||||
token = self.error_and_recover(
|
||||
@@ -490,7 +492,6 @@ impl<'t> Parser<'t> {
|
||||
};
|
||||
|
||||
// ("," <pref-attr>)* // default pref files only
|
||||
- let mut is_locked = false;
|
||||
let mut has_attrs = false;
|
||||
if self.kind == PrefValueKind::Default {
|
||||
let ok = loop {
|
||||
@@ -0,0 +1,22 @@
|
||||
From: Christoph Goehre <chris@sigxcpu.org>
|
||||
Date: Mon, 16 Sep 2013 20:40:57 +0200
|
||||
Subject: Load-dependent-libraries-with-their-real-path-to-avo
|
||||
|
||||
---
|
||||
xpcom/glue/standalone/nsXPCOMGlue.cpp | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/xpcom/glue/standalone/nsXPCOMGlue.cpp b/xpcom/glue/standalone/nsXPCOMGlue.cpp
|
||||
index cf8e265..d1c5a85 100644
|
||||
--- a/xpcom/glue/standalone/nsXPCOMGlue.cpp
|
||||
+++ b/xpcom/glue/standalone/nsXPCOMGlue.cpp
|
||||
@@ -132,6 +132,9 @@ static bool ReadDependentCB(pathstr_t aDependentLib,
|
||||
ReadAheadLib(aDependentLib);
|
||||
}
|
||||
#endif
|
||||
+ char lib[MAXPATHLEN];
|
||||
+ if (realpath(aDependentLib, lib))
|
||||
+ aDependentLib = lib;
|
||||
LibHandleType libHandle = GetLibHandle(aDependentLib);
|
||||
if (libHandle) {
|
||||
AppendDependentLib(libHandle);
|
||||
@@ -0,0 +1,24 @@
|
||||
From: Mike Hommey <glandium@debian.org>
|
||||
Date: Sat, 22 Nov 2008 09:35:23 +0100
|
||||
Subject: Properly launch applications set in $HOME/.mailcap
|
||||
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=444440
|
||||
---
|
||||
uriloader/exthandler/unix/nsMIMEInfoUnix.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
|
||||
index 7cbefcc..c4bafef 100644
|
||||
--- a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
|
||||
+++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
|
||||
@@ -53,6 +53,10 @@ nsresult nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile* aFile) {
|
||||
if (mDefaultApplication) return nsMIMEInfoImpl::LaunchDefaultWithFile(aFile);
|
||||
|
||||
nsAutoCString nativePath;
|
||||
+/* the name of the function has changed
|
||||
+ * the old was the following:
|
||||
+ nsCAutoString nativePath;
|
||||
+ */
|
||||
aFile->GetNativePath(nativePath);
|
||||
|
||||
nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
|
||||
@@ -0,0 +1,22 @@
|
||||
From: Carsten Schoenert <c.schoenert@t-online.de>
|
||||
Date: Sat, 9 Mar 2013 20:30:54 +0100
|
||||
Subject: fix function nsMsgComposeAndSend to respect ReploToSend
|
||||
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=522450
|
||||
Closes: #565903
|
||||
---
|
||||
comm/mailnews/compose/src/nsMsgSend.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/comm/mailnews/compose/src/nsMsgSend.cpp b/comm/mailnews/compose/src/nsMsgSend.cpp
|
||||
index a1e1b40..b0525a3 100644
|
||||
--- a/comm/mailnews/compose/src/nsMsgSend.cpp
|
||||
+++ b/comm/mailnews/compose/src/nsMsgSend.cpp
|
||||
@@ -2326,6 +2326,7 @@ nsresult nsMsgComposeAndSend::InitCompositionFields(
|
||||
(aType == nsIMsgCompType::Reply ||
|
||||
aType == nsIMsgCompType::ReplyAll ||
|
||||
aType == nsIMsgCompType::ReplyToGroup ||
|
||||
+ aType == nsIMsgCompType::ReplyToList ||
|
||||
aType == nsIMsgCompType::ReplyToSender ||
|
||||
aType == nsIMsgCompType::ReplyToSenderAndGroup ||
|
||||
aType == nsIMsgCompType::ReplyWithTemplate)) {
|
||||
@@ -0,0 +1,21 @@
|
||||
From: Christoph Goehre <chris@sigxcpu.org>
|
||||
Date: Sat, 24 Mar 2012 11:54:43 +0100
|
||||
Subject: Don't auto-disable extensions in system directories
|
||||
|
||||
---
|
||||
comm/mail/app/profile/all-thunderbird.js | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/comm/mail/app/profile/all-thunderbird.js b/comm/mail/app/profile/all-thunderbird.js
|
||||
index 960700b..3467648 100644
|
||||
--- a/comm/mail/app/profile/all-thunderbird.js
|
||||
+++ b/comm/mail/app/profile/all-thunderbird.js
|
||||
@@ -137,7 +137,7 @@ pref("extensions.hotfix.certs.2.sha1Fingerprint", "39:E7:2B:7A:5B:CF:37:78:F9:5D
|
||||
// Disable add-ons installed into the shared user and shared system areas by
|
||||
// default. This does not include the application directory. See the SCOPE
|
||||
// constants in AddonManager.jsm for values to use here
|
||||
-pref("extensions.autoDisableScopes", 15);
|
||||
+pref("extensions.autoDisableScopes", 3);
|
||||
|
||||
// Enable add-ons installed and owned by the application, like the default theme.
|
||||
pref("extensions.startupScanScopes", 4);
|
||||
@@ -0,0 +1,33 @@
|
||||
From: Mike Hommey <glandium@debian.org>
|
||||
Date: Sat, 8 Dec 2007 19:24:40 +0100
|
||||
Subject: Set javascript.options.showInConsole
|
||||
|
||||
---
|
||||
modules/libpref/init/all.js | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
|
||||
index aa373d1..a211fe5 100644
|
||||
--- a/modules/libpref/init/all.js
|
||||
+++ b/modules/libpref/init/all.js
|
||||
@@ -1148,11 +1148,20 @@ pref("javascript.options.ion.offthread_compilation", true);
|
||||
// memory, but makes things like Function.prototype.toSource()
|
||||
// fail.
|
||||
pref("javascript.options.discardSystemSource", false);
|
||||
+pref("javascript.options.showInConsole", true);
|
||||
|
||||
// Many of the the following preferences tune the SpiderMonkey GC, if you
|
||||
// change the defaults here please also consider changing them in
|
||||
// js/src/jsgc.cpp. They're documented in js/src/jsapi.h.
|
||||
|
||||
+// JSGC_MAX_MALLOC_BYTES
|
||||
+// How much malloc memory can be allocated before triggering a GC, in MB.
|
||||
+// This preference limits the memory usage of javascript.
|
||||
+// If you want to change these values for your device,
|
||||
+// please find Bug 417052 comment 17 and Bug 456721
|
||||
+// Comment 32 and Bug 613551.
|
||||
+pref("javascript.options.mem.high_water_mark", 128);
|
||||
+
|
||||
// JSGC_MAX_BYTES
|
||||
// SpiderMonkey defaults to 2^32-1 bytes, but this is measured in MB so that
|
||||
// cannot be represented directly in order to show it in about:config.
|
||||
9
mail-client/thunderbird/files/debian-patchset-78/series
Normal file
9
mail-client/thunderbird/files/debian-patchset-78/series
Normal file
@@ -0,0 +1,9 @@
|
||||
fixes/Properly-launch-applications-set-in-HOME-.mailcap.patch
|
||||
debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch
|
||||
fixes/Load-dependent-libraries-with-their-real-path-to-avo.patch
|
||||
prefs/Set-javascript.options.showInConsole.patch
|
||||
prefs/Don-t-auto-disable-extensions-in-system-directories.patch
|
||||
fixes/fix-function-nsMsgComposeAndSend-to-respect-Replo.patch
|
||||
fixes/Allow-.js-preference-files-to-set-locked-prefs-with-lockP.patch
|
||||
debian-hacks/Set-program-name-from-the-remoting-name.patch
|
||||
debian-hacks/Use-remoting-name-for-call-to-gdk_set_program_class.patch
|
||||
Reference in New Issue
Block a user