2017-03-18 22:27:55 +01:00
|
|
|
# HG changeset patch
|
|
|
|
# Parent a5cfa3aa11a9d3391df49de6fc5a0e5232c12c10
|
2019-01-29 20:03:55 +01:00
|
|
|
# Parent 85c2e07d2a9ec3e45f55d0e482c7b663626bfc8a
|
2017-03-18 22:27:55 +01:00
|
|
|
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
|
2019-01-29 20:03:55 +01:00
|
|
|
@@ -874,18 +874,23 @@ nsresult nsIOService::NewChannelFromURIW
|
|
|
|
u"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;
|
2017-03-18 22:27:55 +01:00
|
|
|
}
|
2019-01-29 20:03:55 +01:00
|
|
|
}
|
|
|
|
-
|
2017-03-18 22:27:55 +01:00
|
|
|
+#if defined(__aarch64__)
|
2019-01-29 20:03:55 +01:00
|
|
|
+ if (result) {
|
|
|
|
+ channel.forget(result);
|
|
|
|
+ }
|
2017-03-18 22:27:55 +01:00
|
|
|
+#else
|
2019-01-29 20:03:55 +01:00
|
|
|
channel.forget(result);
|
2017-03-18 22:27:55 +01:00
|
|
|
+#endif
|
2019-01-29 20:03:55 +01:00
|
|
|
return NS_OK;
|
2017-03-18 22:27:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2019-01-29 20:03:55 +01:00
|
|
|
nsIOService::NewChannelFromURIWithProxyFlags2(
|
|
|
|
nsIURI *aURI, nsIURI *aProxyURI, uint32_t aProxyFlags,
|
|
|
|
nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal,
|
|
|
|
nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags,
|