mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1721858 - Enable WebSocket connection partitioning if first party isolation is enabled. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D120742
This commit is contained in:
parent
0555901c81
commit
d64a25c382
@ -488,7 +488,8 @@ class nsWSAdmissionManager {
|
||||
int32_t IndexOf(nsCString& aAddress, nsCString& aOriginSuffix) {
|
||||
for (uint32_t i = 0; i < mQueue.Length(); i++) {
|
||||
bool isPartitioned =
|
||||
StaticPrefs::privacy_partition_network_state() &&
|
||||
(StaticPrefs::privacy_partition_network_state() ||
|
||||
StaticPrefs::privacy_firstparty_isolate()) &&
|
||||
StaticPrefs::privacy_partition_network_state_ws_connection_queue();
|
||||
if (aAddress == (mQueue[i])->mAddress &&
|
||||
(!isPartitioned || aOriginSuffix == (mQueue[i])->mOriginSuffix)) {
|
||||
|
Loading…
Reference in New Issue
Block a user