News for hackers. Stuff that matters.
Re:“autocomplete=off is ignored on non-login input elements” by raldi on Wednesday June 15, 2016 @03:17PM (#11911386)
Good. It's my browser. I get to turn its features on and off, not you.

And that goes double on my phone.

As a compromise, I'd accept a prompt like:

    +---------------------------------------+
    |    This page recommends we disable    |
    |    autocomplete. What do you think?   |
    |[Okay] [Fuck them; autocomplete anyway]|
    +---------------------------------------+
Re:“autocomplete=off is ignored on non-login input elements” by dasil003 on Wednesday June 15, 2016 @03:47PM (#11911632)
Take it up with the standards body then.

Presumably this came about because some framework or something started including bad default attributes, and then Chrome responds by ignoring the meaning of the specification in order to "improve UX". But in the end what happens is that the specification becomes meaningless and we're back to the browser wars where you have no way of knowing how anything works except a continuous testing process to vet the veracity of the spec for any browser you are targeting, and of course this is subject to change on a whim by Google.

Will it improve the UX? Maybe... if Google is correct in its unilateral assumptions. But one thing for sure is that as a developer this costs you time, and it hurts the most if you are a well-intentioned developer who is trying to make the correct choice for your specific use case.

Re:“autocomplete=off is ignored on non-login input elements” by dragonwriter on Wednesday June 15, 2016 @04:20PM (#11911872)
> Take it up with the standards body then.

But, in the standard, the autocomplete attribute is a hint to the user agent, not an authoritative direction. [0]

The people who want to make it an authoritative direction ought, as you say, to take it up with the standards body.

[0] https://html.spec.whatwg.org/multipage/forms.html#autofill : "User agents sometimes have features for helping users fill forms in, for example prefilling the user's address based on earlier user input. The autocomplete content attribute can be used to hint to the user agent how to, or indeed whether to, provide such a feature." (emphasis added)

Re:“autocomplete=off is ignored on non-login input elements” by developer2 on Thursday June 16, 2016 @03:04AM (#11914513)
Yes, and every developer who understands what autocomplete="off" is supposed to do uses it with the expectation that browsers listen to that hint.

Google directly breaks developers' intentions. Chrome literally breaks implementations by ignoring this attribute that every browser respects - including previous versions of Chrome. Enabling autocomplete when it is explicitly disabled by a developer destroys UIs that provide their own replacement autocomplete functionality where it makes sense to do so.

Chrome is the worst with disrespecting developers' intentions. Even worse than this bug is the one where Chrome disbales autocomplete when specifically desired, if their broken "autodetection of login form" fails. I've had login forms, where we want the bloody autocomplete to work, not function because Chrome has their own algorithm for this shit rather than respecting the developer's wish to explicitly even enable it.

Re:“autocomplete=off is ignored on non-login input elements” by nix0n on Wednesday June 15, 2016 @04:45PM (#11912029)
Later that same page says : "When an element's autofill field name is "off", the user agent should not remember the control's data, and should not offer past values to the user."

(The word "should" has its own meaning in RFCs generally http://www.ietf.org/rfc/rfc2119.txt and in whatwg specifically https://wiki.whatwg.org/wiki/Specs/howto#Content)

Re:“autocomplete=off is ignored on non-login input elements” by tokenizerrr on Wednesday June 15, 2016 @05:19PM (#11912220)
3. SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course.

They seem to have fully understood and carefully weighted the implications.

Re:“autocomplete=off is ignored on non-login input elements” by dandelany on Wednesday June 15, 2016 @07:22PM (#11912862)
Key phrase "in particular circumstances". This is not particular circumstances, this is all inputs everywhere. The point of "SHOULD" is to allow some wiggle room for edge cases where matching the standard to the letter wouldn't make any sense, not to give browsers carte blanche to ignore SHOULDs as they please.
Re:“autocomplete=off is ignored on non-login input elements” by tokenizerrr on Wednesday June 15, 2016 @07:27PM (#11912886)
It's not all circumstances, quoted from TFA:

> We don't just ignore the autocomplete attribute, however. In the WHATWG standard, we defined a series of new autocomplete values that developers can use to better inform the browser about what a particular field is, and we encourage developers to use those types. [2]

> In cases where you really want to disable autofill, our suggestion at this point is to utilize the autocomplete attribute to give valid, semantic meaning to your fields. If we encounter an autocomplete attribute that we don't recognize, we won't try and fill it.

> As an example, if you have an address input field in your CRM tool that you don't want Chrome to Autofill, you can give it semantic meaning that makes sense relative to what you're asking for: e.g. autocomplete="new-user-street-address". If Chrome encounters that, it won't try and autofill the field.

> [2] https://html.spec.whatwg.org/multipage/forms.html#autofill

Re:“autocomplete=off is ignored on non-login input elements” by IanCal on Thursday June 16, 2016 @12:51AM (#11914078)
I'm really confused here, they'll disable autocomplete on almost any setting apart from "off"?

If the problem is the web designers why isn't this just pushing the problem into the future where the top stack overflow answer is autocomplete="nochrome" or similar?

And what should I put to work cross browser? If chrome adds autocomplete when it's off and doesn't when it's set to a weird value, do other browsers do the opposite?

Re:“autocomplete=off is ignored on non-login input elements” by ccrush on Thursday June 16, 2016 @02:39AM (#11914429)
>And what should I put to work cross browser? If chrome adds autocomplete when it's off and doesn't when it's set to a weird value, do other browsers do the opposite?

This. Exactly this. Now you have an attribute value that works in some browsers and the exact opposite function in other browsers, and the only way to switch between it is server side rendering based on user agent or javascript attribute value modification based on user agent at render time. No option to have the browser choose functionality based on the markup alone. Welcome back IE6. We missed you. Thank Google for creating more Web Designer jobs!

Re:“autocomplete=off is ignored on non-login input elements” by tokenizerrr on Thursday June 16, 2016 @04:57AM (#11914867)
Perhaps some more background is helpful.

> The WHATWG was founded by individuals of Apple, the Mozilla Foundation, and Opera Software in 2004, after a W3C workshop. Apple, Mozilla and Opera were becoming increasingly concerned about the W3C’s direction with XHTML, lack of interest in HTML and apparent disregard for the needs of real-world authors. So, in response, these organisations set out with a mission to address these concerns and the Web Hypertext Application Technology Working Group was born.

So the other browsers are part of the WHATWG, and a new spec got defined. I don't see any problems here.

Re:“autocomplete=off is ignored on non-login input elements” by dragonwriter on Wednesday June 15, 2016 @07:25PM (#11912879)
A mass-market web browser is a particular kind of user-agent with a particular target market and intended use; like any other specific application, it addresses a (potentially broad in an absolute sense) specific, particular set of circumstances compared to the scope of a standard.
Re:“autocomplete=off is ignored on non-login input elements” by dragonwriter on Wednesday June 15, 2016 @04:50PM (#11912058)
Yes, "should" means "that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course."

From what I can tell, while one might disagree with how the Chrome team has weighed the implications (such things always involve subjectivity), they seem to have both understood and weighed the implications before making the decision.

Re:“autocomplete=off is ignored on non-login input elements” by ori_b on Wednesday June 15, 2016 @07:38PM (#11912950)
> Take it up with the standards body then.

I'd like to, but I doubt they'll listen. As a compromise, I'd be happy to have browser developers allow me to ignore the more user-hostile parts of the spec.

Re:“autocomplete=off is ignored on non-login input elements” by jobead on Wednesday June 15, 2016 @03:27PM (#11911471)
If you want to "turn it's features on and off", then why does the Chromium team's stance of "extensions are the standard way to enable custom behavior"[0] not apply here???

This is a classic unfortunate case of using data from the masses to drive a bad design choice because it increases "usage" along an arbitrary axis.

[0] https://news.ycombinator.com/item?id=11729287

Re:“autocomplete=off is ignored on non-login input elements” by comex on Wednesday June 15, 2016 @03:47PM (#11911634)
In the phrase you quoted, "custom" means "different from the default". It's about a choice between building customization into the browser (in the form of preferences) and relying on extensions to provide it. And it does apply here: there is no preference to honor autocomplete=off. If you want your Chrome instance to do so... find an extension.

(Though, since my quick search of the Chrome Web Store found a lot of [presumably no longer necessary] extensions to disable autocomplete=off but none to do the opposite, you might have to write it yourself. It should suffice to change "off" to an unrecognized string, as mentioned in the last comment on the issue report.)

Re:“autocomplete=off is ignored on non-login input elements” by tracker1 on Wednesday June 15, 2016 @05:10PM (#11912175)
Given the autocomplete detail tokens[1] - my first thought was

    autocomplete="section-disabled disabled"
Or something similar.

[1] https://html.spec.whatwg.org/multipage/forms.html#autofill-d...

Re:“autocomplete=off is ignored on non-login input elements” by forgottenpass on Wednesday June 15, 2016 @04:35PM (#11911970)
The Chromium team's stance of "extensions [...]" is better understood as: "get the fuck off my lawn."
Re:“autocomplete=off is ignored on non-login input elements” by taf2 on Wednesday June 15, 2016 @03:21PM (#11911428)
99% of the time I agree but imagine for a second a user management system that lets an administrator edit other users profiles and a browser that decides to autocomplete the email fields in the form or name etc... Better hope auto save is not a thing...

Of course when it comes to buying things online give me my autocomplete or I hate you

- love your recommendation for a browser prompt!

Re:“autocomplete=off is ignored on non-login input elements” by iamdave on Wednesday June 15, 2016 @04:50PM (#11912055)
imagine for a second a user management system that lets an administrator edit other users profiles

Just my $0.02, and this might be taking us out of the scope of discussion (maybe not?) but I can't think of a good business reason why an administrator needs to control whether or not the end user can use a function like autocomplete. That seems like micromanaged minutiae that will annoy my users more than help them if it's something they rely on for data entry. And if that's the case...why bother touching it in the first place?

Training/security policy that says "Be mindful of how you use this feature" to avoid any awkward NDA/HR situations? Sure, absolutely 100%.

Curious what others think on this?

Re:“autocomplete=off is ignored on non-login input elements” by jroblak on Wednesday June 15, 2016 @05:01PM (#11912118)
You've completely missed the point of the comment.

Your parent was describing a system where an Administrator edits other users' data. If that Administrator is using Chrome while editing a user, then there is no way to disable autocomplete, and the browser may fill the user's form fields with the Administrator's information resulting in bad data.

Re:“autocomplete=off is ignored on non-login input elements” by iamdave on Wednesday June 15, 2016 @05:07PM (#11912158)
I read "edit users profiles" to mean their Chrome profile, so my mistake in misreading that.

(That said though, doesn't Autocomplete in chrome only work if you select the text in the drop down and hit enter/tab? For an address field, for example if you type "123" and the box appears to select "123 Maple Street", can't you just bypass that entirely by continuing to type and not clicking on the suggestion?)

Re:“autocomplete=off is ignored on non-login input elements” by wmil on Wednesday June 15, 2016 @05:14PM (#11912196)
If you allow it to remember your login credentials it will autofill any input that it thinks is a login / password.

That leads to some random behaviour.

Re:“autocomplete=off is ignored on non-login input elements” by takeda on Wednesday June 15, 2016 @05:52PM (#11912442)
Chrome copied many features from Opera (the old Opera) I'm still surprised why they decided not to copy Wand (by default the browser does not populate any fields unless you click on the wand button or use keyboard shortcut).

This works so much better than the behavior other browsers use.

Re:“autocomplete=off is ignored on non-login input elements” by Hondor on Wednesday June 15, 2016 @06:16PM (#11912564)
What's more of a surprise is that there's a browser that has such a clumsy sounding feature as this "wand". Only power users are going to bother clicking a button just to help them fill in a form, or even know that's what the button does in the first place. That kind of manually activated feature seems to be completely against Chrome's style of minimalist UI, and for good reason, it will be one more confusing button for 90% of users to look at every day and be reminded that computers are complicated.

I wouldn't bother trying to work out some weird button, I'd just manually type my details again and again into every form and feel annoyed that the browser isn't remembering them like other browsers do.

Re:“autocomplete=off is ignored on non-login input elements” by thwarted on Wednesday June 15, 2016 @09:15PM (#11913337)
Only power users are going to bother clicking a button just to help them fill in a form, or even know that's what the button does in the first place.

This is an interesting observation. I never used the "wand" function in Opera because, partly, it's named in such a way as to not appeal to power users at all. The name "wand" says "do something magically". Agreed that "wand" doesn't indicate what it does, which is another reason to shy away from it. It's such a generic term as to be useless. Literally anything could be behind the "magic" operation.

Re:“autocomplete=off is ignored on non-login input elements” by takeda on Thursday June 16, 2016 @11:49AM (#11916908)
I don't care about name, just the functionality. It could be called Secure Login, Autocomplete or other things. As long as it works correctly.

Another thing I forgot to mention which is quite important. It works well when your password store is encrypted. It allows browser to ask you for your master password when you are trying to log in to the page, not when you happen to visit page that password is stored. This makes feasible to use configuration where the password is forgotten either immediatelly or after few minutes. Having encrypted password store in FF or Chrome and not storing the password all the time in memory is essentially unusable.

Re:“autocomplete=off is ignored on non-login input elements” by takeda on Thursday June 16, 2016 @11:49AM (#11916905)
Well I typically used Ctrl+Enter and it filled the forms, if it was a login prompt it automatically logged me in.

Not sure about the newbie argument, yes it might be like that in the beginning, but you won't stay newbie forever you learn things. Also I'm not buying the minimalist argument, Chrome currently is one of biggest resource hogs among browsers.

Anyway at least provide option to enable such behavior. On Firefox I use Secure Login extension to emulate that, but it doesn't work as well as Wand did.

Re:“autocomplete=off is ignored on non-login input elements” by iamdave on Wednesday June 15, 2016 @05:42PM (#11912379)
That leads to some random behaviour.

Elaborate? What is the impact of this random behavior for the-in the case of the analogy before us-an administrator? Doesn't Chrome's autocomplete, in the case of credentials know which credential belongs to what password?

If an admin goes to log into gmail on an end user machine, and enters his email address, why would the user's password pop into the password field?

I'm afraid I don't understand your counterpoint.

Re:“autocomplete=off is ignored on non-login input elements” by grey-area on Wednesday June 15, 2016 @05:48PM (#11912415)
The admin visits a page to edit a normal user on their website, which contains fields like email/password etc for that other user.

Chrome autocompletes the admin user's password and email in the form fields without user interaction. There was no mechanism to tell chrome not to do this if autocomplete=off is ignored, but you can set autocomplete to an arbitrary value (say =nope not =off as in spec) and it will not autocomplete.

I've seen this on real sites and had users complain about it, it is a very real issue, and unfortunately not all admin users are savvy enough to turn off autocomplete in just one instance, when they use it all the time elsewhere (even on the same website). It's nice if the website can somehow fix this by saying they really don't want autocomplete on a form to edit other users.

Personally I think the browser should give the user control, but autocomplete should not be the default if the website requests it to be off, it should be available on right click or with some easily accessible option. This should satisfy everyone and avoid situations like the one described above where the user sees arbitrary and incorrect values being filled in a form which is not related to their user and is not a login form.

Re:“autocomplete=off is ignored on non-login input elements” by iamdave on Wednesday June 15, 2016 @06:02PM (#11912493)
Let me ask a quick question because after reading your post I think a lightning bolt just struck my brain, and I went and read other comments:

Have I been confusing autocomplete with auto-fill this whole time? Autofill where, let's say you shop on a site often, and you fill out one form field, select a saved entry and the rest of the form fills out?

Re:“autocomplete=off is ignored on non-login input elements” by dragonwriter on Wednesday June 15, 2016 @06:35PM (#11912661)
> That leads to some random behaviour.

Mostly on sites that both have traditional login forms and use forms where other fields are mis-identified as password fields.

Re:“autocomplete=off is ignored on non-login input elements” by phil21 on Wednesday June 15, 2016 @05:35PM (#11912333)
So don't use autocomplete? I still don't understand your point.

It's not like leaving it on you are forced to use it. The client still has the choice. By turning it off you are removing choice.

If your Administrator is too stupid to stop messing up and using autocomplete where it's not appropriate, then I think the correct action here is a pink slip.

I generally agree you should try to keep users from shooting themselves in the foot, but not at the cost of hamstringing users who may want to use things differently.

Re:“autocomplete=off is ignored on non-login input elements” by grey-area on Wednesday June 15, 2016 @05:52PM (#11912443)
autocomplete in chrome fills in the forms without user interaction, the user doesn't get the choice, they can only wipe the fields afterwards if they happen to notice.
Re:“autocomplete=off is ignored on non-login input elements” by jroblak on Wednesday June 15, 2016 @05:42PM (#11912375)
Yeah, fair, but it would be a better user experience if they didn't even have the option. This directly contradicts Google's position. You're statement is basically: Comment: User error Closed: Won't Fix
Re:“autocomplete=off is ignored on non-login input elements” by EpicEng on Thursday June 16, 2016 @01:50AM (#11914268)
>but I can't think of a good business reason why an administrator needs to control whether or not the end user can use a function like autocomplete

I work in biotech; FDA regulated medical devices and diagnostic tests. Allowing autocomplete for forms which log you into an application which is used to sign out diagnostic reports is going to cost us in an audit.

I realize this is not a typical case, but there you have it.

Re:“autocomplete=off is ignored on non-login input elements” by betenoire on Wednesday June 15, 2016 @05:15PM (#11912198)
We'd probably disagree on what determines a good reason. I've encountered plenty of admins that need/want god-like permissions in the app they are paying me to write.
Re:“autocomplete=off is ignored on non-login input elements” by draw_down on Wednesday June 15, 2016 @03:51PM (#11911659)
Sometimes it's better to turn off for usability reasons, and the browser doesn't have a clue about when that's the case. For example when the page has its own autocompleter, which has more information available to it than the browser does.

A good example is the branch-switching widget on Github's repo page. Browser autocomplete is a major pain in the ass when trying to use this widget. The page can load all the branch names itself, but your dumbass browser is "helpfully" autocompleting a bunch of branch names that probably don't even exist anymore, or exist in other repos. Gee, thanks soooo much.

Re:“autocomplete=off is ignored on non-login input elements” by Pxtl on Wednesday June 15, 2016 @04:19PM (#11911867)
I've been trying to use the Facebook page on my phone since they've killed the FB Mobile web messenger and the amount the FB autocomplete and the Chrome autocomplete fight each other and mangle my text is spectacular.
Re:“autocomplete=off is ignored on non-login input elements” by serge2k on Wednesday June 15, 2016 @04:29PM (#11911935)
I'd much rather have things like that broken then have to futz around with someones stupid login form that disabled password pasting and autocomplete.
Re:“autocomplete=off is ignored on non-login input elements” by tracker1 on Wednesday June 15, 2016 @05:22PM (#11912242)
Man, is that annoying, or login forms that are in a dynamic dialog and/or ajax-login out of band instead of a post, so that it doesn't offer a save option... I mean, I tend to use LastPass over the built-in manager, just the same, it gets annoying when sites work extra hard to subvert those things that make actually using the web easier.

Along the same lines is one of the reasons I actually like OAuth/OpenID/OpenAuth logins, etc... simply that I can avoid yet another login that I only use on one site, with yet another password, that I generate and won't remember anyway.

Re:“autocomplete=off is ignored on non-login input elements” by chrishacken on Wednesday June 15, 2016 @03:54PM (#11911685)
" For example when the page has its own autocompleter"

Wouldn't that just override whatever values Chrome throws in there anyway? (If you're using JS.)

Re:“autocomplete=off is ignored on non-login input elements” by draw_down on Wednesday June 15, 2016 @04:02PM (#11911740)
No.
Re:“autocomplete=off is ignored on non-login input elements” by jasonlotito on Wednesday June 15, 2016 @03:59PM (#11911725)
There are ways to resolve those situations properly as explained in the link being discussed.
Re:“autocomplete=off is ignored on non-login input elements” by draw_down on Wednesday June 15, 2016 @04:06PM (#11911779)
So you defeat the autocomplete by messing with attributes in a slightly different way, and we've just gone in a circle. Great job everybody.
Re:“autocomplete=off is ignored on non-login input elements” by mikeash on Wednesday June 15, 2016 @04:21PM (#11911878)
That's pretty much the story of the web from day one, and I'm not sure if it can actually be avoided. The incentives and desires of the content producers, browser makers, and users are all too different.
Re:“autocomplete=off is ignored on non-login input elements” by aftbit on Thursday June 16, 2016 @12:49AM (#11914066)
Does anyone really still feel that Chrom(ium) is "your browser" anymore? It is just Google's way to exert their dominance on web standards and make paternal and self-serving decisions, all in the name of helping the "average" user.

As for extensions to allow customization, where's the extension that gives me back page actions (icons in the URL bar)? I know all the folks at Google are using shiny MBPs with billion-pixel displays, but I don't really like having 10 icons on the right of my URL bar just to show various status pages. :(

Re:“autocomplete=off is ignored on non-login input elements” by raldi on Thursday June 16, 2016 @01:41AM (#11914242)
You can drag the right edge of your URL bar left and right to show or hide those icons.
Re:“autocomplete=off is ignored on non-login input elements” by yborg on Wednesday June 15, 2016 @03:25PM (#11911460)
It's Google's browser. This is your mistake for using Google's browser if you don't agree with what Google wants their browser to do.
Re:“autocomplete=off is ignored on non-login input elements” by Myrth on Wednesday June 15, 2016 @04:10PM (#11911805)
Exactly. I have no idea why people blamed IE for not following standards. It was totally all of its users' fault for using it.
Re:“autocomplete=off is ignored on non-login input elements” by lucasmullens on Wednesday June 15, 2016 @04:16PM (#11911846)
People have the right to blame something for doing something wrong. If McDonald's burns my burger, I'm going to blame them, even though I can choose to not go there.
Re:“autocomplete=off is ignored on non-login input elements” by Natsu on Wednesday June 15, 2016 @04:46PM (#11912036)
It would be a rather odd turn of events if they burned your burger without you ever visiting the place, though.

I fear that their approach is likely to just create an arms race, though. The same people who, for whatever ill-considered reasons, disabled it once will do so again. I'd rather control it as a user.

Because, honestly, I only ever see this used to keep me from having my password manager manage secure passwords, which is just obnoxious. These are usually the same sites that ban things like spaces in passwords, or cap you at 10 characters.

Re:“autocomplete=off is ignored on non-login input elements” by LionessLover on Wednesday June 15, 2016 @04:25PM (#11911904)
Uhm.... your reply makes no sense - what he says is in support of the Chrome decision.
Re:“autocomplete=off is ignored on non-login input elements” by harikb on Wednesday June 15, 2016 @04:06PM (#11911771)
I agree. I always hated sites that disable Paste, disable right-click or whatever.
Re:“autocomplete=off is ignored on non-login input elements” by yoo1I on Wednesday June 15, 2016 @04:30PM (#11911943)
Coincidentally, Google Docs does that. It disables right-click for copy/paste and prompts you in a popup to install some stupid app to re-enable this functionality.

... or you know CTRL-C/CTRL-V, cause there isn't really a good reason to prevent you pasting with a mouse.

I really don't get that

Re:“autocomplete=off is ignored on non-login input elements” by m741 on Wednesday June 15, 2016 @04:42PM (#11912014)
Google Docs did this for a specific reason. Browsers restrict access to the clipboard on general user actions (like click, right click, etc). On the other hand, if you use ctrl+C or ctrl+V, the website gets access to the clipboard, because it's a JS clipboard event. So those work in Docs. Think about it - do you want any website to just read everything off your clipboard?

Docs overrides right click because there's things you'd naturally want to do in a word processor with right click (format, link, comment, etc). Because docs shows a custom menu on right click, the browser will not expose the default menu, and without the default menu, there's no JS copy/paste event.

Browser extensions have more access, and that's why a browser extension re-enables the functionality.

So it was a design choice: the Docs team decided that giving users all these other right click actions was more important than allowing the user to right click to copy/paste without an extension (since most people use the keyboard shortcuts anyway).

Re:“autocomplete=off is ignored on non-login input elements” by Matt3o12_ on Wednesday June 15, 2016 @05:39PM (#11912355)
Good points, though, I don't agree with "most people use the keyboard shortcuts anyway".

Most not-so-tech-savvy users I know, don't know keyboard shortcuts, find them hard to remember, clumsy and slow (at least until they learn how to really use them).

I think that googles decision was valid and the best compromise they could have made. I really don't see a way how they could achieve both, without compromising the user's privacy in a manner that doesn't require a specific browser or extension.

Re:“autocomplete=off is ignored on non-login input elements” by borski on Wednesday June 15, 2016 @07:54PM (#11913018)
Most people, actually, use the toolbars. Neither right-click nor keyboard shortcuts come close to toolbar usage amongst "normals"
Re:“autocomplete=off is ignored on non-login input elements” by Matt3o12_ on Wednesday June 15, 2016 @08:38PM (#11913213)
The toolbar works just like that. It tells you to press command + V (or control + V on Windows) as well.
Re:“autocomplete=off is ignored on non-login input elements” by bbarn on Wednesday June 15, 2016 @04:30PM (#11911949)
I've had this bookmarklet for years on my toolbar, fixes all kinds of hijacks..

javascript:void(document.onmousedown=null);void(document.onclick=null);void(document.oncontextmenu=null)

Re:“autocomplete=off is ignored on non-login input elements” by wmil on Wednesday June 15, 2016 @05:07PM (#11912159)
Counter argument: Chrome doesn't ask you, and they don't provide any way for you to respect the standard behaviour.

If it breaks websites you use then your only option is to completely disable autocomplete.

Re:“autocomplete=off is ignored on non-login input elements” by tracker1 on Wednesday June 15, 2016 @05:12PM (#11912184)
I find that there's far more times I'd rather have autocomplete than have it actually disabled... I hate when sites force it disabled, when there's no real reason to, and as a user it's irritating.

The only time I find autofill annoying is sometimes (on my phone) lastpass will fly open at inopportune times, when entering something in a password field that's not really a password, etc.

Re:“autocomplete=off is ignored on non-login input elements” by _lce0 on Wednesday June 15, 2016 @03:32PM (#11911518)
I agree.

And nothing prevents us from dropping, on ~/.js

    setTimeout(() => {
      Array.from(
        document.querySelectorAll('[autocomplete]')
      ).forEach(
        el => el.removeAttribute('autocomplete')
      );
    }, 250);
Re:“autocomplete=off is ignored on non-login input elements” by jessedhillon on Wednesday June 15, 2016 @04:38PM (#11911990)
Is ~/.js something I should know about? Somewhere to add snippets of Javascript which are run unconditionally by Chrome on any page load?
Re:“autocomplete=off is ignored on non-login input elements” by qwyxzy on Wednesday June 15, 2016 @05:08PM (#11912161)
Re:“autocomplete=off is ignored on non-login input elements” by strictnein on Wednesday June 15, 2016 @04:57PM (#11912083)
I'm just praying it's not some new lodash like library I have to learn.
Re:“autocomplete=off is ignored on non-login input elements” by nness on Wednesday June 15, 2016 @09:07PM (#11913320)
The Dotjs extension is no longer maintained, just for those looking at this and wondering if it's worthwhile.
Re:“autocomplete=off is ignored on non-login input elements” by tacone on Wednesday June 15, 2016 @05:46PM (#11912402)
The problem is simple: what is a login form? Browsers detect the login form from the presence of password fields and sometimes an email field. If you ever have an admin form were you can change the password of a user, you will get the autocomplete everytime, no matter what you do. You have to resort to JS. Also there are situations where you just don't want to give your users the choice (bank apps etc).
Re:“autocomplete=off is ignored on non-login input elements” by timv on Wednesday June 15, 2016 @09:36PM (#11913406)
This!

I have previously wasted so much time working around this browser behaviour.

The trick I use now is to add in a hidden (via CSS) pair on inputs earlier on the page, that do nothing. The browser fills those in, and leaves the real password admin fields empty.

Re:“autocomplete=off is ignored on non-login input elements” by zimpenfish on Thursday June 16, 2016 @12:39AM (#11914024)
I might be missing something subtle or obvious but can't you just give the inputs different names? Is it such a trauma to handle that case in the backend? e.g.

<input name='admin-user'><input name='admin-pass'>?

(Now if Chrome is auto{fill,complet}ing those with usernames + passwords, that's definitely a disastrous bug.)

Re:“autocomplete=off is ignored on non-login input elements” by timv on Thursday June 16, 2016 @09:11AM (#11915820)
Now if Chrome is auto{fill,complet}ing those with usernames + passwords, that's definitely a disastrous bug

You say "bug", they say "works as designed".

Re:“autocomplete=off is ignored on non-login input elements” by tacone on Thursday June 16, 2016 @04:11PM (#11918535)
Interesting trick.
Re:“autocomplete=off is ignored on non-login input elements” by tsieling on Wednesday June 15, 2016 @06:27PM (#11912620)
Cool, we've created several forms re-used in the same browser for different people to gather public information. We now know never to use Chrome, since its developer assumptions trump our actual design needs.
Re:“autocomplete=off is ignored on non-login input elements” by groby_b on Wednesday June 15, 2016 @06:57PM (#11912745)
Since you have direct control of the browser, the simplest answer would be to go to settings and turn off autocomplete entirely.
Re:“autocomplete=off is ignored on non-login input elements” by philliphaydon on Wednesday June 15, 2016 @09:28PM (#11913392)
Autocomplete in chrome is one of its worst features. From a user and developer perspective.
Re:“autocomplete=off is ignored on non-login input elements” by michaelmior on Wednesday June 15, 2016 @03:59PM (#11911724)
I could argue that it's my website and I get to decide what features I want to be usable. And if you don't like that, then go visit someone else's site.

(This is not actually my personal stance, just playing devil's advocate.)

Re:“autocomplete=off is ignored on non-login input elements” by itp on Wednesday June 15, 2016 @04:16PM (#11911847)
Except that on a very real level, a website is a collection of resources along with instructions about how to assemble them. This is like getting upset at someone for putting together a Lego set "wrong."
Re:“autocomplete=off is ignored on non-login input elements” by bad_user on Wednesday June 15, 2016 @04:43PM (#11912021)
Legos are specifically designed such that the instructions are optional. The Lego Group wants it that way. Funny you mention them, because they've been suing for trademark and copyright infringement for years.

And this is why we can't have nice things. Also playing devil's advocate, but there are days in which I think the DRM proponents actually have a point.

When all of your digital devices will be DRM enabled and controlled by means of all sorts of trusted computing techniques, when you'll no longer own or be able to tweak anything, when VLC and Firefox won't be able to play your media anymore, when the police will knock on your door because you downloaded tcpdump, remember this moment.

Re:“autocomplete=off is ignored on non-login input elements” by magicalist on Wednesday June 15, 2016 @06:56PM (#11912737)
> I could argue that it's my website and I get to decide what features I want to be usable.

Sure, and you could also argue that it's your website so you'll decide if you want to use a self-signed certificate, or lots of popups, or auto-play video with audio. That doesn't mean the browser has to listen.

Re:“autocomplete=off is ignored on non-login input elements” by raldi on Wednesday June 15, 2016 @05:16PM (#11912202)
You could argue that, but the user who owns the web browser has all the power in this situation. It's an arms race the website operator cannot win.
Re:“autocomplete=off is ignored on non-login input elements” by tajen on Wednesday June 15, 2016 @04:18PM (#11911862)
Curious to see whether websites will start using DRM features for this purpose.

Also, as long as changing the User-Agent header is recognized by a jury as impersonation, I can imagine that some country with retarded lawmakers [1] could require that browsers display the website the way the website owner wanted it.

[1] a.k.a. where copyright owners are allowed many things over the citizen

Re:“autocomplete=off is ignored on non-login input elements” by MildlySerious on Wednesday June 15, 2016 @11:23PM (#11913703)
Flash. Cookies. Location. Autocomplete?

It's good to have a choice, but having to click my way through a dozen of these popups and fixed toolbars before having the content on my screen I desire is not the future I want.