News for hackers. Stuff that matters.
Re:Chrome Ships WebGPU by codedokode on Thursday April 06, 2023 @06:59AM (#35466698)
Just put WebGL/WebGPU behind permission and the problem is solved. I don't understand why highly paid Google and Firefox developers cannot understand such a simple idea.
Re:Chrome Ships WebGPU by 7to2 on Thursday April 06, 2023 @07:28AM (#35466927)
It's not that they don't understand it, it's that they don't want the average user to have a convenient way to control this setting. Prompting the user for permission would give the user a very convenient way to keep it disabled for most websites. It's as simple as that.

Think about it this way: Which is more tedious: going into the settings and enabling and disabling webGPU every time you need it or a popup? Which way would see you keeping it enabled?

Its tyranny of the default with an extra twist :)

Re:Chrome Ships WebGPU by merlish on Thursday April 06, 2023 @07:26AM (#35466912)
For a user to correctly answer a permissions dialog, they need to learn programming and read all the source code of the application. To say nothing of the negative effects of permission dialog fatigue.

In practice, no-one who answers a web permissions dialog truly knows if they have made the correct answer.

Asking the user a question they realistically can't answer correctly is not a solution. It's giving up on the problem.

Re:Chrome Ships WebGPU by codedokode on Thursday April 06, 2023 @07:31AM (#35466952)
They don't need to learn programming. Just write that this technology can be used for displaying 3D graphics and fingerprinting and let user decide whether they take the risk.
Re:Chrome Ships WebGPU by pmontra on Thursday April 06, 2023 @08:30AM (#35467462)
Most of them will say, "I need to see this site, who cares about fingerprints." Some will notice that they're on their screen anyway, a few will know what it's all about.

Maybe "it can be used to display 3D graphics and to track you", but I expect that most people will shrug and go on.

Re:Chrome Ships WebGPU by bcrosby95 on Thursday April 06, 2023 @12:55PM (#35471134)
You could maybe display the request in the canvas instead of a popup. If the user can't see it, they'll never say yes.
Re:Chrome Ships WebGPU by kevingadd on Thursday April 06, 2023 @08:31AM (#35467473)
They're going to be confused if you say "display 3D graphics", because canvas and WebGL will still work. The website will just be laggier and burn their battery faster. That's not going to make sense to them.

"Fingerprinting" is a better approach to the messaging, but is also going to be confusing since if you take that approach, almost all modern permissions are fingerprinting permissions, so now you have the problem of "okay, this website requires fingerprinting class A but not fingerprinting class B" and we expect an ordinary user to understand that somehow?

Re:Chrome Ships WebGPU by deelly on Thursday April 06, 2023 @08:09AM (#35467238)
> In practice, no-one who answers a web permissions dialog truly knows if they have made the correct answer.

Counterpoint: if webpage with latest news (for example) immediately asks me to allow notification, access to webcamera and location I definitely know what is correct answer to these dialogs.

Re:Chrome Ships WebGPU by kevingadd on Thursday April 06, 2023 @08:29AM (#35467452)
"Do you want to allow example.com to send you notifications" is way more understandable to a layperson than "do you want to allow access to WebGPU" or "do you want to allow access to your graphics card". Especially because they would still have access to canvas and WebGL.

Permission prompts are a HUGE user education issue and also a fatigue issue. Rendering is widely used on websites so if users get the prompt constantly they're going to tune it out.

Re:Chrome Ships WebGPU by account42 on Tuesday April 11, 2023 @08:46AM (#35524391)
You can always word things in a way that the user understands.

> Especially because they would still have access to canvas and WebGL.

Those should also be behind a (or the same) permission prompt.

Re:Chrome Ships WebGPU by tgsovlerkhgsel on Thursday April 06, 2023 @10:43AM (#35468956)
I think browsers should distinguish more aggressively between "web application", "web site", and "user hostile web site".

Many APIs should be gated behind being a web application. This itself could be a permission dialog already, with a big warning that this enables tracking and "no reputable web site will ask for it unless it is clear why this permission is needed - in doubt, choose no".

Collect opt-in telemetry. Web sites that claim to be a web application but keep getting denied can then be reclassified as hostile web sites, at which point they not only lose the ability to annoy users with web app permission prompts, but also other privileges that web sites don't need.

Re:Chrome Ships WebGPU by beebeepka on Thursday April 06, 2023 @12:12PM (#35470479)
Do you have something specific in mind with your opening paragraph?

Because defining what is a web site and what's an app, strikes me as particularly impractical idea. You correctly point out that yes, there are a number of powerful APIs that should be behind permissions. But there are a number of permissions already, so we need to start bundling them and also figure out how to present all this to the regular user.

Frankly, I wouldn't know where to begin with all this.

Re:Chrome Ships WebGPU by tgsovlerkhgsel on Thursday April 06, 2023 @03:49PM (#35473460)
News sites are a particular category that I expect to spam people with permission prompts, as they did when notifications became a thing. Without the deterrent of possibly landing in the naughty box, they'd all do it. With it, I still expect some of them to try until they land in the box.
Re:Chrome Ships WebGPU by bagacrap on Thursday April 06, 2023 @12:53PM (#35471107)
Clearly if we knew how to perfectly identify user hostile websites we'd not need permissions dialogs at all.

Distinguishing between site and app, e.g. via an installation process, is equivalent to a permissions dialog, except that you're now advocating for one giant permission dialog instead of fine-grained ones, which seems like a step backwards.

Re:Chrome Ships WebGPU by tgsovlerkhgsel on Thursday April 06, 2023 @03:46PM (#35473406)
Yes, if we knew how to do it perfectly, we wouldn't need them. But we can identify some known-good and known-bad cases with high confidence. My proposal mainly addresses the "fatigue" aspect: it allows apps to use some of the more powerful features without letting every web site use them, and it prevents random web sites from declaring themselves an app and spamming users with the permission request just so they can abuse the users more.

The new permission dialog wouldn't grant all of the finer-grained permissions - it would be a prerequisite to requesting them in the first place.

Re:Chrome Ships WebGPU by bagacrap on Saturday April 08, 2023 @01:11AM (#35490736)
SafeBrowsing filters out the known bad ones.

Curating known good would equate to some sort of app store. There are probably initiatives to make one for web apps, but it kind of makes me sad to think of applying that to the web, which is supposed to be a free and open commons (although I suppose Google already de facto controls enough of it to be considered a bit of a gatekeeper).

Making the user the arbiter of "known good", ie reliance on permissions dialogs, is not perfect but it's what we have. Yet I fail to see how your proposal of "just add ANOTHER dialog" improves the situation.

Re:Chrome Ships WebGPU by account42 on Tuesday April 11, 2023 @08:43AM (#35524352)
SafeBrowsing filters whatever Google wants filtered. It has only a marginal overlap with "bad sites".
Re:Chrome Ships WebGPU by ericflo on Thursday April 06, 2023 @07:26AM (#35466913)
Look to the cookie fatigue fiasco for how that might turn out. This simple idea is not always the right one.
Re:Chrome Ships WebGPU by 7to2 on Thursday April 06, 2023 @07:30AM (#35466948)
> [ ] Always choose this option.
Re:Chrome Ships WebGPU by epolanski on Thursday April 06, 2023 @05:43PM (#35474936)
Why fiasco?
Re:Chrome Ships WebGPU by miohtama on Thursday April 06, 2023 @07:52AM (#35467114)
Just don’t use Chrome. There are plenty of alternative web browsers you can choose that are more privacy oriented. You are not Chrome’s customer unless you pay for it - or you have 100% money back guarantee. Demanding features on free product is never going to go anywhere.
Re:Chrome Ships WebGPU by nashashmi on Thursday April 06, 2023 @08:15AM (#35467294)
They are highly paid enough to not work on it and smart enough to thwart suggestions like this with “permission overload issue”.

But more frankly, fingerprinting is a whack a mole issue and if it were a real security problem, it would slow feature advancements.

And fingerprinting is too unreliable for any real world use.

Re:Chrome Ships WebGPU by illiarian on Thursday April 06, 2023 @08:18AM (#35467333)
Just put WebGL/WebGPU behind permission and the problem is solved.

Just put WebUSB behind permission and the problem is solved.

Just put WebHID behind permission and the problem is solved.

Just put WebMIDI behind permission and the problem is solved.

Just put Filesystem Access behind permission and the problem is solved.

Just put Sensors behind permission and the problem is solved.

Just put Location behind permission and the problem is solved.

Just put Camera behind permission and the problem is solved.

Just put ...

I don't understand why highly paid Google and Firefox developers cannot understand such a simple idea.

Re:Chrome Ships WebGPU by ctenb on Thursday April 06, 2023 @08:48AM (#35467639)
Yes please
Re:Chrome Ships WebGPU by shadowgovt on Thursday April 06, 2023 @09:45AM (#35468231)
Everything except WebGL and WebGPU allows the system to change more state than what is rendered on a screen.

Users already expect browsers to change screen contents. That's why WebGPU / WebGL aren't behind a permission block (any moreso than "show images" should be... Hey, remember back in the day when that was a thing?).

Re:Chrome Ships WebGPU by rockdoe on Thursday April 06, 2023 @10:35AM (#35468833)
I can't tell whether you're kidding or not, but this is exactly the path Firefox was advocating: https://blog.karimratib.me/2022/04/23/firefox-webmidi.html

The page implies it no longer requires permissions, but I just tested and you definitely get a permissions popup, just a different one.

WebHID, WebUSB and Filesystem Access are IIRC, "considered harmful" so they won't get implemented. And Sensor support was removed after sites started abusing battery APIs.

Re:Chrome Ships WebGPU by illiarian on Thursday April 06, 2023 @12:16PM (#35470547)
> I can't tell whether you're kidding or not,

I'm not.

> but this is exactly the path Firefox was advocating

Originally? Perhaps. Since then Firefox's stance is very much "we can't just pile on more and more permissions for every API because we can't properly explain to the user what the hell is going on, and permission fatigue is a thing"

Re:Chrome Ships WebGPU by justinclift on Thursday April 06, 2023 @08:19AM (#35467341)
> why highly paid Google ... developers

"Completely co-incidentally", it's in Google's best interest to be able to fingerprint everyone.

So, changing it to actually be privacy friendly while they have the lion's share of the market doesn't seem like it's going to happen without some major external intervention. :/

Re:Chrome Ships WebGPU by maigret on Thursday April 06, 2023 @08:28AM (#35467434)
It's running on Chrome. Google doesn't need fingerprinting. By making it harder for others to fingerprint it actually cements Google position in the ad market.
Re:Chrome Ships WebGPU by justinclift on Thursday April 06, 2023 @12:15PM (#35470535)
> It's running on Chrome. Google doesn't need fingerprinting.

Are you saying that because you reckon everyone using a Chromium based browser logs into a Google account?

Re:Chrome Ships WebGPU by elpocko on Thursday April 06, 2023 @08:19AM (#35467344)
I do this since forever, but I have to give explicit permission to load and run JS, which solves a lot of other problems as well. Letting any site just willy-nilly load code from whereever and run it on your machine is insane, and it's well worth the effort to manually whitelist every site.
Re:Chrome Ships WebGPU by account42 on Tuesday April 11, 2023 @08:52AM (#35524436)
uMatrix was and unfortunately still is the best interface for fine-grained opt-in permissions.
Re:Chrome Ships WebGPU by kevingadd on Thursday April 06, 2023 @08:28AM (#35467439)
Saturating the user with permissions requests for every single website they visit is a dead-end idea. We have decades of browser development and UI design history to show that if you saturate the user with nag prompts that don't mean anything to them, they will just mechanically click yes or no (whichever option makes the website work).
Re:Chrome Ships WebGPU by codedokode on Thursday April 06, 2023 @09:49AM (#35468276)
Permission popups can be replaced with an additional permission toolbar or with a button in the address bar user needs to click. This way they won't be annoying and won't require a click to dismiss.
Re:Chrome Ships WebGPU by cyral on Thursday April 06, 2023 @12:09PM (#35470441)
Like the site settings page on Chrome, which is in the address bar (clicking the lock icon)? You can set the permissions (including defaults) for like 50 of these APIs.
Re:Chrome Ships WebGPU by codedokode on Thursday April 06, 2023 @04:45PM (#35474143)
You can display only permissions that a page requests, starting from most important ones.

For example, toolbar could look like:

Enable: [ location ] [ camera ] [ fingerprinting via canvas ] ...

Re:Chrome Ships WebGPU by account42 on Tuesday April 11, 2023 @08:50AM (#35524429)
We already have extensions for websites that spam the user with unwanted popups and other displays. Those just need to be extended to cover permission abuse and be included by default in all webbrowsers.
Re:Chrome Ships WebGPU by WhyNotHugo on Thursday April 06, 2023 @03:47PM (#35473424)
They probably can understand these concepts, but privacy and anonymity are not their main priorities.
Re:Chrome Ships WebGPU by acchow on Thursday April 06, 2023 @09:09PM (#35476796)
"Be kind. Don't be snarky. Converse curiously. Please don't sneer"

HN Guidelines

https://news.ycombinator.com/newsguidelines.html