summaryrefslogtreecommitdiffstats
path: root/firefox4-default.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-09-08 17:27:38 +0200
committerRemi Collet <fedora@famillecollet.com>2010-09-08 17:27:38 +0200
commit54435d6221d3de6cd3c6af98be527d6ac5f2bbef (patch)
tree13aebcc7269608600198ad74ee75ba59dc306b60 /firefox4-default.patch
parente9d4e922d33d6305c213144d36adfb480411e868 (diff)
firefox4-4.0-0.8.beta5 + sync patches with rawhide
Diffstat (limited to 'firefox4-default.patch')
-rw-r--r--firefox4-default.patch91
1 files changed, 91 insertions, 0 deletions
diff --git a/firefox4-default.patch b/firefox4-default.patch
new file mode 100644
index 0000000..a6c61f1
--- /dev/null
+++ b/firefox4-default.patch
@@ -0,0 +1,91 @@
+diff -up firefox-4.0/mozilla-central/browser/components/preferences/advanced.xul.default firefox-4.0/mozilla-central/browser/components/preferences/advanced.xul
+--- firefox-4.0/mozilla-central/browser/components/preferences/advanced.xul.default 2010-08-06 03:08:58.000000000 +0200
++++ firefox-4.0/mozilla-central/browser/components/preferences/advanced.xul 2010-08-30 16:35:21.000000000 +0200
+@@ -183,10 +183,11 @@
+ </groupbox>
+
+ #ifdef HAVE_SHELL_SERVICE
++#ifdef MOZ_CRASHREPORTER
+ <!-- System Defaults -->
+ <groupbox id="systemDefaultsGroup" orient="vertical">
+ <caption label="&systemDefaults.label;"/>
+-
++#ifdef 0
+ <hbox id="checkDefaultBox" align="center" flex="1">
+ <checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
+ label="&alwaysCheckDefault.label;" accesskey="&alwaysCheckDefault.accesskey;"
+@@ -196,6 +197,7 @@
+ oncommand="gAdvancedPane.checkNow()"
+ preference="pref.general.disable_button.default_browser"/>
+ </hbox>
++#endif
+ #ifdef MOZ_CRASHREPORTER
+ <checkbox id="submitCrashesBox" flex="1"
+ oncommand="gAdvancedPane.updateSubmitCrashes();"
+@@ -203,6 +205,7 @@
+ #endif
+ </groupbox>
+ #endif
++#endif
+ </tabpanel>
+
+ <!-- Network -->
+diff -up firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.cpp.default firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.cpp
+--- firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.cpp.default 2010-08-06 03:08:59.000000000 +0200
++++ firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.cpp 2010-08-30 16:37:41.000000000 +0200
+@@ -140,27 +140,21 @@ NS_IMPL_ISUPPORTS1(nsGNOMEShellService,
+ PRBool
+ nsGNOMEShellService::KeyMatchesAppName(const char *aKeyValue) const
+ {
++ nsCAutoString appName;
+
+- gchar *commandPath;
+ if (mUseLocaleFilenames) {
+ gchar *nativePath = g_filename_from_utf8(aKeyValue, -1, NULL, NULL, NULL);
+ if (!nativePath) {
+ NS_ERROR("Error converting path to filesystem encoding");
+ return PR_FALSE;
+ }
+-
+- commandPath = g_find_program_in_path(nativePath);
++ appName.Assign(nativePath);
+ g_free(nativePath);
+ } else {
+- commandPath = g_find_program_in_path(aKeyValue);
++ appName.Assign(aKeyValue);
+ }
+-
+- if (!commandPath)
+- return PR_FALSE;
+-
+- PRBool matches = mAppPath.Equals(commandPath);
+- g_free(commandPath);
+- return matches;
++ // Compare default browser command retrieved from gconf with MOZ_APP_NAME
++ return appName.EqualsLiteral(MOZ_APP_NAME);
+ }
+
+ NS_IMETHODIMP
+@@ -215,8 +209,8 @@ nsGNOMEShellService::SetDefaultBrowser(P
+
+ nsCOMPtr<nsIGConfService> gconf = do_GetService(NS_GCONFSERVICE_CONTRACTID);
+
+- nsCAutoString appKeyValue(mAppPath);
+- appKeyValue.Append(" \"%s\"");
++ nsCAutoString appKeyValue(MOZ_APP_NAME);
++ appKeyValue.Append(" %s");
+ unsigned int i;
+
+ for (i = 0; i < NS_ARRAY_LENGTH(appProtocols); ++i) {
+diff -up firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.h.default firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.h
+--- firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.h.default 2010-08-06 03:08:59.000000000 +0200
++++ firefox-4.0/mozilla-central/browser/components/shell/src/nsGNOMEShellService.h 2010-08-30 16:35:22.000000000 +0200
+@@ -43,7 +43,7 @@
+ class nsGNOMEShellService : public nsIShellService
+ {
+ public:
+- nsGNOMEShellService() : mCheckedThisSession(PR_FALSE) { }
++ nsGNOMEShellService() : mCheckedThisSession(PR_TRUE) { }
+
+ NS_DECL_ISUPPORTS
+ NS_DECL_NSISHELLSERVICE