News for hackers. Stuff that matters.
Re:Safari tries to fill username by vincnetas on Friday May 28, 2021 @06:07AM (#27313565)
It's not up to Chrome devs to accept or deny viable use cases. As someone from comments mentions, it's in the spec, and chrome devs should not deviate from that irrelevant if what they think is accepted or not accepted use case. Or they should go and push for spec change.
Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @06:57AM (#27313879)
I feel like repeating an old comment of mine ( https://news.ycombinator.com/item?id=27231194 ) here:

> Conforming to the spec is not a virtue.

> When the spec is malicious, conforming to the spec is malicious behavior.

> I'm comfortable calling it a bug in the spec. `a << 40` needs to have 0 in the lowest 40 bits. It does not need to have random values in bits 8-31.

> This behavior is documented, but that doesn't make things better, it makes them worse.

> But the philosophy that says "if it's documented, then it's OK" doesn't even allow for the concept of a bug in the spec.

Implementing a bad idea doesn't become a good idea just because someone once wrote that it was.

Re:Safari tries to fill username by vincnetas on Friday May 28, 2021 @09:07AM (#27314896)
I think predictability is important. And specs define what you can expect. System with undefined/unpredictable behaviour does complicate a life in long run even if at the moment it looks more convenient.
Re:Safari tries to fill username by wildrhythms on Friday May 28, 2021 @09:24AM (#27315043)
If the topic is predictability, I would expect banks to use the spec to disable only predictably non-autofillable fields with the user's best experience in mind. Disabling autocomplete on username and password fields in the name of some nebulous 'security' goal is neither predictable, nor in line with most user's expectation of usability; it also doesn't make the system more secure. I could argue that these sites themselves aren't following the spec by disabling the fields.

Remember, there are autocomplete values to accommodate "current-password"[1]. If your bank has a field representing a password without that attribute, do you think that's following the spec?

[1] https://html.spec.whatwg.org/multipage/form-control-infrastr...

Re:Safari tries to fill username by bipson on Friday May 28, 2021 @06:18AM (#27313645)
I guess there are just too many pages that break autocomplete, e.g. for username/password as a "security feature".

I encountered quite a few myself and was very annoyed. I guess devs took the "usability" side of the question.

EDIT: phrasing

Re:Safari tries to fill username by Aeolun on Friday May 28, 2021 @08:43AM (#27314702)
But it’s not useable at all. A form without autocomplete is perfectly useable. A form with autocomplete where it’s not wanted is an absolute hindrance.
Re:Safari tries to fill username by lupire on Friday May 28, 2021 @02:30PM (#27318899)
A non autocomplete password field is an absolute hindrance.
Re:Safari tries to fill username by Cederfjard on Friday May 28, 2021 @06:37AM (#27313764)
The spec is driven by browser implementations rather than the other way around, is it not?
Re:Safari tries to fill username by vincnetas on Friday May 28, 2021 @09:01AM (#27314849)
It should not be so. Or else Spec would just look like "do as chrome does"
Re:Safari tries to fill username by benhurmarcel on Friday May 28, 2021 @10:17AM (#27315581)
> It's not up to Chrome devs

Well apparently it is, because they're doing it.

Re:Safari tries to fill username by eru on Friday May 28, 2021 @06:15AM (#27313626)
Why? The spec ain't God given.
Re:Safari tries to fill username by irjustin on Friday May 28, 2021 @06:19AM (#27313655)
That's how we ended up with decades of Internet Explorer.
Re:Safari tries to fill username by monsieurbanana on Friday May 28, 2021 @06:33AM (#27313741)
> Or they should go and push for spec change
Re:Safari tries to fill username by thaumasiotes on Friday May 28, 2021 @06:59AM (#27313888)
That attitude basically endorses the idea that the spec is God-given. There's nothing so important about getting the spec changed before you start ignoring it.
Re:Safari tries to fill username by monsieurbanana on Saturday May 29, 2021 @05:20AM (#27324044)
> That attitude basically endorses the idea that the spec is God-given

That's a tad over-dramatic. And context matters, surely I don't need to remind you why Google is spending so much money on Chrome?

Having a company control 70% of the browser market is bad enough, we don't need people telling them to go ahead and ignore specs, remember that they don't make those decisions out of goodwill for us.