focus-android icon indicating copy to clipboard operation
focus-android copied to clipboard

Support blocking of 3rd party cookies

Open bbinto opened this issue 8 years ago • 19 comments

Why

  • Provide additional tracking protection for users
  • Protects users during an active session

What

  • User can turn on 3rd party cookie blocking

Acceptance Criteria (how do I know when I’m done?)

  • 3rd party cookies are blocked and off by default
  • User can turn this feature on/off via settings
  • Toggle off in menu will turn off 3rd party cookie blocking as well
  • Probes to see if users have setting turned off/on

@bbinto to check with Softvision to test blockage for top 10 Alexa websites


More info:

We do block trackers and some ads, but not 3rd party cookies by default.

After talking to @snorp and @pocmo, it seems to not be a huge effort to include this, and promote it once GDPR goes into effect.

Will it cause more breakage?

Hoping for 5.0

bbinto avatar Mar 19 '18 18:03 bbinto

@pocmo to check if WebView API provides this (5.0), otherwise we'll do it in 6.0 with GeckoView

bbinto avatar Mar 20 '18 17:03 bbinto

Third party cookies API for WebView - https://developer.android.com/reference/android/webkit/CookieManager.html#setAcceptThirdPartyCookies(android.webkit.WebView,%20boolean)

ekager avatar Mar 20 '18 17:03 ekager

GeckoView request on Bugzilla - https://bugzilla.mozilla.org/show_bug.cgi?id=1447390

ekager avatar Mar 20 '18 17:03 ekager

Just checking in to let you know that we may need a Settings control for Cookies.

Thankfully, it’s pretty straightforward. Cookies is an item that belongs under “Privacy” (in current structure) or under “Privacy & Security” (in future structure, as discussed in #2357).

Cookies can have three values under it:

  1. Enabled
  2. Enabled, excluding 3rd party
  3. Disabled

We will follow Fennec’s implementation for UX – it’s a simple modal menu.

brampitoyo avatar Mar 26 '18 02:03 brampitoyo

@bbinto please decide if this is going in 5.0 or not.

Sdaswani avatar Mar 27 '18 17:03 Sdaswani

I’d love to get the in for 5.0.Does @BrianNJones need to provide strings?On Mar 27, 2018, at 11:59 AM, Susheel Daswani [email protected] wrote:@bbinto please decide if this is going in 5.0 or not.—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

bbinto avatar Apr 01 '18 19:04 bbinto

Assigning to @BrianNJones for strings.

Sdaswani avatar Apr 02 '18 05:04 Sdaswani

@Sdaswani I don’t think we need help from @BrianNJones on this, since the strings is straightforward. Use what I’ve suggested up there.

brampitoyo avatar Apr 04 '18 05:04 brampitoyo

Summarising my conversation with @ekager about the cookie blocking state in each menu item:

  1. Enabled = no cookies blocked
  2. Enabled, excluding 3rd party = some cookies blocked
  3. Disabled = all cookies blocked

brampitoyo avatar Apr 05 '18 02:04 brampitoyo

Hey @brampitoyo quick question from the user perspective. Should cookies clear if I turn off cookies while in a session? For example if I log into Twitter, then go turn off Cookies, Twitter reloads and I'm not logged in. But if I go back and turn on Cookies again, I'm logged in. Is this expected?

ekager avatar Apr 05 '18 18:04 ekager

Hi @ekager, the behaviour you noted is as expected.

Users who have turned their cookies off do expect their login state to change. If they were signed in when cookies is enabled, they’re not going to be signed in when cookies are disabled.

When cookies is re-enabled, I would expect whatever problems I’ve had to be fixed. This means that the cookies that Focus had stored should be restored, as long as the garbage bin icon hadn’t been tapped.

brampitoyo avatar Apr 08 '18 23:04 brampitoyo

Additionally, this is how the TP toggle should behave in response to different cookie states.

  • Cookie states does not impact the TP toggle. Whatever cookie state you have set, TP toggle is set to on by default.
  • On the other hand, the TP toggle does impact cookie states. Whatever cookie state you have set, when TP toggle is set to off, cookie state must be set to enabled.

By accepting all cookies, we will ensure that website problems have a higher chance to be solved when the TP toggle is turned off.

brampitoyo avatar Apr 09 '18 00:04 brampitoyo

@brampitoyo I think we do need new strings. We're already using a "Block xxx xxx" construction for TP. This structure aligns with that:

Block cookies

  • Yes
  • Block 3rd-party cookies only
  • No

Also not confident most users will understand reference to 3rd-party cookies.

BrianNJones avatar Apr 11 '18 18:04 BrianNJones

Looks good to me! @BrianNJones and @brampitoyo are these the final strings for this feature?

ekager avatar Apr 11 '18 21:04 ekager

I agree with @BrianNJones about using the “Block” verbiage to match with other menu items. Let’s use that.

I similarly worry about user understanding of 3rd-party cookies. SUMO wrote a great plain language explanation:

Third-party cookies are cookies that are set by a website other than the one you are currently on. For example, cnn.com might have a Facebook like button on their site. That like button will set a cookie that can be read by Facebook. That would be considered a third-party cookie.

Some advertisers use these types of cookies to track your visits to the various websites on which they advertise. If you are concerned about this, you can disable third-party cookies in Firefox.

I wonder if there’s a way for us to include a link to this SUMO article, or to shorten the explanation down to a few words?

But anyway, since the string now looks okay, let’s close this issue and open another one to talk about how to best explain this concept.

brampitoyo avatar Apr 11 '18 23:04 brampitoyo

Verified this feature on the Focus Beta v5.0 build. Devices: Sony Xperia Z5 Premium (Android 6.0.1) Google Pixel (Android 8.1.0)

sv-ohorvath avatar Apr 30 '18 12:04 sv-ohorvath

We've written a SUMO article for this feature and linked it from the "What's New..." page: https://support.mozilla.org/en-US/kb/block-cookies-firefox-focus-android

jonichan avatar May 01 '18 01:05 jonichan

Hey @brampitoyo should we open a new issue to include a link to the cookies SUMO page in the Settings menu?

ekager avatar May 01 '18 02:05 ekager

@ekager Yes, we should. I’ve filed #2569 to do this.

brampitoyo avatar May 01 '18 03:05 brampitoyo