summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-06-24 18:31:16 +0200
committerRemi Collet <fedora@famillecollet.com>2010-06-24 18:31:16 +0200
commitab690733cde666d5264bedadd09138e5f9edddff (patch)
tree108d73204602116e4f2a21fad75f16143f5bb234
parent1633d4eb4f96c5832ac3577294ff02bdbc9f163d (diff)
firefox: latest patches from rawhide
-rw-r--r--firefox-default.patch91
-rw-r--r--firefox-disable-checkupdates.patch12
-rw-r--r--firefox.spec11
3 files changed, 113 insertions, 1 deletions
diff --git a/firefox-default.patch b/firefox-default.patch
new file mode 100644
index 0000000..7619fce
--- /dev/null
+++ b/firefox-default.patch
@@ -0,0 +1,91 @@
+diff -up firefox-3.6.4/mozilla-1.9.2/browser/components/preferences/advanced.xul.default firefox-3.6.4/mozilla-1.9.2/browser/components/preferences/advanced.xul
+--- firefox-3.6.4/mozilla-1.9.2/browser/components/preferences/advanced.xul.default 2010-06-11 22:40:51.000000000 +0200
++++ firefox-3.6.4/mozilla-1.9.2/browser/components/preferences/advanced.xul 2010-06-24 11:42:36.000000000 +0200
+@@ -185,10 +185,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;"
+@@ -198,6 +199,7 @@
+ oncommand="gAdvancedPane.checkNow()"
+ preference="pref.general.disable_button.default_browser"/>
+ </hbox>
++#endif
+ #ifdef MOZ_CRASHREPORTER
+ <checkbox id="submitCrashesBox" flex="1"
+ oncommand="gAdvancedPane.updateSubmitCrashes();"
+@@ -205,6 +207,7 @@
+ #endif
+ </groupbox>
+ #endif
++#endif
+ </tabpanel>
+
+ <!-- Network -->
+diff -up firefox-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.cpp.default firefox-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.cpp
+--- firefox-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.cpp.default 2010-06-11 22:40:51.000000000 +0200
++++ firefox-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.cpp 2010-06-24 11:42:36.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
+@@ -216,8 +210,8 @@ nsGNOMEShellService::SetDefaultBrowser(P
+ nsCOMPtr<nsIGConfService> gconf = do_GetService(NS_GCONFSERVICE_CONTRACTID);
+
+ nsCAutoString schemeList;
+- 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-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.h.default firefox-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.h
+--- firefox-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.h.default 2010-06-11 22:40:51.000000000 +0200
++++ firefox-3.6.4/mozilla-1.9.2/browser/components/shell/src/nsGNOMEShellService.h 2010-06-24 11:42:36.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
diff --git a/firefox-disable-checkupdates.patch b/firefox-disable-checkupdates.patch
new file mode 100644
index 0000000..e3b8c97
--- /dev/null
+++ b/firefox-disable-checkupdates.patch
@@ -0,0 +1,12 @@
+diff -up mozilla-1.9.2/browser/base/content/utilityOverlay.js.checkForUpdates mozilla-1.9.2/browser/base/content/utilityOverlay.js
+--- mozilla-1.9.2/browser/base/content/utilityOverlay.js.checkForUpdates 2010-06-13 15:36:16.617677299 -0700
++++ mozilla-1.9.2/browser/base/content/utilityOverlay.js 2010-06-13 15:39:54.485387418 -0700
+@@ -510,7 +510,7 @@ function buildHelpMenu()
+ // Disable the UI if the update enabled pref has been locked by the
+ // administrator or if we cannot update for some other reason
+ var checkForUpdates = document.getElementById("checkForUpdates");
+- var canCheckForUpdates = updates.canCheckForUpdates;
++ var canCheckForUpdates = updates.canCheckForUpdates && updates.canApplyUpdates;
+ checkForUpdates.setAttribute("disabled", !canCheckForUpdates);
+ if (!canCheckForUpdates)
+ return;
diff --git a/firefox.spec b/firefox.spec
index 366ec8e..226e53e 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -54,7 +54,7 @@ Source100: find-external-requires
Source200: firefox-bookmarks.html
-# build patches
+# build patches from xulrunner
Patch0: firefox-version.patch
Patch1: mozilla-build.patch
Patch3: mozilla-jemalloc.patch
@@ -65,6 +65,11 @@ Patch8: mozilla-plugin.patch
Patch9: mozilla-build-sbrk.patch
Patch11: nspr-build.patch
+# build patches from firefox
+Patch30: firefox-disable-checkupdates.patch
+Patch31: firefox-default.patch
+
+
# Fedora specific patches
Patch20: mozilla-192-pkgconfig.patch
@@ -180,6 +185,9 @@ sed -e 's/__RPM_VERSION_INTERNAL__/%{internal_version}/' %{P:%%PATCH0} \
%patch20 -p1 -b .pk
+%patch30 -p1 -b .checkupdates
+%patch31 -p2 -b .default
+
%patch100 -p1 -b .ps-pdf-simplify-operators
%{__rm} -f .mozconfig
@@ -517,6 +525,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Wed Jun 23 2010 Remi Collet <rpms@famillecollet.com> - 3.6.4-1
- update to Firefox 3.6.4 finale
+- sync with patches from rawhide / F-13
* Thu Jun 10 2010 Remi Collet <rpms@famillecollet.com> - 3.6.4-0.4.build6
- F12 build