When STP is disabled, the social category item is not correctly handled by the section logic
Categories
(Firefox :: Protections UI, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox72 | --- | fixed |
People
(Reporter: nhnt11, Assigned: nhnt11)
References
Details
Attachments
(4 files)
Since we are only setting .hidden on the category item, the logic in reorderCategoryItem doesn't realize that it needs to pretend that the social category is basically always "None Detected".
Here's just one way to get into a state where the bug is visible:
- Set
urlclassifier.features.socialtracking.annotate.blacklistHoststosocial-tracking-protection-digest256.dummytracker.org(currently necessary but this might be worked around on Steve's site at some point). - Open https://senglehardt.com/test/trackingprotection/test_pages/social_tracking_protection.html
- Open
about:configin a new tab andprivacy.socialtracking.block_cookies.enabledto false. - Close the tab. The previous tab with Steve's site will be selected.
- Now, open the protections panel.
Expected:
The "Allowed" section is completely hidden
Actual:
The "Allowed" section header is shown but with no items under it. (Screenshot attached.)
Gary, do you want to work on this? I think this should work:
- Instead of setting
.hiddenon the category item, set a custom attribute (e.g.uidisabledor something) - Add a CSS rule to set
display: none;on elements with this attribute. - Add
|| categoryItem.hasAttribute("uidisabled")to the condition here
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Never mind, I had some time to make a patch. :)
| Assignee | ||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
(In reply to Nihanth Subramanya [:nhnt11] from comment #2)
Never mind, I had some time to make a patch. :)
Thanks, please let me know if anything I can help :D
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
Comment 9•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2fa5d33ca68a
https://hg.mozilla.org/mozilla-central/rev/be848609eea8
https://hg.mozilla.org/mozilla-central/rev/eaf25cd8fd03
Description
•