Bug 1706615 - Part 8: Preserve the unstripped URI when doing a reload. r=smaug
To restore the stripped query parameters when ETP toggle has been set to off, we preserve the current unstripped URI to the new loadState when doing a reload. By doing this, it will redirect the channel back to the unstripped URI because the loading channel is in the content blocking allow list and it has a unstripped URI in its loadInfo. Differential Revision: https://phabricator.services.mozilla.com/D116116
This commit is contained in:
@@ -323,7 +323,8 @@ class nsDocShellLoadState final {
|
||||
bool aLoadingFromActiveEntry);
|
||||
void ClearLoadIsFromSessionHistory();
|
||||
|
||||
void MaybeStripTrackerQueryStrings(mozilla::dom::BrowsingContext* aContext);
|
||||
void MaybeStripTrackerQueryStrings(mozilla::dom::BrowsingContext* aContext,
|
||||
nsIURI* aCurrentUnstrippedURI = nullptr);
|
||||
|
||||
protected:
|
||||
// Destructor can't be defaulted or inlined, as header doesn't have all type
|
||||
|
||||
Reference in New Issue
Block a user