From cf16dc51529d2bfd7b3eea290455e1117f5c0d59 Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Mon, 6 Jul 2015 14:48:41 +0200 Subject: Added a fix for rhbz#1240259 - Firefox 39 does not open home page but restore session --- firefox.spec | 10 +++++++++- mozilla-884831.patch | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 mozilla-884831.patch diff --git a/firefox.spec b/firefox.spec index 4f8105d..c8f069f 100644 --- a/firefox.spec +++ b/firefox.spec @@ -107,7 +107,7 @@ Summary: Mozilla Firefox Web browser Name: firefox Version: 39.0 -Release: 6%{?pre_tag}%{?dist} +Release: 7%{?pre_tag}%{?dist} URL: http://www.mozilla.org/projects/firefox/ License: MPLv1.1 or GPLv2+ or LGPLv2+ Group: Applications/Internet @@ -161,6 +161,8 @@ Patch423: mozilla-1129873-apppicker.patch # Fix Skia Neon stuff on AArch64 Patch500: aarch64-fix-skia.patch +# Don't crash at end +Patch510: mozilla-884831.patch %if %{official_branding} # Required by Mozilla Corporation @@ -319,6 +321,8 @@ cd %{tarballdir} %patch500 -p1 +%patch510 -p1 -b .884831 + %if %{official_branding} # Required by Mozilla Corporation @@ -816,6 +820,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #--------------------------------------------------------------------- %changelog +* Mon Jul 06 2015 Martin Stransky - 39.0-7 +- Added a fix for rhbz#1240259 - Firefox 39 does not open + home page but "restore session" + * Thu Jul 02 2015 Martin Stransky - 39.0-6 - Added symbolic (high contrast) icon diff --git a/mozilla-884831.patch b/mozilla-884831.patch new file mode 100644 index 0000000..7cd5819 --- /dev/null +++ b/mozilla-884831.patch @@ -0,0 +1,21 @@ +diff -up mozilla-release/toolkit/xre/nsAppRunner.cpp.884831 mozilla-release/toolkit/xre/nsAppRunner.cpp +--- mozilla-release/toolkit/xre/nsAppRunner.cpp.884831 2015-07-06 14:36:32.583521873 +0200 ++++ mozilla-release/toolkit/xre/nsAppRunner.cpp 2015-07-06 14:45:19.494258581 +0200 +@@ -2770,7 +2770,7 @@ static void MOZ_gdk_display_close(GdkDis + // shut down cairo first otherwise it may crash because of dangling + // references to Display objects (see bug 469831). + if (!theme_is_qt) +- gdk_display_close(display); ++ //gdk_display_close(display); + } + + // Clean up PangoCairo's default fontmap. +@@ -2807,7 +2807,7 @@ static void MOZ_gdk_display_close(GdkDis + + if (buggyCairoShutdown) { + if (!theme_is_qt) +- gdk_display_close(display); ++ //gdk_display_close(display); + } + #else // not CLEANUP_MEMORY + // Don't do anything to avoid running into driver bugs under XCloseDisplay(). -- cgit