News for hackers. Stuff that matters.
Re:Full third-party cookie blocking and more by pspeter3 on Tuesday March 24, 2020 @03:05PM (#22677810)
I'm confused about if this means that IndexedDB will always wipe data after 7 days. That seems like it would prevent storage from being used for user data in PWAs.
Re:Full third-party cookie blocking and more by jessaustin on Tuesday March 24, 2020 @04:53PM (#22678897)
Wow they buried the lede; I'm glad you highlighted this. This is going to be an interesting situation for some Safari users. "Why did your app delete my data?" "If you don't like that you should use Chrome."

Of course Google could do this too, if they had a reason, even if only downstream from Chromium. It's just a commercial decision. Apple have decided they don't want their users to have usable anonymous web apps. Of course, since they don't support beforeinstallprompt, we already know they don't want their users to have web apps, period. Gotta get that sweet 30% cut!

Re:Full third-party cookie blocking and more by internalthief on Tuesday March 24, 2020 @04:57PM (#22678922)
I doubt that this is going to be an issue for applications using ReactNative or other solutions to package websites as applications.

For applications that have you add it to your home screen using the app icon, it may be more of an issue, but why wouldn't you sync that data back up to the server?

Re:Full third-party cookie blocking and more by jessaustin on Tuesday March 24, 2020 @05:02PM (#22678978)
Yes of course if you're running a business then you're getting users logged in ASAP. There are other models of software development, however. Even if you're in the commercial sector, some users may be less eager than others to sign up for your fine service. Should you preemptively suck in their data, whoops I mean back up their data, without telling them? It seems there could be several responses to that question...

It's fine that Apple don't want to support this valid mode of app distribution and use. It is a valid mode, however.

Re:Full third-party cookie blocking and more by matsemann on Tuesday March 24, 2020 @05:05PM (#22678994)
Just FYI (If I'm reading you correctly): That's not how react native works. It's a native app, not a wrapped website.
Re:Full third-party cookie blocking and more by CodeCube on Tuesday March 24, 2020 @05:20PM (#22679149)
I suspect they just meant regular react
Re:Full third-party cookie blocking and more by eugeniub on Tuesday March 24, 2020 @05:45PM (#22679382)
Ok, that's not how React works either. React is not a "solution to package websites as applications".
Re:Full third-party cookie blocking and more by CodeCube on Tuesday March 24, 2020 @08:27PM (#22680639)
you know .. you're correct, I misread his original post. He was probably conflating reactnative with something like Electron
Re:Full third-party cookie blocking and more by 867-5309 on Tuesday March 24, 2020 @06:04PM (#22679545)
so what is the modern version of PhoneGap?
Re:Full third-party cookie blocking and more by WorldMaker on Tuesday March 24, 2020 @06:40PM (#22679844)
Ionic Capacitor
Re:Full third-party cookie blocking and more by pengstrom on Wednesday March 25, 2020 @04:14AM (#22682830)
Cordova?
Re:Full third-party cookie blocking and more by koolba on Tuesday March 24, 2020 @05:07PM (#22679017)
It’s the usual “this is why we can’t have nice things”. Anything persistent will be turned into a tracking cookie. So eventually everything becomes ephemeral.
Re:Full third-party cookie blocking and more by drdaeman on Tuesday March 24, 2020 @11:21PM (#22681682)
Not if there's a proper opt-in permission prompt, just like for GPS or camera/microphone access.

It's not trivial, though, seeing how notification prompts were abused...

Re:Full third-party cookie blocking and more by currysausage on Wednesday March 25, 2020 @07:11AM (#22683501)
Sites would just instruct users to accept permanent storage in exchange for free content.
Re:Full third-party cookie blocking and more by cutemonster on Wednesday March 25, 2020 @05:25PM (#22688655)
But then why don't they already force visitors to accept push notifications?
Re:Full third-party cookie blocking and more by untog on Tuesday March 24, 2020 @03:58PM (#22678353)
> after seven days of Safari use without user interaction on the site

If it's a PWA that's regularly used you should be fine. But if not, yeah, that's going to be very annoying.

Re:Full third-party cookie blocking and more by cageface on Tuesday March 24, 2020 @04:02PM (#22678386)
If this is really about protecting users and not about kneecapping web apps shouldn't Apple also wipe user data in native apps that haven't been used in a week?
Re:Full third-party cookie blocking and more by progval on Tuesday March 24, 2020 @04:45PM (#22678806)
Outside privacy issues; visiting a website once shouldn't be enough for a website to store as much data as it wants on someone's computer.

Installing a native app is a stronger form of opt-in than simply clicking an URL to a new website.

Re:Full third-party cookie blocking and more by jessaustin on Tuesday March 24, 2020 @05:11PM (#22679045)
Chromium (and derivatives such as Edge) allows users to install web apps. You're right that such a facility could be used as a signal for webkit that a particular site's IDB data should be retained for longer than a week.
Re:Full third-party cookie blocking and more by zamalek on Tuesday March 24, 2020 @05:23PM (#22679172)
> install web apps

That's what a PWA is :). Browsers should lift these restrictions for installed PWAs, and probably do.

Re:Full third-party cookie blocking and more by jessaustin on Tuesday March 24, 2020 @05:32PM (#22679253)
The browser under discussion in TFA doesn't have PWAs as such. [0] Of course I agree with your restatement of what I said browsers should do upthread. b^)

[0] https://caniuse.com/#search=beforeinstallprompt

Re:Full third-party cookie blocking and more by untog on Wednesday March 25, 2020 @09:53AM (#22684504)
Safari still lets you add a web app to the homescreen, though. It could be used as a signal.
Re:Full third-party cookie blocking and more by mtedwards on Wednesday March 25, 2020 @03:03PM (#22687435)
Yeah it seems they are encouraging that as a solution. Unless I’m misunderstanding.

“ Web applications added to the home screen are not part of Safari and thus have their own counter of days of use. Their days of use will match actual use of the web application which resets the timer. We do not expect the first-party in such a web application to have its website data deleted.

If your web application does experience website data deletion, please let us know since we would consider it a serious bug. It is not the intention of Intelligent Tracking Prevention to delete website data for first parties in web applications.”

Re:Full third-party cookie blocking and more by jessaustin on Thursday March 26, 2020 @09:44AM (#22693480)
Was that section originally in TFA? It's encouraging, but it certainly contradicts claims that this will only be applied to "3rd party" stuff in iframes...
Re:Full third-party cookie blocking and more by untog on Tuesday March 24, 2020 @04:04PM (#22678401)
Native apps don't really have the problem of third-party ad networks storing data intermixed with app data in this way, though.
Re:Full third-party cookie blocking and more by detaro on Tuesday March 24, 2020 @04:16PM (#22678512)
The regular reports about tracking in random advertising/... SDKs suggest otherwise
Re:Full third-party cookie blocking and more by pspeter3 on Tuesday March 24, 2020 @04:11PM (#22678460)
Why not though? It seems like third-party SDKs could be included by the developer and stored on my local device.
Re:Full third-party cookie blocking and more by cageface on Tuesday March 24, 2020 @10:32PM (#22681482)
Every iOS app I ever built for a client had Facebook's SDK and tracking installed, at the client's request. Often Google's and Twitter's too and the user has no awareness of this.
Re:Full third-party cookie blocking and more by sroussey on Tuesday March 24, 2020 @09:05PM (#22680922)
They are much worse.
Re:Full third-party cookie blocking and more by quotemstr on Tuesday March 24, 2020 @04:05PM (#22678408)
The seven day wipe is going to encourage further adoption of Facebook or Google centralized logins, since this flow makes state restoration after a cookie wipe least painful. (Even saved login-passwords combinations can become de-synchronized between devices.) I don't think the theoretical benefits of enhanced privacy are worth the concrete costs of internet centralization.
Re:Full third-party cookie blocking and more by progval on Tuesday March 24, 2020 @04:45PM (#22678818)
First-party cookies aren't on the list of affected storage, are they?
Re:Full third-party cookie blocking and more by jefftk on Tuesday March 24, 2020 @05:06PM (#22679004)
https://webkit.org/blog/8613/intelligent-tracking-prevention... already limited 1st party cookies set from JS to 7d.

This post is about them extending it to all storage set from JS.

Re:Full third-party cookie blocking and more by shakna on Tuesday March 24, 2020 @09:42PM (#22681197)
However any cookies set via HTTP, like http secureonly cookies that tend to be used for logging in, are exempt from that seven day limit.
Re:Full third-party cookie blocking and more by jefftk on Tuesday March 24, 2020 @09:55PM (#22681282)
Correct.

I expect companies will start working around this with CNAMEing and proxying, and I'm curious how Apple will handle it.

Re:Full third-party cookie blocking and more by saagarjha on Tuesday March 24, 2020 @10:56PM (#22681583)
I would expect the end game of this would be advertising networks injecting content directly into the page as it's rendered on the webserver. If they want tracking, at some point they'll just ask companies to hand over their logs…
Re:Full third-party cookie blocking and more by jefftk on Tuesday March 24, 2020 @11:08PM (#22681631)
Yes. Or sites just CNAMEing entirely over to their ad network, which then proxies the page content and inserts ads. Which are then, as a side effect, are very difficult to block.

And since they can easily correlate logs server side, they can track people between sites.

Re:Full third-party cookie blocking and more by jessaustin on Wednesday March 25, 2020 @12:20AM (#22681913)
Oh my, what a grim vision of the future. I'm going to stop recommending ad blockers, on the theory that I don't have to be faster than the bear...
Re:Full third-party cookie blocking and more by quotemstr on Wednesday March 25, 2020 @03:52AM (#22682736)
I suspect the EU will just outlaw that kind of collaboration.
Re:Full third-party cookie blocking and more by saagarjha on Wednesday March 25, 2020 @01:31PM (#22686680)
I think this is the eventual goal from tracking prevention's side.
Re:Full third-party cookie blocking and more by pspeter3 on Tuesday March 24, 2020 @04:03PM (#22678392)
Yeah, that seems potentially destructive for apps that want users to have a local only copy. You would need to provide a full import / export option in case someone goes on vacation.
Re:Full third-party cookie blocking and more by Dylan16807 on Tuesday March 24, 2020 @07:59PM (#22680410)
95% of my regularly used websites and applications have had usage gaps that have reached a week.
Re:Full third-party cookie blocking and more by dfabulich on Tuesday March 24, 2020 @03:57PM (#22678337)
That is what it means. The only workaround is to require the user to login and to keep a backup of the data on your server.
Re:Full third-party cookie blocking and more by tempestn on Wednesday March 25, 2020 @01:11AM (#22682098)
Exactly. Which to me suggests this could result in more tracking rather than less. At AutoTempest we haven't even bothered to make user accounts thus far, since there's no reason why you should need an account to search for used cars, and we can store user preferences in cookies or localStorage. If those only persist for 7 days though, we're basically forced to have users create accounts and store their preferences on our servers, to avoid a poor user experience.

Blocking 3rd party cookies I'm fully on board with, but I don't want first party cookies deleted unless I actually specify it. Fortunately as a user I can keep using Firefox, but since iOS is always going to be a large percentage of our users, there's not much choice on the provider side.

Re:Full third-party cookie blocking and more by dillondoyle on Tuesday March 24, 2020 @04:27PM (#22678620)
This is what we do. Store a 1st party httponly secure cookie jwt representing the user, then grab any extra data from the backend. Or just something like session cookie but persist it.

I wouldn't be surprised if this is one of the ways ad tracking tries to rebuild a universal identifier like the old urchin module. Might not be as easy as a cname but those might get blocked. It's always a game of cat and mouse. Could place uuid as 1st party httponly cookie. maybe uuid is domain scoped. then 'echo out' so accessible by 3rd party JS. Like a hash, one would need to know the global pooled uuid already and then combined with knowable domain could tie that uuid into the 2nd party tracking pool.

Re:Full third-party cookie blocking and more by dfabulich on Tuesday March 24, 2020 @05:28PM (#22679220)
1st party httponly secure cookies will be erased in seven days.

You need the user to manually provide an identifier (i.e. login) to avoid losing everything.

The user's password safe is now the only non-volatile storage mechanism on Safari.

Re:Full third-party cookie blocking and more by shakna on Tuesday March 24, 2020 @09:44PM (#22681211)
> 1st party httponly secure cookies will be erased in seven days.

httponly cookies can't be set from JS, and the seven day erasure only applies to cookies set from JS. That's why they're the recommended method for keeping a user logged in.

Re:Full third-party cookie blocking and more by johncolanduoni on Tuesday March 24, 2020 @06:10PM (#22679613)
They explicitly say 1st party httponly secure cookies are exempt and are their first recommended alternative.
Re:Full third-party cookie blocking and more by alexcroox on Tuesday March 24, 2020 @08:02PM (#22680428)
Don’t they just mean the localstorage containers for other domains than the current one? Ie your normal app’s storage will be left untouched as it is currently but third party domain localstorage containers will be wiped?
Re:Full third-party cookie blocking and more by doctoboggan on Tuesday March 24, 2020 @04:03PM (#22678397)
My understanding was that yes, if the user doesn't interact with the site in 7 days then the stored data (in cookies and localStorage) will be deleted.
Re:Full third-party cookie blocking and more by infotogivenm on Tuesday March 24, 2020 @07:28PM (#22680173)
It is confusingly worded, but DOES NOT mean all browser storage mechanisms will break.

The key phrase is “without user interaction”. Only e.g. invisible nested iframes that scammy ad companies love to use will have their localstorage limits affected. Top level frames are unchanged.

Re:Full third-party cookie blocking and more by jahewson on Tuesday March 24, 2020 @07:46PM (#22680309)
I think you’ve also misread the original text:

“seven days of Safari use without user interaction on the site”

Does not mean that top-level frames are unaffected. Everybody is affected. They specifically call out first party storage as being misused currently. I think the correct interpretation is:

Whenever the user interacts with your page then the clock gets reset to 7 days, also the clock only runs on days the user uses Safari.

Re:Full third-party cookie blocking and more by jessaustin on Tuesday March 24, 2020 @07:53PM (#22680368)
I hope you're right! Where TFA has:

Now ITP has aligned the remaining script-writable storage forms with the existing client-side cookie restriction, deleting all of a website’s script-writable storage after seven days of Safari use without user interaction on the site.

...maybe "script-writable" should be "third-party-in-iframe-script-writable"? If so this document should be edited.

Re:Full third-party cookie blocking and more by infotogivenm on Tuesday March 24, 2020 @07:30PM (#22680190)
To be clearer; this is a huge win for privacy/antitracking without any? real downsides.

> “chrome will never have this”

Indeed :)

Re:Full third-party cookie blocking and more by vbezhenar on Tuesday March 24, 2020 @07:30PM (#22680189)
Apple have to put restrictions on websites, otherwise users might break free from AppStore walled garden.