News for hackers. Stuff that matters.
Re:Total Cookie Protection by 4cao on Tuesday February 23, 2021 @09:42AM (#26237810)
> Total Cookie Protection makes a limited exception for cross-site cookies when they are needed for non-tracking purposes, such as those used by popular third-party login providers.

Would be great to have some more details about it: in particular, how do I turn it off if I prefer to add any exceptions manually.

Edit 1: Mozilla Hacks blog [1] has a bit more but still doesn't answer the question:

> In order to resolve these compatibility issues of State Partitioning, we allow the state to be unpartitioned in certain cases. When unpartitioning is taking effect, we will stop using double-keying and revert the ordinary (first-party) key.

What are these "certain cases?"

Edit 2: Reading on, there's this bit about storage access grants heuristics [2] linked from the blog. But is that really it, or is there a hardcoded whitelist as well? If so, it'd be great to see it.

This bit in particular is ambiguous in how it's supposed to work exactly (who's "we" here):

> If we discover that an origin is abusing this heuristic to gain tracking access, that origin will have the additional requirement that it must have received user interaction as a first party within the past 30 days.

1. https://hacks.mozilla.org/2021/02/introducing-state-partitio...

2. https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Pri...

Re:Total Cookie Protection by johannh on Tuesday February 23, 2021 @10:10AM (#26238123)
(I’m one of the developers of this feature and co-author of the blog posts)

This is a great question and I’m glad you found the answer, you probably understand that for many blog posts we avoid going into too much technical detail.

To answer your final question, there is no hardcoded allow-list for State Partitioning. The heuristics as described on MDN are accurate.

Re:Total Cookie Protection by stavros on Tuesday February 23, 2021 @10:28AM (#26238359)
Have you considered using something like Expounder (https://skorokithakis.github.io/expounder/) in your posts? (Disclosure, I made it but it's a small open source lib).

I don't see why we can have full-blown web apps but our text needs to be very specifically just text these days.

Re:Total Cookie Protection by wonder_er on Tuesday February 23, 2021 @11:35AM (#26239288)
This is super cool!

I've only recently discovered that Markdown has footnotes, and I've gone to down adding footnotes everywhere.

I use Jekyll + markdown on my website, and I now have lots of fun adding footnotes to my writing.

I added a "footnote tutorial" for readers on https://josh.works/turing-backend-prep-01-intro#why-this-rub..., to help them learn how to navigate the footnotes.

I _love_ your library, and I love the problem that you're solving with it.

Along the way, I've looked at Gwern's sidenotes[0] and Nate Berkapec's "footnotes"/sidenotes [1].

I eventually want to do something more "in-line", like what you've down with Expounder, but I've been satiated with markdown footnotes for now.

[0]: https://www.gwern.net/Sidenotes# [1]: https://www.nateberkopec.com/blog/2017/03/10/how-i-made-self...

Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @11:45AM (#26239448)
Thank you! I used to use footnotes too, but I didn't like how they took you out of the flow of the text. Expounder aims to specifically let users stay in the flow of reading, which is why one of the core instructions is that the text should work in context, as if it were never hidden.
Re:Total Cookie Protection by mrec on Tuesday February 23, 2021 @01:45PM (#26241085)
It's good to see experiments along these lines. I really like Wikipedia's recent-ish rich tooltips on link mouseover, and the HTML <summary>/<details> elements deserve to be more widely known.

From the demo it look as if Expounder is one-way - once you've expanded something, you can't collapse it again. Is that correct?

Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @01:54PM (#26241231)
Re:Total Cookie Protection by ghaff on Tuesday February 23, 2021 @12:07PM (#26239733)
I miss footnotes on the printed page because, in addition to references (where they're probably better as endnotes to be honest) I find they're great to use for parentheticals that bulletproof a point, add some background that's not essential to a point being made, etc. But these latter uses work significantly less well in a blog post or ebook.
Re:Total Cookie Protection by gknoy on Tuesday February 23, 2021 @02:18PM (#26241580)
Oh, wow. The Sidenotes discussion from Gwern that you linked is _phenomenal_. Thank you for sharing these.
Re:Total Cookie Protection by iFreilicht on Tuesday February 23, 2021 @05:15PM (#26243637)
What I dislike about footnotes like that is that they pollute the browser history. If you want to leave the page but clicked on a few footnotes and their backlinks, you have to go “back” through all of them.

Thank you so much for posting gwern’s sidenote article! I want to use sidenotes on my site and this was a very valuable resource!

Re:Total Cookie Protection by psychoslave on Wednesday February 24, 2021 @01:48AM (#26247324)
Back button usually come with an unfoldable list of jump points.

I am more ennoyed by how the jump points are turned into a useless feature by so many javascript out there which load new content without impacting the browsing history.

Re:Total Cookie Protection by tpoacher on Tuesday February 23, 2021 @10:50AM (#26238652)
I love this, but I'm a bit surprised that you do not include the ability to "unexpound" an "expounded" term. Is that intentional?

If I were reading a technical text, I would definitely end up reading most paragraphs at least twice. It would make no sense to keep the expounded terms in the second time; I'd be tempted to hide them back as soon as I was finished with them the first time.

Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @10:55AM (#26238717)
Yes, it is intentional. The functionality actually exists, it's just not mentioned:

https://github.com/skorokithakis/expounder/blob/master/examp...

It's because, once clicked, the new text should become part of the old, and that's it. Presumably you've already read it, and I don't want to make the viewer have to re-collapse the links every time.

Your use case makes sense, though, which is why the feature was included. Maybe I should mention it in the README.

Re:Total Cookie Protection by mkl on Tuesday February 23, 2021 @05:43PM (#26243996)
I think collapsing would also be useful when all you need is a quick reminder, not a full explanation. Like "What's that again? [click to expand] Oh that's right [click to collapse]". That's easier than finding the place to skip to.
Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @05:46PM (#26244022)
Hmm, true, I've added it to the README!
Re:Total Cookie Protection by gostsamo on Tuesday February 23, 2021 @01:57PM (#26241277)
Hi, can you consider adding some accessibility to the library? Currently, I don't have a way to know that a term could be expanded, because the signal seems to be visual only and not detectable via a screen reader. Adding aria-pressed might be the solution, but I'm not an expert, just an user.
Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @02:03PM (#26241383)
Oh, that's a good point! I didn't realize it wouldn't be discoverable, you're right.
Re:Total Cookie Protection by gostsamo on Tuesday February 23, 2021 @02:36PM (#26241801)
Thanks!
Re:Total Cookie Protection by dmix on Tuesday February 23, 2021 @01:57PM (#26241284)
I feel like the inserted text should be highlighted with a light yellow background or some indicator. Just appearing like that inline seems a bit funky or unexpected.

But I see there is a css class which is nice.

Just a simple rgba(x,x,x,0.5) where the x’s are the usual yellow height.

Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @02:04PM (#26241397)
I prefer to leave the styling to the user, the library is intentionally minimally invasive there...
Re:Total Cookie Protection by wikibob on Tuesday February 23, 2021 @03:07PM (#26242212)
I agree with this. It would be helpful.
Re:Total Cookie Protection by prox on Tuesday February 23, 2021 @11:49AM (#26239499)
I wonder what this does to SEO, does the hidden text get indexed, and is it not picked up as a dark pattern by crawlers?
Re:Total Cookie Protection by amai on Wednesday February 24, 2021 @08:59AM (#26249868)
Why use this instead of footnotes? For example in these Feynman lectures below the footnotes and references to formulas and images activate then you hover over it. These footnote can even include graphics and formulas.

https://www.feynmanlectures.caltech.edu/III_21.html

Re:Total Cookie Protection by StavrosK on Wednesday February 24, 2021 @09:29AM (#26250129)
To me, footnotes serve a different purpose, e.g. linking to papers, like the Feynman lectures site does. Expounder is more about indicating that you don't know something, so the text itself can change to accommodate you.
Re:Total Cookie Protection by psychoslave on Wednesday February 24, 2021 @01:41AM (#26247282)
I like how it unfold the text, but it doesn't give visual hint on what was unfolded, and doesn't provide a way to fold it again, it seems.

Be it topographic emphasize or coloring, there should be an hint. And clicking the text thus emphasized should collapse it.

That's my opinion, otherwise, nice done.

Re:Total Cookie Protection by StavrosK on Wednesday February 24, 2021 @02:36AM (#26247584)
It should animate the text while unfolding, but, other than that, there's no need to know what was unfolded. You just click what you don't know and eventually read the relevant info!
Re:Total Cookie Protection by tannhaeuser on Tuesday February 23, 2021 @11:12AM (#26238986)
Hasn't HTML the summary and details elements for this specifically, or am I overlooking something?
Re:Total Cookie Protection by gwern on Tuesday February 23, 2021 @05:23PM (#26243748)
<abbr>/<defn> are also quite relevant, and would fit a number of the example uses better (like the definition of 'atoms').
Re:Total Cookie Protection by tpoacher on Tuesday February 23, 2021 @11:27AM (#26239182)
Not the author, but presumably you're overlooking the fact that the expounded term doesn't necessarily have to be "inside" or even "neighbouring" to the details element.

The author's intent here is to have terms explained in the text explicitly in such a way that it would 'augment' the text with an explanation somewhere further down the line, but not necessarily "in-place".

It is also intended for text specifically, rather than replacing one element with another.

I agree that display/summary are similar in spirit though, I had not come across those before.

Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @11:16AM (#26239035)
As far as I know, those work quite differently.
Re:Total Cookie Protection by chrisweekly on Tuesday February 23, 2021 @10:49AM (#26238634)
Yes, this! Your lib looks awesome. Thanks for publishing it and sharing here!
Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @11:00AM (#26238798)
Thank you!
Re:Total Cookie Protection by withinboredom on Tuesday February 23, 2021 @10:43AM (#26238556)
This looks amazing. Would you mind if I packaged this in a WordPress plugin?
Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @10:45AM (#26238581)
Not at all, go for it!
Re:Total Cookie Protection by withinboredom on Tuesday February 23, 2021 @05:16PM (#26243662)
Awesome. Just a heads up, I've already finished it and just submitted it. HOWEVER, the plugin has to be licensed as GPLv2, but it shouldn't affect your license (since it's just using your code as a library). I'd feel better about it (and it will probably be smoother sailing during the review process) if I could submit your names as authors on the plugin.

If you want to be listed as an author, just drop over to https://github.com/withinboredom/expounder-wordpress/tree/ma... and let me know your wordpress.org user names in an issue.

Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @05:22PM (#26243732)
Thanks! I don't think either of us have a Wordpress username, but it'd be great if you could include a link to the repo in the description.

Thanks again for your help!

Re:Total Cookie Protection by withinboredom on Tuesday February 23, 2021 @05:26PM (#26243789)
Will do!
Re:Total Cookie Protection by accounted on Tuesday February 23, 2021 @10:50AM (#26238660)
I would like this as well, please share once you do.
Re:Total Cookie Protection by withinboredom on Tuesday February 23, 2021 @05:17PM (#26243680)
I've submitted it to the WordPress.org plugins directory, but you can download it right now from the repo in the sibling comment.
Re:Total Cookie Protection by clankyclanker on Tuesday February 23, 2021 @12:17PM (#26239891)
Is there support for an expound-all button on a page? I definitely have days where I just want to also read the details and don’t want to click a dozen times while I’m reading.
Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @12:25PM (#26240010)
Not currently, but it shouldn't be hard to add a button with one line of JS to add the required CSS class to all the elements. This might defeat the purpose, though, as it's kind of intended to save you from reading things you already know.
Re:Total Cookie Protection by atleta on Tuesday February 23, 2021 @10:35AM (#26238461)
Cool! I've been thinking of a similar solution to add to my (planned ;) ) longer blog posts. I'm guilty of going into the details too much sometimes.
Re:Total Cookie Protection by StavrosK on Tuesday February 23, 2021 @10:39AM (#26238512)
Same here, and I didn't like the tradeoff, so I figured I'd solve it with the power of T E C H N O L O G Y.
Re:Total Cookie Protection by samstave on Tuesday February 23, 2021 @01:16PM (#26240633)
That is FN DOPE. Wikipedia should adopt it in full.
Re:Total Cookie Protection by 7800 on Tuesday February 23, 2021 @07:13PM (#26244859)
I know that you didn’t mean to completely throw the conversation from Firefox to Expounder, but you succeeded.

Mozilla who? That’s where we are now.

Re:Total Cookie Protection by urza on Tuesday February 23, 2021 @03:46PM (#26242647)
This should have always been the only way it worked. Plus it should be easier to create white lists of allowed websites and all other cookies delete with every broswer restart. I know it is possible with Firefox but you need to add websites to whitelist manually in deep settings. At least there are some extensions that make it easier, like CookieAutoDelete https://addons.mozilla.org/en-US/firefox/addon/cookie-autode...
Re:Total Cookie Protection by mjevans on Tuesday February 23, 2021 @11:18PM (#26246523)
I would like something like, each site by default gets a bucket by name.

If cookies from another bucket should be shared with other sites, or might be seen when requested by a cross-site load from another site, ask the user a four choice question.

"Allow (site) to see cookies from (site)?"

Always Allow, Just this time, Ask later, Always Deny

Re:Total Cookie Protection by heleninboodler on Tuesday February 23, 2021 @01:59PM (#26241318)
Have you considered that "Total Cookie Protection / Isolation Partition" would be a much better name? :D
Re:Total Cookie Protection by rock_artist on Tuesday February 23, 2021 @03:52PM (#26242712)
What I wonder/concern is how can one decide for legit use. This also sounds like a possibility for discriminating small players with legit use. (similar to Microsoft's SmartScreen)

Would be great to know how are those concerns handled?

Re:Total Cookie Protection by 4cao on Tuesday February 23, 2021 @10:13AM (#26238160)
Thank you for your clarification, and your work on Firefox.

I guess that clears it up.

Re:Total Cookie Protection by appleflaxen on Tuesday February 23, 2021 @03:46PM (#26242640)
> you probably understand that for many blog posts we avoid going into too much technical detail.

Not really... for a highly technical issue like this, at a minimum you should link to the technical details.

There really is no excuse for making every reader of your blog who wants to know the details dig for them independently.

imo, at least.

Re:Total Cookie Protection by johannh on Tuesday February 23, 2021 @05:04PM (#26243522)
Both the more technical blog post as well as the MDN page are linked shortly after that paragraph.
Re:Total Cookie Protection by Caligatio on Tuesday February 23, 2021 @10:02AM (#26238052)
I agree I wish they had more detail about the exceptions.

I've been a FPI user for years as a best-effort to reign in tracking but there are a common few sites that just break with FPI (50% of the time PayPal checkout doesn't work). Even if "Total Cookie Protection" is only 98% as effective as FPI, I'm making the switch.

EDIT: FPI = first-party isolation

Re:Total Cookie Protection by johannh on Tuesday February 23, 2021 @10:14AM (#26238167)
Yes, it’s essentially that, FPI with workarounds for common breakage. You should switch from FPI, this is essentially another take on FPI by some of its original developers, so it should have fewer issues overall, not just site breakage.
Re:Total Cookie Protection by mrweasel on Tuesday February 23, 2021 @10:33AM (#26238437)
It will be interesting to see how many sites break with “Total Cookie Protection”. Currently I use what I consider are bare minimum of anti-tracking, that is what I can make Firefox provide on its own, plus the DuckDuckGo browser extention. Those two things alone break an alarming number of sites. The DDG extention is pretty regularly mistaken for an ad-blocker.

Given Firefoxs low adoption, I fear that website owner will just ignore that their excessive tracking breaks their site in Firefox... “Works in Chrome... good enough”

Re:Total Cookie Protection by kiwijamo on Tuesday February 23, 2021 @12:23PM (#26239981)
I have strict tracking enabled in Firefox as well as uBlock Origin and I've yet to see a site broken. The only "broken" ones I've seen are badly coded ones that also fail to work in Chrome. Reputable sites tend to be just fine. YMMV.
Re:Total Cookie Protection by ficklepickle on Tuesday February 23, 2021 @01:57PM (#26241271)
FF blocked fingerprinting by visa during a transaction. To my surprise, even that did not break.
Re:Total Cookie Protection by lentil_soup on Tuesday February 23, 2021 @10:19AM (#26238248)
FPI?
Re:Total Cookie Protection by iruoy on Tuesday February 23, 2021 @10:23AM (#26238309)
Re:Total Cookie Protection by laurensr on Tuesday February 23, 2021 @10:11AM (#26238139)
So if I happen to run a less popular third-party login provider, my fate is sealed?
Re:Total Cookie Protection by johannh on Tuesday February 23, 2021 @10:14AM (#26238175)
No, there’s no allow-list, you get the same heuristics as described on that MDN page.
Re:Total Cookie Protection by nuker on Tuesday February 23, 2021 @10:08PM (#26246166)
> Total Cookie Protection makes a limited exception for cross-site cookies when they are needed for non-tracking purposes, such as those used by popular third-party login providers.

Facebook and Google will be excepted? This makes it a joke, sadly.

Re:Total Cookie Protection by cmonnow on Tuesday February 23, 2021 @10:32PM (#26246285)
This is basically Google (Chrome) paying Mozilla (Firefox) to kill 3rd party cookies because Google has a better way to fingerprint users without 3rd party cookies, because they have SO MUCH data about us.

This move is aimed at killing other AdTech companies which rely on 3rd party cookies to track users.

They painting this as a 'PRIVACY' move, after they have already found other ways of tracking users across websites and devices.

Re:Total Cookie Protection by matheusmoreira on Wednesday February 24, 2021 @12:43PM (#26252976)
It's still a good thing though. Better to be tracked by one company than a whole industry.
Re:Total Cookie Protection by nuker on Wednesday February 24, 2021 @06:43PM (#26257769)
One company is the whole industry, Google
Re:Total Cookie Protection by Daho0n on Wednesday February 24, 2021 @06:03PM (#26257384)
No. There's no whitelist. RTFM.
Re:Total Cookie Protection by nuker on Wednesday February 24, 2021 @06:44PM (#26257784)
I did not say whitelisted, I said popular.
Re:Total Cookie Protection by thayne on Tuesday February 23, 2021 @10:36PM (#26246303)
I wish there was something better than cookies for these use cases. But then, designing something that can't be abused for tracking, that empowers all the legitimate use cases is also really hard, maybe even impossible.
Re:Total Cookie Protection by kome on Tuesday February 23, 2021 @09:48AM (#26237878)
> Would be great to have some more details about it: in particular, how do I turn it off if I prefer to add any exceptions manually.

(on mac) Firefox > Preferences > Privacy & Security > Custom

Re:Total Cookie Protection by 4cao on Tuesday February 23, 2021 @10:06AM (#26238089)
The question is how to use "Total Cookie Protection" without any hardcoded or heuristics-based exceptions.

Your answer seems to be about how to turn off "Enhanced Tracking Protection"/"Total Cookie Protection" or parts of it (resulting in weaker protection). I want to keep it enabled and disable the exceptions (for stronger protection), i.e. the opposite.

I haven't installed the new version yet, so can't say for sure, but as far as I know there is no setting for this in that menu. [1]

If I misunderstood what you meant, please elaborate.

1. https://support.mozilla.org/en-US/kb/enhanced-tracking-prote...