mozilla-aarch64-startup-crash.patch
author zaitor@opensuse.org
Sun, 01 Oct 2017 23:13:44 +0200
branchfirefox56
changeset 996 84d25951c2db
parent 985 038d048a3940
child 1006 5ba9b67de554
permissions -rw-r--r--
- Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0), pkgconfig(gtk+-2.0), pkgconfig(gtk+-unix-print-2.0), pkgconfig(glib-2.0), pkgconfig(gobject-2.0) and pkgconfig(gdk-x11-2.0) BuildRequires, align with what configure looks for.

# HG changeset patch
# Parent a5cfa3aa11a9d3391df49de6fc5a0e5232c12c10
# Parent  d36d722c028f553ac3fb2f3655fb2c0ca745050c
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
@@ -874,17 +874,23 @@ nsIOService::NewChannelFromURIWithProxyF
                     "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.");
             }
             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,