News for hackers. Stuff that matters.
Re:Brave disables Chromium FLoC features by jefftk on Saturday April 10, 2021 @08:51PM (#26766671)
"Users of browsers that support FLoC can either send real FLoC or random FLoC, but they cannot send no FLoC."

Why? I would expect a browser extension to be able to override document.interestCohort to throw an exception?

(Disclosure: I work at Google, speaking only for myself)

Re:Brave disables Chromium FLoC features by 1vuio0pswjnm7 on Saturday April 10, 2021 @09:39PM (#26766864)
Most users never even change defaults let alone install extensions. There is no described option to disable FLoc in the browser. Why not. Surely the design decision not to include an option to disable FLoC was intentional. That's the point I was making.
Re:Brave disables Chromium FLoC features by Izkata on Sunday April 11, 2021 @02:05PM (#26772191)
> document.interestCohort

If that's an actual way to access it, "undefined" will have to be acceptable due to browsers that don't support it.

Re:Brave disables Chromium FLoC features by jefftk on Sunday April 11, 2021 @02:40PM (#26772444)
Yup! Or a Promise that never resolves (since it's async)
Re:Brave disables Chromium FLoC features by Izkata on Sunday April 11, 2021 @11:47PM (#26775907)
Wait, what? Async? Isn't your cohort supposed to be precomputed?

And undefined would still have to be handled anyway, as browsers without support wouldn't have the attribute at all (at least for several years after it was accepted, for everything to get the new feature).

Re:Brave disables Chromium FLoC features by jefftk on Monday April 12, 2021 @10:48AM (#26780015)
> Async? Isn't your cohort supposed to be precomputed?

The explainer indicates it's a Promise: "cohort = await document.interestCohort()" -- https://github.com/WICG/floc

One reason to make it async could be to give browsers the option to gate access behind a permissions prompt in some circumstances.

> And undefined would still have to be handled anyway, as browsers without support wouldn't have the attribute at all

Definitely. There are also browsers that are unlikely to add support (ex: Brave, as we're discussing)