summaryrefslogtreecommitdiff
path: root/www-client/seamonkey/files/seamonkey-2.53.7.1-cpu_hog_fix.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-14 10:30:13 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-14 10:30:13 +0100
commit616579b5d773c50af31ee56f00105d96ce641ca2 (patch)
tree2ad4d3ba1429bd93a36ab99a2f5ec3490412115e /www-client/seamonkey/files/seamonkey-2.53.7.1-cpu_hog_fix.patch
parent068424b26532f3551a81421a9be67ed206e5c11a (diff)
gentoo resync : 14.08.2021
Diffstat (limited to 'www-client/seamonkey/files/seamonkey-2.53.7.1-cpu_hog_fix.patch')
-rw-r--r--www-client/seamonkey/files/seamonkey-2.53.7.1-cpu_hog_fix.patch72
1 files changed, 0 insertions, 72 deletions
diff --git a/www-client/seamonkey/files/seamonkey-2.53.7.1-cpu_hog_fix.patch b/www-client/seamonkey/files/seamonkey-2.53.7.1-cpu_hog_fix.patch
deleted file mode 100644
index 51894c485012..000000000000
--- a/www-client/seamonkey/files/seamonkey-2.53.7.1-cpu_hog_fix.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-https://github.com/JustOff/github-wc-polyfill/issues/10
-
---- a/netwerk/protocol/websocket/WebSocketChannel.h
-+++ b/netwerk/protocol/websocket/WebSocketChannel.h
-@@ -151,6 +151,7 @@ private:
- void GeneratePong(uint8_t *payload, uint32_t len);
- void GeneratePing();
-
-+ MOZ_MUST_USE nsresult OnNetworkChangedTargetThread();
- MOZ_MUST_USE nsresult OnNetworkChanged();
- MOZ_MUST_USE nsresult StartPinging();
-
---- a/netwerk/protocol/websocket/WebSocketChannel.cpp
-+++ b/netwerk/protocol/websocket/WebSocketChannel.cpp
-@@ -1270,14 +1270,14 @@ WebSocketChannel::Observe(nsISupports *s
- // Next we check mDataStarted, which we need to do on mTargetThread.
- if (!IsOnTargetThread()) {
- mTargetThread->Dispatch(
-- NewRunnableMethod("net::WebSocketChannel::OnNetworkChanged",
-+ NewRunnableMethod("net::WebSocketChannel::OnNetworkChangedTargetThread",
- this,
-- &WebSocketChannel::OnNetworkChanged),
-+ &WebSocketChannel::OnNetworkChangedTargetThread),
- NS_DISPATCH_NORMAL);
- } else {
-- nsresult rv = OnNetworkChanged();
-+ nsresult rv = OnNetworkChangedTargetThread();
- if (NS_FAILED(rv)) {
-- LOG(("WebSocket: OnNetworkChanged failed (%08" PRIx32 ")",
-+ LOG(("WebSocket: OnNetworkChangedTargetThread failed (%08" PRIx32 ")",
- static_cast<uint32_t>(rv)));
- }
- }
-@@ -1289,23 +1289,25 @@ WebSocketChannel::Observe(nsISupports *s
- }
-
- nsresult
--WebSocketChannel::OnNetworkChanged()
-+WebSocketChannel::OnNetworkChangedTargetThread()
- {
-- if (IsOnTargetThread()) {
-- LOG(("WebSocketChannel::OnNetworkChanged() - on target thread %p", this));
--
-- if (!mDataStarted) {
-- LOG(("WebSocket: data not started yet, no ping needed"));
-- return NS_OK;
-- }
-+ LOG(("WebSocketChannel::OnNetworkChangedTargetThread() - on target thread %p", this));
-
-- return mSocketThread->Dispatch(
-- NewRunnableMethod("net::WebSocketChannel::OnNetworkChanged",
-- this,
-- &WebSocketChannel::OnNetworkChanged),
-- NS_DISPATCH_NORMAL);
-+ if (!mDataStarted) {
-+ LOG(("WebSocket: data not started yet, no ping needed"));
-+ return NS_OK;
- }
-
-+ return mSocketThread->Dispatch(
-+ NewRunnableMethod("net::WebSocketChannel::OnNetworkChanged",
-+ this,
-+ &WebSocketChannel::OnNetworkChanged),
-+ NS_DISPATCH_NORMAL);
-+}
-+
-+nsresult
-+WebSocketChannel::OnNetworkChanged()
-+{
- MOZ_ASSERT(OnSocketThread(), "not on socket thread");
-
- LOG(("WebSocketChannel::OnNetworkChanged() - on socket thread %p", this));