[Protections Panel] Cookies subview says "cross-site tracking cookies" for all cookieBehaviors when there's a site exception
Categories
(Firefox :: Protections UI, defect, P3)
Tracking
()
People
(Reporter: nhnt11, Assigned: scientistartist, Mentored)
References
Details
(Whiteboard: [privacy-panel])
Attachments
(1 file, 1 obsolete file)
Set cookieBehavior=1, and disable TP for the site. Open the cookies subview. The header string says "cross-site tracking cookies" instead of "third-party cookies"
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
We may also want to consider what the strings should look like fro cookie behavior 2 and 3. If we block all cookies, what does the subview show? all cookies?
Comment 2•5 years ago
|
||
Adding Betsy and Eric since we may need new strings.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.
Comment 5•5 years ago
|
||
New strings:
Blocking Third-Party Cookies
Blocking Cookies
Not Blocking Third-Party Cookies
Not Blocking Cookies
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Please assign this bug to me.
Updated•5 years ago
|
Reporter | ||
Comment 7•5 years ago
•
|
||
The logic for setting this string is here: https://searchfox.org/mozilla-central/rev/6cd54550a27e2f6ca0755a25328f769e41e524f4/browser/base/content/browser-siteProtections.js#749
We need to improve the logic to handle each cookieBehavior case.
Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Tanvi Vyas[:tanvi] from comment #1)
We may also want to consider what the strings should look like fro cookie behavior 2 and 3. If we block all cookies, what does the subview show? all cookies?
With Site Exception for cookie behavior 2 = BEHAVIOR_REJECT which is "All cookies"
Content blocking label shows "All Cookies"
On clicking "All Cookies", subview opens the Protections title shows as "Not Blocking Cross-Site Tracking Cookies"
without the site exception for same cookie behavior = 2 Protections title shows as "All Cookies Blocked"
With Site Exception for cookie behavior 3 = BEHAVIOR_LIMIT_FOREIGN which is about Unvisted site cookies
Content blocking label shows "Cross-site Tracking Cookies"
On clicking "Cross-site Tracking Cookies", subview opens the Protections title shows as "Not Blocking Cross-Site Tracking Cookies"
without the site exception for same cookie behavior = 3 Protections title still shows as "Not Blocking Cross-Site Tracking Cookies"
In updateCategoryItem() and updateSubView() under ThirdPartyCookies in browser-siteProtections.js there is logic for setting these, but needs to be checked if it is hitting this point.
Assignee | ||
Comment 9•5 years ago
|
||
(In reply to Meena Murthy from comment #8)
(In reply to Tanvi Vyas[:tanvi] from comment #1)
We may also want to consider what the strings should look like fro cookie behavior 2 and 3. If we block all cookies, what does the subview show? all cookies?
With Site Exception for cookie behavior 2 = BEHAVIOR_REJECT which is "All cookies"
Content blocking label shows "All Cookies"
On clicking "All Cookies", subview opens the Protections title shows as "Not Blocking Cross-Site Tracking Cookies"
without the site exception for same cookie behavior = 2 Protections title shows as "All Cookies Blocked"With Site Exception for cookie behavior 3 = BEHAVIOR_LIMIT_FOREIGN which is about Unvisted site cookies
Content blocking label shows "Cross-site Tracking Cookies"
On clicking "Cross-site Tracking Cookies", subview opens the Protections title shows as "Not Blocking Cross-Site Tracking Cookies"
without the site exception for same cookie behavior = 3 Protections title still shows as "Not Blocking Cross-Site Tracking Cookies"
In updateCategoryItem() and updateSubView() under ThirdPartyCookies in browser-siteProtections.js there is logic for setting these to "Unvisted sites", but needs to be checked if it is hitting this point.
P.S. Did not know how to edit so adding as another comment
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 10•5 years ago
|
||
I had a chat with Meena about the Unvisited Sites issue on Matrix.
Our title-setting code is handling this cookieBehavior value, but it will never be executed because we don't consider cookie blocking enabled for this case - so we hit an early return.
I'm not aware of any plans to change the semantics of ThirdPartyCookies.enabled, so I think we can remove that case.
Assignee | ||
Comment 11•5 years ago
|
||
(In reply to Betsy Mikel [:betsymi] from comment #5)
New strings:
Blocking Third-Party Cookies
Blocking CookiesNot Blocking Third-Party Cookies
Not Blocking Cookies
Betsy,
Under which scenarios would "Blocking Cookies" and "Not Blocking Cookies" be displayed in subview?
Assignee | ||
Comment 12•5 years ago
|
||
(In reply to Nihanth Subramanya [:nhnt11] from comment #10)
I had a chat with Meena about the Unvisited Sites issue on Matrix.
Our title-setting code is handling this cookieBehavior value, but it will never be executed because we don't consider cookie blocking enabled for this case - so we hit an early return.
I'm not aware of any plans to change the semantics of ThirdPartyCookies.enabled, so I think we can remove that case.
Nihanth, do we remove the "unvisited site" related code in the title-setting switch block here? https://searchfox.org/mozilla-central/source/browser/base/content/browser-siteProtections.js#645
Assignee | ||
Comment 13•5 years ago
|
||
Depends on D67178
Assignee | ||
Comment 14•5 years ago
|
||
Depends on D68038
Reporter | ||
Comment 15•5 years ago
|
||
(In reply to Meena Murthy from comment #11)
(In reply to Betsy Mikel [:betsymi] from comment #5)
New strings:
Blocking Third-Party Cookies
Blocking CookiesNot Blocking Third-Party Cookies
Not Blocking CookiesBetsy,
Under which scenarios would "Blocking Cookies" and "Not Blocking Cookies" be displayed in subview?
This is for the cookie behavior where we block all cookies.
(In reply to Meena Murthy from comment #12)
(In reply to Nihanth Subramanya [:nhnt11] from comment #10)
I had a chat with Meena about the Unvisited Sites issue on Matrix.
Our title-setting code is handling this cookieBehavior value, but it will never be executed because we don't consider cookie blocking enabled for this case - so we hit an early return.
I'm not aware of any plans to change the semantics of ThirdPartyCookies.enabled, so I think we can remove that case.
Nihanth, do we remove the "unvisited site" related code in the title-setting switch block here? https://searchfox.org/mozilla-central/source/browser/base/content/browser-siteProtections.js#645
I don't mind removing it in this patch but we can also file a follow-up bug for it. Please do one of those things. :)
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Description
•