Closed Bug 1433585 Opened 6 years ago Closed 6 years ago

Block cookies policy does not block cookies

Categories

(Firefox :: Enterprise Policies, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox60 --- affected

People

(Reporter: Abe_LV, Unassigned)

References

Details

Steps to reproduce:
Screen capture- https://testing-1.tinytake.com/sf/MjMwMzYwOV83MDY1NzM1

1. Set policy as-
{
  "policies": {
    "cookies": {
      "allow": [      
      ],
      "block": [
        "https://www.cnn.com/"
      ]
    }
  }
}
 

2. Go to Preferences -> Privacy and Security -> Remove Individual Cookies
   and remove cookies
3. Go to https://www.cnn.com/
4. Close the tab of https://www.cnn.com/
5. Restart the browser
6. Go to Preferences -> Privacy and Security -> Remove Individual Cookies
   and check if cookies exist from cnn.com

Actual Result:
Cookies are not blocked by the policy

Expected Result:
Cookies should be blocked when a cookie-block policy is in use.
Flags: needinfo?(felipc)
After investigating this we found out what was the problem. The policy is working correctly, but no single entry can fully block cnn.com.

The problem is that we were visiting cnn.com directly, which got redirected to www.cnn.com. To block that, we need two entries:

cnn.com    =>  blocks cnn.com, but not any subdomains
.cnn.com   =>  blocks any subdomains, but not cnn.com

I'll make sure to make this clear on the documentation for this policy when we write more detailed notes.
Flags: needinfo?(felipc)
Closing this as "Works for Me" because the issue is resolved by adding two entries for cnn.com(see comment 1).
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.