News for hackers. Stuff that matters.
Re:Apple set to be first Big Tech group to face charges unde... by ocdtrekkie on Friday June 14, 2024 @12:30PM (#40682248)
The PWA block has more nuance than that. PWAs are locked to Safari's engine and Apple interpreted that as potentially against the law. And part of the problem is that some competing web engines allow extremely dangerous APIs in their web platform which Mozilla has considered harmful.

Which isn't to say that Apple isn't playing malicious compliance hard, the entire CTF thing is ridiculous and demonstrates how desperately they do abuse the claim of security when it is actually all about profit... but the PWA thing isn't really part of that.

Re:Apple set to be first Big Tech group to face charges unde... by fallingsquirrel on Friday June 14, 2024 @12:51PM (#40682438)
Those so-called "dangerous" APIs are available in a normal browser visiting a normal website too. The APIs don't somehow become more dangerous if you let people put an icon for your site on the home screen.
Re:Apple set to be first Big Tech group to face charges unde... by ocdtrekkie on Friday June 14, 2024 @01:18PM (#40682701)
This isn't true on iOS. Because allowing arbitrary websites access to system hardware is pretty dangerous and stupid, Safari gates some of the newer APIs they do support behind PWA installation.
Re:Apple set to be first Big Tech group to face charges unde... by fallingsquirrel on Friday June 14, 2024 @03:40PM (#40684263)
Do you have a source for that?

At any rate, it's not clear to me that granting hardware permissions when you install a PWA is any better than letting the user choose what permissions to grant when you first visit a page. If that really is how it works, maybe alternate browsers will be able to improve over Safari's permission model too.

Re:Apple set to be first Big Tech group to face charges unde... by ocdtrekkie on Friday June 14, 2024 @03:52PM (#40684395)
That request really kinda falls into "let me google that for you" territory, but, you know, here you go: https://webkit.org/blog/13878/web-push-for-web-apps-on-ios-a...

> it's not clear to me

So, you may not have watched normal users operate a web browser. But... they click on everything in their way. This is why, for example, most "malware" calls I get are just dozens upon dozens of Notifications API permissions being granted in Chrome to random websites. The best way to fix this is... just destroy the Notifications API as a thing, it's a terrible idea. But the next best way is to ensure access to it is limited to contexts where it's obvious a user is interested in persistent communication with a given site or app. Like installing it.

At any point where you thought "just asking the user when they first visit the page for permission" was an adequate concept, you were wrong. And most malicious websites abuse this wrongness ad-nauseum, to the point that browsers now include ways to block websites from making repetitive requests as a attempt to fix it without fixing it.

Firefox has a pretty good record, and I consider their standards positions (https://mozilla.github.io/standards-positions/) the gold standard. iOS/Safari moves a little more slowly, but generally aligns with good practice.

Google and Microsoft are the two companies everyone else (including Safari) is significantly improving over by actually paying attention to how real users interact with the Internet.

Re:Apple set to be first Big Tech group to face charges unde... by fallingsquirrel on Friday June 14, 2024 @05:18PM (#40685235)
We're straying a bit from the original topic of direct access to hardware, but I'll humor you. Let's look at one of your users who does click yes to everything. In $YEAR, spam websites will say "enable push notifications to view this funny cat image. In $YEAR+1, spam websites will say "install our PWA to view this funny cat image" or "install our native app to view this funny cat image" and our user will still obey because the popup is in the way.

For the clueless user, nothing has changed other than which button they obediently push. For the savvy user, you've added an arbitrary special case and a hoop to jump through to get the functionality you wanted in the first place. Neither case is improved in the end.

Re:Apple set to be first Big Tech group to face charges unde... by TheLoafOfBread on Friday June 14, 2024 @01:43PM (#40682966)
So basically Apple screw up writing their iOS kernel and Safari?
Re:Apple set to be first Big Tech group to face charges unde... by dangus on Friday June 14, 2024 @12:49PM (#40682406)
So why are PWAs and alternative browser engines okay on macOS but not iOS?

These security excuses are bullshit and that does include PWAs.

Re:Apple set to be first Big Tech group to face charges unde... by ocdtrekkie on Friday June 14, 2024 @01:16PM (#40682680)
I mean, I think those alternative browser engines are dangerous on other OSes too. Both at work at home I enforce policy on computers which disables a lot of harmful web APIs. It is much harder to protect mobile devices with policy.