mozilla-aarch64-startup-crash.patch
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 15 May 2019 19:43:42 +0200
branchfirefox67
changeset 1093 3942c205588b
parent 1085 87f893cf45b9
permissions -rw-r--r--
67.0 release

# HG changeset patch
# Parent a5cfa3aa11a9d3391df49de6fc5a0e5232c12c10
# Parent  6dd2311796da4e15115fd04b181313ae62754317
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
@@ -975,17 +975,23 @@ nsresult nsIOService::NewChannelFromURIW
             "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::NewChannelFromURIWithProxyFlags(
     nsIURI *aURI, nsIURI *aProxyURI, uint32_t aProxyFlags,
     nsINode *aLoadingNode, nsIPrincipal *aLoadingPrincipal,
     nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags,