2017-03-18 22:27:55 +01:00
|
|
|
# HG changeset patch
|
2019-09-13 22:15:12 +02:00
|
|
|
# User msirringhaus@suse.de
|
|
|
|
# Date 1558442998 -7200
|
|
|
|
# Tue May 21 14:49:58 2019 +0200
|
|
|
|
# Node ID 386083b58d8558141901d796ec6919a4aba7ad3a
|
2023-08-31 09:59:41 +02:00
|
|
|
# Parent 76b747f7d113bddbb8593184d81e1bfe5fd51af0
|
2019-09-13 22:15:12 +02:00
|
|
|
bsc#991344 - Rpi3: Firefox crashes after a few seconds of usage
|
|
|
|
bmo#1302554 - ARM/AARCH64: Firefox crashes on NULL nsIChannel** result pointer in nsIOService::NewChannelFromURIWithProxyFlagsInternal()
|
2017-03-18 22:27:55 +01:00
|
|
|
|
2021-08-19 09:16:16 +02:00
|
|
|
diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp
|
|
|
|
--- a/netwerk/base/nsIOService.cpp
|
|
|
|
+++ b/netwerk/base/nsIOService.cpp
|
2023-08-31 09:59:41 +02:00
|
|
|
@@ -1159,7 +1159,13 @@ nsresult nsIOService::NewChannelFromURIW
|
2017-03-18 22:27:55 +01:00
|
|
|
}
|
2019-01-29 20:03:55 +01:00
|
|
|
}
|
2019-09-13 22:15:12 +02:00
|
|
|
|
2017-03-18 22:27:55 +01:00
|
|
|
+#if defined(__aarch64__)
|
2019-01-29 20:03:55 +01:00
|
|
|
+ if (result) {
|
2019-09-13 22:15:12 +02:00
|
|
|
+ channel.forget(result);
|
2019-01-29 20:03:55 +01:00
|
|
|
+ }
|
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
|
|
|
}
|
|
|
|
|