Closed Bug 1586934 Opened 5 years ago Closed 5 years ago

[Protections Panel] Cookies subview says "cross-site tracking cookies" for all cookieBehaviors when there's a site exception

Categories

(Firefox :: Protections UI, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Firefox 76
Tracking Status
firefox71 --- wontfix
firefox76 --- fixed

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"

Summary: [Protections Panel] Cookies subview says "cross-site tracking cookies" when cookieBehavior=3 and there's a site exception → [Protections Panel] Cookies subview says "cross-site tracking cookies" when cookieBehavior=1 and there's a site exception

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?

Adding Betsy and Eric since we may need new strings.

Priority: -- → P3
Whiteboard: [privacy-panel][skyline] → [privacy-panel]
Component: Site Identity → Protections UI

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P3 → --

Hmph

Priority: -- → P3

New strings:

Blocking Third-Party Cookies
Blocking Cookies

Not Blocking Third-Party Cookies
Not Blocking Cookies

Mentor: nhnt11

Please assign this bug to me.

Assignee: nobody → scientistartist
Status: NEW → ASSIGNED

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.

(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.

(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

Summary: [Protections Panel] Cookies subview says "cross-site tracking cookies" when cookieBehavior=1 and there's a site exception → [Protections Panel] Cookies subview says "cross-site tracking cookies" for all cookieBehaviors when there's a site exception

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.

(In reply to Betsy Mikel [:betsymi] from comment #5)

New strings:

Blocking Third-Party Cookies
Blocking Cookies

Not Blocking Third-Party Cookies
Not Blocking Cookies

Betsy,

Under which scenarios would "Blocking Cookies" and "Not Blocking Cookies" be displayed in subview?

(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

(In reply to Meena Murthy from comment #11)

(In reply to Betsy Mikel [:betsymi] from comment #5)

New strings:

Blocking Third-Party Cookies
Blocking Cookies

Not Blocking Third-Party Cookies
Not Blocking Cookies

Betsy,

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. :)

Pushed by shindli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4610dabc0fc0 Fixed cookie subview for all cookieBehaviors when thers's a site exception. r=nhnt11
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
Attachment #9135611 - Attachment is obsolete: true
Depends on: 1625460
No longer depends on: 1625460
QA Whiteboard: [qa-76b-p2]
QA Contact: ciprian.georgiu
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: