Bug 1706604 - Part 2: Strip the URI before create the channel in nsDocShell. r=smaug
The target query parameters will be stripped from the loading URI in nsDocShell before creating the channel for the loading. We will only strip the URI for top-level loading but not for frames. It's because there is no need to strip frames if we've stripped in top-level already. Differential Revision: https://phabricator.services.mozilla.com/D113843
This commit is contained in:
@@ -321,6 +321,8 @@ class nsDocShellLoadState final {
|
||||
bool aLoadingFromActiveEntry);
|
||||
void ClearLoadIsFromSessionHistory();
|
||||
|
||||
void MaybeStripTrackerQueryStrings(mozilla::dom::BrowsingContext* aContext);
|
||||
|
||||
protected:
|
||||
// Destructor can't be defaulted or inlined, as header doesn't have all type
|
||||
// includes it needs to do so.
|
||||
|
||||
Reference in New Issue
Block a user