Closed
Bug 1231359
Opened 9 years ago
Closed 9 years ago
[experiment] Simplify the hidden preferences that control whether Tracking Protection is enabled in non-private windows
Categories
(Firefox :: Settings UI, defect, P1)
Firefox
Settings UI
Tracking
()
People
(Reporter: past, Assigned: Paolo)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [fxprivacy] [strings])
Attachments
(4 files)
We need a new checkbox in the privacy section of the preferences tab for enabling TP in normal browsing mode. It will be followed by two radio buttons for selecting whether TP will be used in private windows (Default), "Always", or never use TP in case the checkbox is unchecked. Choosing “Always” (use TP) will enable DNT by flipping the privacy.donottrackheader.enabled pref and send the DNT signal to all sites.
Reporter | ||
Updated•9 years ago
|
Updated•9 years ago
|
Flags: qe-verify+
Updated•9 years ago
|
Whiteboard: [fxprivacy] → [fxprivacy] [strings]
Updated•9 years ago
|
Assignee: nobody → past
Status: NEW → ASSIGNED
Iteration: --- → 46.1 - Dec 28
Priority: P2 → P1
Summary: Add a checkbox to enable TP in normal mode → [experiment] Add a checkbox to enable TP in normal mode
Assignee | ||
Comment 1•9 years ago
|
||
If I understand correctly, this UI will still be displayed only when the privacy.trackingprotection.ui.enabled preference is set and the channel is Nightly or Developer Edition, so that we can complete the other features like the UI tour before this option is available for wider testing. Is this correct?
Also, I think the latest thinking is that the privacy.donottrackheader.enabled preference will not be modified by these preferences, but controlled separately. The platform will send the DNT header to tracking sites that are known to honor it, and as such are not blocked.
Assignee | ||
Comment 2•9 years ago
|
||
After discussing at the team standups and hearing from Philipp, we've decided to implement a slightly revised version of the interface:
Use Tracking Protection
( ) Always
(*) Only in Private Browsing
( ) Never
I've updated this bug to reflect that, and I've created a patch to implement this without changing how the privacy.trackingprotection.ui.enabled preference works and in which channels it is enabled. We can integrate those changes at a later time.
Here is a tryserver build to see if there are any test failures:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e6f62afe096c
Summary: [experiment] Add a checkbox to enable TP in normal mode → [experiment] Simplify the hidden preferences that control whether Tracking Protection is enabled in non-private windows
Assignee | ||
Comment 3•9 years ago
|
||
I've filed bug 1235565 for the changes that are not included in the current patch. Panos, you may want to use that bug number for the changes you originally implemented here that are still relevant.
Assignee: past → paolo.mozmail
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/29131/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/29131/
Updated•9 years ago
|
Iteration: 46.1 - Dec 28 → 46.2 - Jan 11
Assignee | ||
Updated•9 years ago
|
Attachment #8702580 -
Flags: review?(past)
Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8702580 [details]
MozReview Request: Bug 1231359 - Simplify the hidden preferences that control whether Tracking Protection is enabled in non-private windows.
https://reviewboard.mozilla.org/r/29131/#review26361
Just a few nits, looks good!
::: browser/components/preferences/in-content/privacy.js:143
(Diff revision 1)
> + var radiogroup = document.getElementById("trackingProtectionRadioGroup");
Nit: s/var/let/g here and in the function below.
::: browser/components/preferences/in-content/privacy.js:155
(Diff revision 1)
> + {
Style nit: opening curly in the same line as the function keyword?
I know this file has both styles, but since we are trying to use eslint for this kind of thing going forward, we might as well not introduce new deviations from the norm.
::: browser/components/preferences/in-content/privacy.xul:91
(Diff revision 1)
> - accesskey="&trackingProtection5.accesskey;"
> + <label id="trackingProtectionLearnMore" class="text-link"
I might have missed last week's updates, but wasn't our previous agreement to go with the question mark icon (the standard one) instead of a text link as indicated in the spec?
Attachment #8702580 -
Flags: review?(past) → review+
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Panos Astithas [:past] from comment #5)
> I might have missed last week's updates, but wasn't our previous agreement
> to go with the question mark icon (the standard one) instead of a text link
> as indicated in the spec?
I think we decided for the text link, but if we want the question mark we'll need someone from UX to provide the right icon.
This bug also needs a copy review before landing.
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to :Paolo Amadini from comment #6)
> (In reply to Panos Astithas [:past] from comment #5)
> > I might have missed last week's updates, but wasn't our previous agreement
> > to go with the question mark icon (the standard one) instead of a text link
> > as indicated in the spec?
>
> I think we decided for the text link, but if we want the question mark we'll
> need someone from UX to provide the right icon.
That's why I mentioned "the standard one", by which I was referring to the same icon we use in section headers:
https://dxr.mozilla.org/mozilla-central/rev/0771c5eab32f0cee4f7d12bc382298a81e0eabb2/browser/components/preferences/in-content/privacy.xul#84-85
Let's discuss this in the meeting today.
Assignee | ||
Comment 8•9 years ago
|
||
This is how the change to the Privacy Preferences looks like.
Assignee | ||
Updated•9 years ago
|
Attachment #8705693 -
Attachment description: privacy-updated.png → Screenshot of Privacy Preferences with the Tracking Protection UI enabled manually
Comment 10•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Updated•9 years ago
|
QA Contact: paul.silaghi
Comment 11•9 years ago
|
||
(In reply to Panos Astithas [:past] from comment #0)
> Choosing “Always” (use TP) will enable DNT by flipping the
> privacy.donottrackheader.enabled pref
This is not happening, and I'm not sure if it's expected, based on comments 1, 2.
Flags: needinfo?(paolo.mozmail)
Assignee | ||
Comment 12•9 years ago
|
||
The privacy.donottrackheader.enabled preference should not be affected by changes in the radio button.
Flags: needinfo?(paolo.mozmail)
Comment 13•9 years ago
|
||
Why is the <caption> moved to inside all these boxes?
It must be the first element in the groupbox, in order to be styled correctly (in other themes).
See attachments
Comment 14•9 years ago
|
||
The caption in the wrong place.
Comment 15•9 years ago
|
||
Caption in the right place
Assignee | ||
Comment 16•9 years ago
|
||
(In reply to Alfred Kayser from comment #13)
> Why is the <caption> moved to inside all these boxes?
> It must be the first element in the groupbox, in order to be styled
> correctly (in other themes).
With the default theme, this makes the buttons on the right aligned in a better way. The difference however is minor enough that I wouldn't mind reviewing a patch in a new bug for moving the <caption> out of the hbox.
Comment 17•9 years ago
|
||
Verified fixed FF 46.0a1 (2016-01-13) Win 7, Ubuntu 14.04, OS X 10.9.5.
Status: RESOLVED → VERIFIED
Comment 18•9 years ago
|
||
Right now tracking.label ("Tracking") is not visible at all on OS X and it looks plainly wrong.
Comment 19•9 years ago
|
||
(In reply to Stefan Plewako [:stef] from comment #18)
> Right now tracking.label ("Tracking") is not visible at all on OS X and it
> looks plainly wrong.
Is this expected?
Flags: needinfo?(paolo.mozmail)
Assignee | ||
Comment 20•9 years ago
|
||
(In reply to Stefan Plewako [:stef] from comment #18)
> Right now tracking.label ("Tracking") is not visible at all on OS X and it
> looks plainly wrong.
What looks wrong in particular? If you have the "privacy.trackingprotection.ui.enabled" preference set to false, then you should see "tracking.label" in the same way as the current Aurora branch. If the preference is set to true, then you should see the new "trackingProtectionHeader.label" header instead.
Flags: needinfo?(paolo.mozmail)
Comment 21•9 years ago
|
||
(In reply to :Paolo Amadini from comment #20)
> What looks wrong in particular? If you have the
> "privacy.trackingprotection.ui.enabled" preference set to false, then you
> should see "tracking.label" in the same way as the current Aurora branch. If
> the preference is set to true, then you should see the new
> "trackingProtectionHeader.label" header instead.
It shouldn't replace header/caption (in bold) and should be displayed below - see location bar section below if in doubt.
Assignee | ||
Comment 22•9 years ago
|
||
(In reply to Stefan Plewako [:stef] from comment #21)
> It shouldn't replace header/caption (in bold) and should be displayed below
> - see location bar section below if in doubt.
This is expected, it's an intentional design decision to keep the UI simple, despite being a slightly different solution from what we usually do in the preferences dialog.
Comment 23•9 years ago
|
||
(In reply to :Paolo Amadini from comment #22)
> This is expected, it's an intentional design decision to keep the UI simple,
> despite being a slightly different solution from what we usually do in the
> preferences dialog.
Thankfully this aspect of incontent preferences mess is workaroundable in l10n.
Comment 24•9 years ago
|
||
Indeed, so make the XUL more complex to simplify the UI, resulting in workarounds in l10n and theming...
Reporter | ||
Comment 25•9 years ago
|
||
In this case the complexity is imposed by external constraints that require keeping the old UI around along with the new. If anyone wants to help, Paolo's offer in comment 16 still stands.
Comment 26•9 years ago
|
||
Tested this in latest nightly by adding back the old caption, replacing trackingprotectionbox caption with its content (rm caption tags), removing trackingprotectionpbmbox caption entirely with devtools inpector and…
(In reply to Panos Astithas [:past] from comment #25)
> In this case the complexity is imposed by external constraints that require
> keeping the old UI around along with the new.
Could you explain that in more detail?
I don't see how repurposing caption has anything to do with alternative version living behind the pref.
> If anyone wants to help,
> Paolo's offer in comment 16 still stands.
(In reply to :Paolo Amadini from comment #16)
> With the default theme, this makes the buttons on the right aligned in a
> better way. The difference however is minor enough that I wouldn't mind
> reviewing a patch in a new bug for moving the <caption> out of the hbox.
Current implementation seems to make buttons on the right aligned in a better way only if the decision was made to repurpose caption - when left untouched buttons align equally well in the context where they belong and not to some undocumented atheistic author decision about what captions/headers are for and how they should display in relation to other elements.
I also think that it was proven that the change in not that minor at all and explanations provided do not meet reality really.
Comment 27•9 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Highlight the feature
[Suggested wording]: Tracking Protection can be enabled in non-private windows
[Links (documentation, blog post, etc)]:
Ritu, maybe we want to add this in the release notes.
relnote-firefox:
--- → ?
Flags: needinfo?(rkothari)
Comment 29•9 years ago
|
||
Folks, we are not shipping in 46. There was some under-the-hood work here to help facilitate future experimentation. This work would allow us to more easily launch experiments to test Tracking Protection for breakage, collect user data and feedback, etc. But this work is just that foundational work. We haven't done the experiments. Tracking Protection cannot be enabled any more easily outside Private Windows, the only method is still via about:config.
We should not issue a release note here.
Flags: needinfo?(lhenry)
You need to log in
before you can comment on or make changes to this bug.
Description
•