Firefox · Networking
CVE-2026-117922
Logic Error in Networking
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
OnUpgradeFailednetwerk/protocol/websocket/WebSocketChannel.cpp |
modified |
Files Changed
netwerk/protocol/websocket/WebSocketChannel.cpp
Patch
diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp
index ee23cf94b15..5555c0e1eca 100644
--- a/netwerk/protocol/websocket/WebSocketChannel.cpp
+++ b/netwerk/protocol/websocket/WebSocketChannel.cpp
@@ -3916,7 +3916,11 @@ nsresult WebSocketChannel::OnTransportAvailableInternal() {
NS_IMETHODIMP
WebSocketChannel::OnUpgradeFailed(nsresult aErrorCode) {
- // When socket process is enabled, this could be called on background thread.
+ if (!NS_IsMainThread()) {
+ return NS_DispatchToMainThread(NewRunnableMethod<nsresult>(
+ "net::WebSocketChannel::OnUpgradeFailed", this,
+ &WebSocketChannel::OnUpgradeFailed, aErrorCode));
+ }
LOG(("WebSocketChannel::OnUpgradeFailed() %p [aErrorCode %" PRIx32 "]", this,
static_cast<uint32_t>(aErrorCode)));
Loading diff…
References
On This Page