Moving the ContentBlockingLog to the parent process
Categories
(Core :: Privacy: Anti-Tracking, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: dimi, Assigned: dimi)
References
Details
Attachments
(4 files, 1 obsolete file)
Right now, the ContentBlockingLog is located on the document of the top-level window. This is incompatible to the Fission since the top-level window might not be accessible if it is cross-origin.
In order to make this work in the Fission. We'll remove ContentBlockingLog from the child process and store it in the parent process instead.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
At this point, there is no consumer that uses ContentBlockingLog stored
in the child. This patch removes the following code:
- Removing nsGlobalWindowOuter::NotifyContentBlockingEvent
- Removing nsDocLoader::OnContentBlockingEvent
- Removing contentBlockingEvent in nsISecureBrowserUI.idl
- Removing mContentBlockingLog from Document.cpp and APIs related to it.
Assignee | ||
Comment 2•3 years ago
|
||
As the final step, all the callsites of NotifyOnContentBlocking should
be removed.
Depends on D56874
Assignee | ||
Comment 4•3 years ago
|
||
This patch does the followings:
-
Remove NotifyOnContentBlocking in WindowOuter and all the call sites.
This is because all the content blocking event handling is moved to the parent. -
Replace UrlClassifierCommon::NotifyChannelBlocked with AntiTrackingCommon:::NotifyContentBlockingEventInParent.
This is because we don't need to pass the request to the child anymore, which was implemented in NotifyChannelBlocked previously. -
Add NotifyContentBlockingEvent* utility functions to AntiTrackingCommon.cpp.
-
Update AntiTrackingCommon::NotifyBlockingDecision, when it is called in the parent,
do not send requests to the child, notify the parent directly
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
The following methods are removed:
- notifyChannelClassifierProtectionDisabled
- notifyCookieAllowed
- notifyCookieBlocked
Assignee | ||
Comment 6•3 years ago
|
||
Comment 7•3 years ago
|
||
Can these changes land now?
Assignee | ||
Comment 8•3 years ago
|
||
(In reply to :ehsan akhgari from comment #7)
Can these changes land now?
Yes, Bug 1601660 was landed two days ago, we can land this one now :)
Pushed by dlee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/805fb67be8a3 P1. Remove ContentBlockingLog from the child r=timhuang,Ehsan https://hg.mozilla.org/integration/autoland/rev/2bc0fa3bbe0e P2. Remove calling NotifyOnContentBlocking in the child process r=timhuang,Ehsan https://hg.mozilla.org/integration/autoland/rev/2e165c119a4f P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan https://hg.mozilla.org/integration/autoland/rev/721f54870498 P4. Report content blocking log to console while running in the parent process r=Ehsan
Comment 10•3 years ago
|
||
Backed out 4 changesets (Bug 1599046) for xpcshell failures at test_ext_cookieBehaviors.
https://hg.mozilla.org/integration/autoland/rev/549b175a1e00e22692ced2d47de30172b9fab779
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=286592368&repo=autoland&lineNumber=2188
Comment 11•3 years ago
|
||
Pushed by dlee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/db8e34b8d16c P1. Remove ContentBlockingLog from the child r=timhuang,Ehsan https://hg.mozilla.org/integration/autoland/rev/cb08405e4cbc P2. Remove calling NotifyOnContentBlocking in the child process r=timhuang,Ehsan https://hg.mozilla.org/integration/autoland/rev/4feab5c36c60 P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan https://hg.mozilla.org/integration/autoland/rev/dcc985749140 P4. Report content blocking log to console while running in the parent process r=Ehsan
Comment 12•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/db8e34b8d16c
https://hg.mozilla.org/mozilla-central/rev/cb08405e4cbc
https://hg.mozilla.org/mozilla-central/rev/4feab5c36c60
https://hg.mozilla.org/mozilla-central/rev/dcc985749140
Assignee | ||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
== Change summary for alert #24812 (as of Tue, 28 Jan 2020 20:33:25 GMT) ==
Improvements:
6% raptor-tp6-instagram-firefox-cold loadtime windows10-64-shippable opt 1,419.83 -> 1,330.50
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=24812
Description
•