File mozilla-aarch64-startup-crash.patch of Package MozillaFirefox.7685

# HG changeset patch
# Parent f1b932b7468f74ec2161d0465b2cdd21d5d33c52
# Parent  00b443893c8ad87dc22003a320d0029aacba388f
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
                     "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."
             gHasWarnedUploadChannel2 = true;
+#if defined(__aarch64__)
+    if (result) {
+        channel.forget(result);
+    }
     return NS_OK;
 nsIOService::NewChannelFromURIWithProxyFlags2(nsIURI* aURI,
                                               nsIURI* aProxyURI,
                                               uint32_t aProxyFlags,
                                               nsIDOMNode* aLoadingNode,
openSUSE Build Service is sponsored by