mozilla-aarch64-startup-crash.patch
branchfirefox60
changeset 1090 554cd9503f75
parent 1033 51bfdd19b9e9
equal deleted inserted replaced
1080:e8d4a33582b8 1090:554cd9503f75
     1 # HG changeset patch
     1 # HG changeset patch
     2 # Parent a5cfa3aa11a9d3391df49de6fc5a0e5232c12c10
     2 # Parent a5cfa3aa11a9d3391df49de6fc5a0e5232c12c10
     3 # Parent  3005da37da3f1e2c568b1675307d10860182d214
     3 # Parent  85c2e07d2a9ec3e45f55d0e482c7b663626bfc8a
     4 Bug 991344 - Rpi3: Firefox crashes after a few seconds of usage
     4 Bug 991344 - Rpi3: Firefox crashes after a few seconds of usage
     5 
     5 
     6 diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp
     6 diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp
     7 --- a/netwerk/base/nsIOService.cpp
     7 --- a/netwerk/base/nsIOService.cpp
     8 +++ b/netwerk/base/nsIOService.cpp
     8 +++ b/netwerk/base/nsIOService.cpp
     9 @@ -887,17 +887,23 @@ nsIOService::NewChannelFromURIWithProxyF
     9 @@ -874,18 +874,23 @@ nsresult nsIOService::NewChannelFromURIW
    10                      "doesn't support nsIUploadChannel2. An extension has "
    10              u"Http channel implementation "
    11                      "supplied a non-functional http protocol handler. This will "
    11              "doesn't support nsIUploadChannel2. An extension has "
    12                      "break behavior and in future releases not work at all.");
    12              "supplied a non-functional http protocol handler. This will "
    13              }
    13              "break behavior and in future releases not work at all.");
    14              gHasWarnedUploadChannel2 = true;
    14        }
    15          }
    15        gHasWarnedUploadChannel2 = true;
    16      }
    16      }
    17  
    17    }
       
    18 -
    18 +#if defined(__aarch64__)
    19 +#if defined(__aarch64__)
    19 +    if (result) {
    20 +  if (result) {
    20 +        channel.forget(result);
    21 +      channel.forget(result);
    21 +    }
    22 +  }
    22 +#else
    23 +#else
    23      channel.forget(result);
    24    channel.forget(result);
    24 +#endif
    25 +#endif
    25      return NS_OK;
    26    return NS_OK;
    26  }
    27  }
    27  
    28  
    28  NS_IMETHODIMP
    29  NS_IMETHODIMP
    29  nsIOService::NewChannelFromURIWithProxyFlags2(nsIURI* aURI,
    30  nsIOService::NewChannelFromURIWithProxyFlags2(
    30                                                nsIURI* aProxyURI,
    31      nsIURI *aURI, nsIURI *aProxyURI, uint32_t aProxyFlags,
    31                                                uint32_t aProxyFlags,
    32      nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal,
    32                                                nsIDOMNode* aLoadingNode,
    33      nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags,