Enable tracking protection for Fenix pageload performance tests
Categories
(Testing :: Raptor, defect, P2)
Tracking
(Not tracked)
People
(Reporter: acreskey, Unassigned)
References
Details
(Whiteboard: [fxp])
Attachments
(3 files)
Currently the raptor-browsertime pageload tests disable TrackingProtection (and the underlying Safebrowsing database) in Fenix.
See the perf/user.js profile.
And Browsertime also currently does this by default.
However Fenix currently defaults to Strict Tracking Protection which blocks resource requests and has been shown to improve visual metrics by approximately 6% over a broad range of pages.
On some sites the improvements can be up to 50% as the majority of network requests are skipped and thus the content resources are fetched sooner.
So Fenix pageload tests are not currently representative of the user-experienced performance.
Enabling TrackingProtection in Browsertime will require this change that's currently in review:
https://github.com/sitespeedio/browsertime/pull/1272
And providing these flags:
--firefox.disableSafeBrowsing false --firefox.disableTrackingProtection false
I'm not sure the best approach for separating out the the prefs for the perf/user.js
https://searchfox.org/mozilla-central/source/testing/profiles/perf/user.js
Updated•5 years ago
|
Updated•5 years ago
|
| Reporter | ||
Comment 1•5 years ago
|
||
:sparky was looking at a regression in ContentfulSpeedIndex in Fenix and it appears that tracking protection may in fact be enabled in tests as this coincides with the date that TP was changed from Strict to Standard.
https://treeherder.mozilla.org/perf.html#/graphs?series=mozilla-central,2441205,1,13&selected=2441205,1158745317
In looking at the resourceCount metrics he was able to see the increase.
Comment 2•5 years ago
|
||
:bebe, could you verify if the tracking protection is on?
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Ran a small browsertime page load test and opened about:config to check the settings.
comparing the user.js seetings here are the results:
user.js > Browsertime device seetings
"privacy.trackingprotection.annotate_channels", false -> None
"privacy.trackingprotection.enabled", false -> false (not default)
"privacy.trackingprotection.introURL", "http://127.0.0.1/trackingprotection/tour" -> http://127.0.0.1/trackingprotection/tour (not default)
"privacy.trackingprotection.pbmode.enabled", false -> false (not default)
Will attach screenshots
Comment 4•5 years ago
|
||
Comment 5•5 years ago
|
||
| Reporter | ||
Comment 6•5 years ago
|
||
One option to compare what is actually being blocked (since I believe the app can override the preferences) is to compare these tracking protection tests in a clean nightly vs in the performance tests.
https://senglehardt.com/test/trackingprotection/test_pages/tracking_protection.html
| Reporter | ||
Comment 8•5 years ago
|
||
When running the latest Fenix nightly, outside of the test framework, these are the results.
(From this test https://senglehardt.com/test/trackingprotection/test_pages/tracking_protection.html)
Note that we no longer default Fenix to "strict" tracking protection which blocks many resources.
Updated•5 years ago
|
Updated•4 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 9•3 years ago
|
||
any particular reason you needinfoed me, Kash?
Comment 10•3 years ago
|
||
Ah sorry :alexandrui, forgot to follow up with a message!
This bug came up during triage meeting this week and I believe we thought you would have further context on this or if/when we should tackle this
Comment 11•3 years ago
|
||
acreskey, is this still relevant?
| Reporter | ||
Comment 12•3 years ago
|
||
I would say that this is still relevant because of the large impact that tracking protection has on performance.
However, it's somewhat less relevant because Fenix no longer defaults to Strick tracking protection.
I know that from a test in the fall of 2021, tracking protection on desktop is working correctly in automation.
I'm not sure if that's the case for Fenix.
I can verify in a couple of weeks, or if someone is available perhaps they can test themselves.
I think the easiest way is to note the results of this site in a fresh install of Fenix: https://senglehardt.com/test/trackingprotection/test_pages/tracking_protection.html
And then to compare those to that page when loaded through test automation.
They should match.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 13•7 months ago
|
||
We still don't enable tracking protection for Fenix through the browsertime flag.
Description
•