Closed
Bug 1480443
Opened 6 years ago
Closed 6 years ago
Enable FastBlock by default on Nightly
Categories
(Core :: Networking: HTTP, enhancement, P1)
Core
Networking: HTTP
Tracking
()
VERIFIED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | verified |
People
(Reporter: johannh, Assigned: ethan)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(3 files)
With the Content Blocking UI going live in Nightly right now (bug 1476217) we probably want to flip the FastBlock pref as well to get some early input.
Updated•6 years ago
|
Component: General → Networking: HTTP
Assignee | ||
Updated•6 years ago
|
Severity: normal → major
Priority: -- → P1
Target Milestone: --- → mozilla63
Comment 1•6 years ago
|
||
When we enable fastblock by default in Nightly, we should also reset the privacy.trackingprotection.introCount pref to make sure that users see the new onboarding.
Updated•6 years ago
|
Assignee: nobody → xeonchen
Whiteboard: [necko-triaged]
Reporter | ||
Comment 2•6 years ago
|
||
(In reply to François Marier [:francois] from comment #1)
> When we enable fastblock by default in Nightly, we should also reset the
> privacy.trackingprotection.introCount pref to make sure that users see the
> new onboarding.
Note that there's no new onboarding yet, so we should do that in a separate bug.
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Gary Chen [:xeonchen] from comment #3)
> Ethan will handle this
Cheers. This would be my good first bug to practice Phabricator. ;)
Assignee | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment on attachment 9001669 [details]
Bug 1480443 - Enable FastBlock by default on Nightly
François Marier [:francois] has approved the revision.
Attachment #9001669 -
Flags: review+
Assignee | ||
Comment 7•6 years ago
|
||
Try result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=8abe49b7e34f2d950f084647ede4dd040e20eb0b
This patch breaks some test cases. For example, browser/components/preferences/in-content/tests/browser_contentblocking.js
has the assumption that FastBlock is disabled by default and checks if it successfully modified the pref value.
We need to fix these test failures.
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Updated•6 years ago
|
Attachment #9003834 -
Attachment description: Bug 1480443 - Part 2: Fix test case → Bug 1480443 - Part 2: Fix test case failure of Content Blocking
Comment 10•6 years ago
|
||
Comment on attachment 9004210 [details]
Bug 1480443 - Part 3: Disable FastBlock in URL Classifier tests
Dimi Lee[:dimi][:dlee] has approved the revision.
Attachment #9004210 -
Flags: review+
Reporter | ||
Comment 11•6 years ago
|
||
Comment on attachment 9003834 [details]
Bug 1480443 - Part 2: Fix test case failure of Content Blocking
Johann Hofmann [:johannh] has approved the revision.
Attachment #9003834 -
Flags: review+
Assignee | ||
Comment 12•6 years ago
|
||
The updated try result (with Part 2 and 3 patches):
https://treeherder.mozilla.org/#/jobs?repo=try&revision=90f57ed4db47f9450f9614a310a24af170412081
There is still at least one failure which seems to be caused by the patch of this bug.
TEST-UNEXPECTED-FAIL | toolkit/components/url-classifier/tests/mochitest/test_classifier.html | Test timed out.
Comment 13•6 years ago
|
||
Given the fact that having a feature like fastblock turned on can turn any test which has tracking resources orange intermittently if the machine runs too slowly, you might want to consider disabling the pref globally for all tests in https://searchfox.org/mozilla-central/source/testing/profiles/common/user.js and only enabling it specifically for the tests that actually want to turn fastblock on. That file is intended for preferences that are intended to be set globally across both correctness test harnesses as well as Talos.
Reporter | ||
Comment 14•6 years ago
|
||
Hm, but is it really a good idea to disable a pref that will be set for users globally in our tests? At least with browser chrome mochitests we try to stay as close to the real thing as possible, in my view. Note that you can set prefs in test .ini files: https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/browser/base/content/test/performance/browser.ini#7
This leaves the option of disabling these prefs by directory instead.
Reporter | ||
Comment 15•6 years ago
|
||
(In reply to François Marier [:francois] from comment #1)
> When we enable fastblock by default in Nightly, we should also reset the
> privacy.trackingprotection.introCount pref to make sure that users see the
> new onboarding.
Please note that the onboarding ui tour situation was already handled in separate bugs and there is nothing we need to do here, **especially** NOT resetting that pref, which would cause all our users to have to see the old TP onboarding again.
Thanks :)
Comment 16•6 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #14)
> Hm, but is it really a good idea to disable a pref that will be set for
> users globally in our tests?
Ideally, no. But this isn't a binary decision, i.e., disabling fastblock for everything doesn't mean not testing it, we *should* have specific tests for fastblock, turning the pref on for everything is a very poor replacement for that.
> At least with browser chrome mochitests we try
> to stay as close to the real thing as possible, in my view. Note that you
> can set prefs in test .ini files:
> https://searchfox.org/mozilla-central/rev/
> 55da592d85c2baf8d8818010c41d9738c97013d2/browser/base/content/test/
> performance/browser.ini#7
I think the choice we are going to have to is whether to keep fastblock enabled and add some intermittent test failures to every single test that creates a tracking channel, or disable fastblock globally and opt into it for the tests that really want to test the feature. Based on my experience I think the second option in the long term is going to waste a lot of developer and sheriff time and result in a lot of one off "disable fast block for this test" patches being written and landing.
My $0.02.
Assignee | ||
Comment 17•6 years ago
|
||
Updated•6 years ago
|
Attachment #9004210 -
Attachment description: Bug 1480443 - Part 3: Fix the test failure of Safe Browsing → Bug 1480443 - Part 2: Disable FastBlock globally for all the tests
Updated•6 years ago
|
Attachment #9004210 -
Attachment description: Bug 1480443 - Part 2: Disable FastBlock globally for all the tests → Bug 1480443 - Part 3: Disable FastBlock in URL Classifier tests
Assignee | ||
Comment 18•6 years ago
|
||
(In reply to :Ehsan Akhgari from comment #16)
> (In reply to Johann Hofmann [:johannh] from comment #14)
> > Hm, but is it really a good idea to disable a pref that will be set for
> > users globally in our tests?
> Ideally, no. But this isn't a binary decision, i.e., disabling fastblock
> for everything doesn't mean not testing it, we *should* have specific tests
> for fastblock, turning the pref on for everything is a very poor replacement
> for that.
Ehsan and Johann, thanks for your input!
From our offline discussion, we have made a conclusion NOT to disable FastBlock globally for all the tests. As Johann said in comment 14, this is more close to the real setting (FastBlock is enabled by default on Nightly). Also, we can avoid using hacky solutions to fix test failures in Content Blocking.
The current patches only disable FastBlock in certain url-classifier tests which would fail when FastBlock is on. I will file a follow-up bug to disable FastBlock for all url-classifier tests so FB won't interfere with any URL Classifier/Tracking Protection tests which would create annotating channels.
Comment 19•6 years ago
|
||
Comment on attachment 9004210 [details]
Bug 1480443 - Part 3: Disable FastBlock in URL Classifier tests
François Marier [:francois] has approved the revision.
Attachment #9004210 -
Flags: review+
Assignee | ||
Comment 20•6 years ago
|
||
Try result of the latest patches:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d06df01e584a0e94e407055b5991568a65a175cf
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Keywords: checkin-needed
Comment 21•6 years ago
|
||
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5e01b236471e
Enable FastBlock by default on Nightly. r=francois
https://hg.mozilla.org/integration/autoland/rev/6280d28ae6af
Part 2: Fix test case failure of Content Blocking. r=johannh
https://hg.mozilla.org/integration/autoland/rev/1082415e378f
Part 3: Disable FastBlock in URL Classifier tests. r=dimi,francois
Keywords: checkin-needed
Comment 22•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Flags: qe-verify+
Flags: needinfo?(cristian.comorasu)
Comment 23•6 years ago
|
||
I can confirm this issue is fixed, I verified using Fx 64.0a1 (2018-09-19) on Windows 10 x64, mac 10.14 and Ubuntu 14.04 LTS x64.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Flags: needinfo?(cristian.comorasu)
You need to log in
before you can comment on or make changes to this bug.
Description
•