Skip to content

Commit

Permalink
Backed out changeset 9ad2c5fa9f3b (bug 1883626) for causing Bug 18845…
Browse files Browse the repository at this point in the history
…78 CLOSED TREE
  • Loading branch information
Cristian Tuns committed Mar 13, 2024
1 parent 6169ac5 commit 50eb644
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions modules/libpref/init/StaticPrefList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11569,15 +11569,6 @@
value: true
mirror: always

# When true, HttpChannelParent::SendRedirectFailed might race against
# HttpChannelParent::Delete when completing a redirect.
# This exists only to prevent unexpected regressions.
# It should be removed in a few releases.
- name: network.http.redirect.raceDeletion
type: RelaxedAtomicBool
value: false
mirror: always

# Prefs allowing granular control of referers.
# 0=don't send any, 1=send only on clicks, 2=send on image requests as well
- name: network.http.sendRefererHeader
Expand Down
4 changes: 1 addition & 3 deletions netwerk/protocol/http/HttpChannelParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "mozilla/Preferences.h"
#include "mozilla/ProfilerLabels.h"
#include "mozilla/ProfilerMarkers.h"
#include "mozilla/StaticPrefs_network.h"
#include "mozilla/StoragePrincipalHelper.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/Unused.h"
Expand Down Expand Up @@ -2122,8 +2121,7 @@ HttpChannelParent::OnRedirectResult(nsresult status) {
mParentListener->SetListenerAfterRedirect(redirectChannel);
redirectChannel->SetParentListener(mParentListener);
}
} else if (redirectChannel &&
StaticPrefs::network_http_redirect_raceDeletion()) {
} else if (redirectChannel) {
// Delete the redirect target channel: continue using old channel
redirectChannel->Delete();
}
Expand Down

0 comments on commit 50eb644

Please sign in to comment.