Closed Bug 1706604 Opened 3 years ago Closed 3 years ago

Implement URL query string stripping for navigations

Categories

(Core :: Privacy: Anti-Tracking, task)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: timhuang, Assigned: timhuang)

References

Details

Attachments

(4 files)

Basic idea is that we will strip certain parts of the query string before we create the channel for navigation.

This patch implements a URLQueryStringStripper which provides a static
function Strip() to strip the target query parameters. The function
accepts a URI and reutrn the stripped URI.

Depends on D113841

Assignee: nobody → tihuang
Status: NEW → ASSIGNED

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.

Depends on D113842

We strip the target query parameters in BrowsingContext::LoadURI(). This
is needed for the loading from the RemoteWebNavigation. The parent
process will create the channel before the loading happens in the
nsDocShell in content process. So we have to strip before the channel
has been created in the parent process.

Depends on D113843

Attachment #9219319 - Attachment description: Bug 1706604 - Part 4: Add a test browser_urlQueryStringStripping.js to test the query stripping. r?dimi → Bug 1706604 - Part 4: Add tests to test the query stripping. r?dimi
Pushed by tihuang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cce6d3f75b62
Part 1: Implement the URLQueryStringStripper. r=dimi
https://hg.mozilla.org/integration/autoland/rev/a7d285e73387
Part 2: Strip the URI before create the channel in nsDocShell. r=smaug
https://hg.mozilla.org/integration/autoland/rev/5509494fddc7
Part 3: Strip the target query parameters in BrowsingContext::LoadURI(). r=nika
https://hg.mozilla.org/integration/autoland/rev/2a9e4619bcd0
Part 4: Add tests to test the query stripping. r=dimi,smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: