1 # HG changeset patch |
1 # HG changeset patch |
2 # User msirringhaus@suse.de |
2 # User msirringhaus@suse.de |
3 # Date 1558442998 -7200 |
3 # Date 1558442998 -7200 |
4 # Tue May 21 14:49:58 2019 +0200 |
4 # Tue May 21 14:49:58 2019 +0200 |
5 # Node ID 386083b58d8558141901d796ec6919a4aba7ad3a |
5 # Node ID 386083b58d8558141901d796ec6919a4aba7ad3a |
6 # Parent 835641be7eb9408aa1eff0d38b37f6c523d2ef98 |
6 # Parent a30a9b9aae5740f096a16118ed9e4bc45d3d1c35 |
7 bsc#991344 - Rpi3: Firefox crashes after a few seconds of usage |
7 bsc#991344 - Rpi3: Firefox crashes after a few seconds of usage |
8 bmo#1302554 - ARM/AARCH64: Firefox crashes on NULL nsIChannel** result pointer in nsIOService::NewChannelFromURIWithProxyFlagsInternal() |
8 bmo#1302554 - ARM/AARCH64: Firefox crashes on NULL nsIChannel** result pointer in nsIOService::NewChannelFromURIWithProxyFlagsInternal() |
9 |
9 |
10 diff -r 835641be7eb9 -r 386083b58d85 netwerk/base/nsIOService.cpp |
10 diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp |
11 --- a/netwerk/base/nsIOService.cpp Fri Feb 26 16:20:09 2016 +0000 |
11 --- a/netwerk/base/nsIOService.cpp |
12 +++ b/netwerk/base/nsIOService.cpp Tue May 21 14:49:58 2019 +0200 |
12 +++ b/netwerk/base/nsIOService.cpp |
13 @@ -1000,7 +1000,13 @@ |
13 @@ -1032,17 +1032,23 @@ nsresult nsIOService::NewChannelFromURIW |
|
14 "doesn't support nsIUploadChannel2. An extension has " |
|
15 "supplied a non-functional http protocol handler. This will " |
|
16 "break behavior and in future releases not work at all."); |
|
17 } |
|
18 gHasWarnedUploadChannel2 = true; |
14 } |
19 } |
15 } |
20 } |
16 |
21 |
17 +#if defined(__aarch64__) |
22 +#if defined(__aarch64__) |
18 + if (result) { |
23 + if (result) { |
22 channel.forget(result); |
27 channel.forget(result); |
23 +#endif |
28 +#endif |
24 return NS_OK; |
29 return NS_OK; |
25 } |
30 } |
26 |
31 |
|
32 NS_IMETHODIMP |
|
33 nsIOService::NewChannelFromURIWithProxyFlags( |
|
34 nsIURI* aURI, nsIURI* aProxyURI, uint32_t aProxyFlags, |
|
35 nsINode* aLoadingNode, nsIPrincipal* aLoadingPrincipal, |
|
36 nsIPrincipal* aTriggeringPrincipal, uint32_t aSecurityFlags, |