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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
933
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     1
# HG changeset patch
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     2
# Parent a5cfa3aa11a9d3391df49de6fc5a0e5232c12c10
1093
3942c205588b 67.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
     3
# Parent  6dd2311796da4e15115fd04b181313ae62754317
933
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     4
Bug 991344 - Rpi3: Firefox crashes after a few seconds of usage
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     5
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     6
diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     7
--- a/netwerk/base/nsIOService.cpp
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     8
+++ b/netwerk/base/nsIOService.cpp
1093
3942c205588b 67.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
     9
@@ -975,17 +975,23 @@ nsresult nsIOService::NewChannelFromURIW
1085
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    10
             "doesn't support nsIUploadChannel2. An extension has "
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    11
             "supplied a non-functional http protocol handler. This will "
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    12
             "break behavior and in future releases not work at all.");
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    13
       }
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    14
       gHasWarnedUploadChannel2 = true;
933
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    15
     }
1085
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    16
   }
933
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    17
 
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    18
+#if defined(__aarch64__)
1085
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    19
+  if (result) {
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    20
+      channel.forget(result);
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    21
+  }
933
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    22
+#else
1085
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    23
   channel.forget(result);
933
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    24
+#endif
1085
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    25
   return NS_OK;
933
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    26
 }
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    27
 
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    28
 NS_IMETHODIMP
1093
3942c205588b 67.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1085
diff changeset
    29
 nsIOService::NewChannelFromURIWithProxyFlags(
1085
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    30
     nsIURI *aURI, nsIURI *aProxyURI, uint32_t aProxyFlags,
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    31
     nsINode *aLoadingNode, nsIPrincipal *aLoadingPrincipal,
87f893cf45b9 Firefox 65.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1067
diff changeset
    32
     nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags,