From a7b507dd7603d06d5bc6d25ce4691374184927a5ddbee9ab6bc7e3e6459fc4e2 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Mon, 12 Dec 2016 18:36:34 +0000 Subject: [PATCH] Accepting request 445492 from home:cgrobertson:branches:mozilla:Factory - added patch mozilla-aarch64-startup-crash.patch (bsc#1011922) OBS-URL: https://build.opensuse.org/request/show/445492 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=562 --- MozillaFirefox.changes | 5 +++++ MozillaFirefox.spec | 4 +++- mozilla-aarch64-startup-crash.patch | 31 +++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 mozilla-aarch64-startup-crash.patch diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 85a4b3a..0d518ab 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 9 17:57:22 UTC 2016 - cgrobertson@novell.com + +- added patch mozilla-aarch64-startup-crash.patch (bsc#1011922) + ------------------------------------------------------------------- Thu Dec 1 02:49:45 UTC 2016 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 3478c3b..602565d 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -1,7 +1,7 @@ # # spec file for package MozillaFirefox # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. # 2006-2016 Wolfgang Rosenauer # # All modifications and additions to the file contributed by third parties @@ -153,6 +153,7 @@ Patch102: firefox-no-default-ualocale.patch Patch103: firefox-branded-icons.patch # hotfix Patch150: mozilla-flex_buffer_overrun.patch +Patch200: mozilla-aarch64-startup-crash.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(post): coreutils shared-mime-info desktop-file-utils @@ -266,6 +267,7 @@ cd $RPM_BUILD_DIR/mozilla %patch102 -p1 %patch103 -p1 %patch150 -p1 +%patch200 -p1 %build # no need to add build time to binaries diff --git a/mozilla-aarch64-startup-crash.patch b/mozilla-aarch64-startup-crash.patch new file mode 100644 index 0000000..e1c1876 --- /dev/null +++ b/mozilla-aarch64-startup-crash.patch @@ -0,0 +1,31 @@ +# HG changeset patch +# Parent a5cfa3aa11a9d3391df49de6fc5a0e5232c12c10 +Bug 991344 - Rpi3: Firefox crashes after a few seconds of usage + +diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp +--- a/netwerk/base/nsIOService.cpp ++++ b/netwerk/base/nsIOService.cpp +@@ -830,17 +830,23 @@ nsIOService::NewChannelFromURIWithProxyF + consoleService->LogStringMessage(NS_LITERAL_STRING( + "Http channel implementation doesn't support nsIUploadChannel2. An extension has supplied a non-functional http protocol handler. This will break behavior and in future releases not work at all." + ).get()); + } + gHasWarnedUploadChannel2 = true; + } + } + ++#if defined(__aarch64__) ++ if (result) { ++ channel.forget(result); ++ } ++#else + channel.forget(result); ++#endif + return NS_OK; + } + + NS_IMETHODIMP + nsIOService::NewChannelFromURIWithProxyFlags2(nsIURI* aURI, + nsIURI* aProxyURI, + uint32_t aProxyFlags, + nsIDOMNode* aLoadingNode,