TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Safari tries to fill username

628 点作者 knorthfield将近 4 年前

28 条评论

WayToDoor将近 4 年前
Related, there is a &quot;bug&quot; in chrome that disabled autocomplete=&quot;off&quot; on input elements, marked as won&#x27;t fix<p><a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=587466" rel="nofollow">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=587466</a>
评论 #27313679 未加载
评论 #27313760 未加载
评论 #27313680 未加载
评论 #27313691 未加载
评论 #27313476 未加载
评论 #27315103 未加载
评论 #27313547 未加载
评论 #27313591 未加载
评论 #27315688 未加载
评论 #27314302 未加载
评论 #27314462 未加载
评论 #27314819 未加载
samjmck将近 4 年前
It _wants_ to autofill, but it doesn&#x27;t without the user actually confirming the autofill. Pretty important distinction to make I think
评论 #27315105 未加载
评论 #27313904 未加载
metanonsense将近 4 年前
This is not really a Safari-only thing. All password managers that I have used in the past had some kind of heuristic to decide whether a field should be auto-filled or not. Here is a nice explanation by a (former?) 1Password employee (<a href="https:&#x2F;&#x2F;1password.community&#x2F;discussion&#x2F;94198&#x2F;autocomplete-off-for-1pass-suggested-fields" rel="nofollow">https:&#x2F;&#x2F;1password.community&#x2F;discussion&#x2F;94198&#x2F;autocomplete-of...</a>).<p>To me as a web developer (among other things :D) this is quite annoying because password managers often hijack our forms when they decide that the label (or id or classname etc.) sounds suspiciously usernamely, passwordly or credit cardly.
评论 #27315814 未加载
评论 #27318333 未加载
评论 #27317633 未加载
评论 #27319648 未加载
评论 #27316715 未加载
ChrisMarshallNY将近 4 年前
I don&#x27;t see this as a bug. Password autocomplete is kind of a dumpster fire. It varies, depending on which sites I visit.<p>I use 1Password, with browser integrations (it works better with Safari than Chrome).<p>I don&#x27;t know most of my passwords; relying on 1Password to access the strings of garbage I autogenerate.<p>So I am <i>constantly</i> using it to fill forms.<p>It keys on things like attached &lt;label&gt;...&lt;&#x2F;label&gt; elements. Not all sites use these. Some sites also sometimes add some kind of junk that causes 1Password to fail.<p>Other times, 1Password insists that the field I just selected needs an autofill; even for non-auth fields.<p>Not really a big deal for me. No one that shouldn&#x27;t gets my auth, and I ignore the prompt when it is not necessary.
评论 #27314736 未加载
评论 #27314230 未加载
评论 #27314418 未加载
captainmuon将近 4 年前
Too much magic if you ask me.<p>There are often two ways you can do something. In this case:<p>- Explicit clean markup and a deterministic GUI or<p>- Tons of heuristics and a magic GUI that works great most of the time but fails in ways that are hard to understand.<p>I feel you get this tradeoff a lot in &quot;clever&quot; systems. Whether it is just finding the main text on a page, blocking ads, doing search, or even self-driving cars: I often prefer the &quot;pedestrian&quot; approach over the &quot;magic&quot; approach. Even if it is a bit less powerful, it is also less surprizing.
评论 #27315136 未加载
评论 #27313516 未加载
评论 #27313435 未加载
realusername将近 4 年前
Just another day in web development with Safari, I&#x27;m not even surprised anymore. I&#x27;ve encountered so many of those &quot;total nonsense&quot; moments.
评论 #27315243 未加载
评论 #27313364 未加载
评论 #27313524 未加载
评论 #27313379 未加载
brandrick将近 4 年前
The assumption here that this is being triggered because Safari assumes any page with this phrase must be a login page sounds plausible (if odd) to me.<p>However, anecdotally I imagine there will be an uptick in sites using similars phrases — as following easing of Covid restrictions around the world even little brick and mortar stores will be making such welcoming statements on&#x2F;across their homepages. :D
评论 #27313494 未加载
OldGoodNewBad将近 4 年前
&gt;tries to<p>Maybe “offers to” is a better way of saying this? The way this is being treated makes one thing that it goes ahead and fills in a user name without interaction. Instead it seems that login &#x2F; password fields are being detected by the browser, which is expected behavior.
everydaypanos将近 4 年前
Imagine how much code like this is inside our &quot;lightweight&quot; browsers.<p>All the code reviews that passed this on to production make you wonder how competent these browser makers actually are..<p>I think that the browser should not treat every input field as a personal info form for the current user. There are plenty of cases of web apps I can think of where disabling autocomplete is best user experience overall.
评论 #27315305 未加载
weird-eye-issue将近 4 年前
Oh gosh. You just know the engineer who had to implement this hates the product lead even more now.
pornel将近 4 年前
There was probably an important website somewhere that had a login page with a shitty markup, and Safari users complained that autofill &quot;doesn&#x27;t work&quot; there. Garbage markup got a garbage workaround.
silverwind将近 4 年前
Safari seems to be full of such hacks, more such examples in this related story:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26165357" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26165357</a>
pdenton将近 4 年前
Welcome back! Please leave a comment
评论 #27313441 未加载
评论 #27313468 未加载
soheil将近 4 年前
This is false. Safari does not autofill a password, it merely displays the icon for you to select a password if you choose to. It is still a bug, but there is a huge distinction because in one case you&#x27;re leaking your password and in the other you&#x27;re not. The title of this post should be changed. Not sure why posts like this crop up to the top so quickly without people actually understanding what&#x27;s happening.
northerdome将近 4 年前
Autocomplete is a black box. Trying to build a form that consistently works with Autocomplete is basically just trial and error. There should be a standardized API for this. I understand trying to support pages that weren&#x27;t built with support but it&#x27;s frustrating that there is no programmatic way of defining how autofill works with your app.
calebporzio将近 4 年前
Livewire&#x27;s creator here. This problem is so bonkers and such a pain to deal with.<p>For your amusement. Here&#x27;s the code that was SUPPOSED to fix the bug: <a href="https:&#x2F;&#x2F;github.com&#x2F;livewire&#x2F;livewire&#x2F;blob&#x2F;0b3feda46a9dd6ad19c6966a0c7d9820d928fe87&#x2F;js&#x2F;node_initializer.js#L103-L109" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;livewire&#x2F;livewire&#x2F;blob&#x2F;0b3feda46a9dd6ad19...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;livewire&#x2F;livewire&#x2F;blob&#x2F;0b3feda46a9dd6ad19c6966a0c7d9820d928fe87&#x2F;src&#x2F;LivewireManager.php#L200-L205" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;livewire&#x2F;livewire&#x2F;blob&#x2F;0b3feda46a9dd6ad19...</a><p>And here&#x27;s the podcast I recorded a while back on what a pain it is: <a href="https:&#x2F;&#x2F;laravel-livewire.com&#x2F;podcasts&#x2F;ep65-safari-sucks-heres-why" rel="nofollow">https:&#x2F;&#x2F;laravel-livewire.com&#x2F;podcasts&#x2F;ep65-safari-sucks-here...</a>
busymom0将近 4 年前
The title is clickbait.<p>Both &quot;welcome back&quot; and &quot;Sign In&quot; show the blue outline around the field and safari asks the user to select a username in the dropdown without actually filling the field. The user needs to actively click on the username for safari to fill the field.<p>I don&#x27;t see how this is &quot;bad behaviour&quot;. Seems like expected behaviour.
评论 #27315244 未加载
GistNoesis将近 4 年前
Does it work in other languages ?
评论 #27313751 未加载
dzhiurgis将近 4 年前
I vaguely remember Apple saying they use ML to parse forms... Could be why.<p>Personally I have this weird thing with Safari passwords - there&#x27;s 2 sites where password dropdown would appear at top left corner for whatever reason.
评论 #27314510 未加载
nojito将近 4 年前
Inaccurate title. Can we get it changed?<p>It currently gives the _option_ to fill out the login info.<p>The title implies that it fills it automatically.
评论 #27315343 未加载
bryanrasmussen将近 4 年前
I just imagine the scenario of someone getting nostalgic for Welcome Back, Kotter, firing up Safari and having this happen on every fan page they try to surf.<p>On the other hand I guess it must also happen on every page that mentions this bug.
pachico将近 4 年前
I&#x27;m wondering if in other languages it would happen too.<p>I don&#x27;t have safari so I can&#x27;t try it out but, what if you wrote &quot;bentornato&quot;? Would it also trigger it?
评论 #27315040 未加载
spoonjim将近 4 年前
This is the more pedestrian version of the inscrutability of AI.
raverbashing将近 4 年前
I can see the PM with this story &quot;As a user I want to feel welcome back to my websites hence my login information will be auto-filled if the sites welcome me back&quot;<p>(Though the real issue here seems to be field identification, not the auto-fill)
评论 #27313503 未加载
tomcooks将近 4 年前
Anything but following standards and making sure that upon joining the internet new users either know how to use the tools, or know what the consequences can be.<p>I miss netiquette and RTFM
评论 #27314086 未加载
emilfihlman将近 4 年前
Chrome also breaks CSS conventions and mark it as wontfix.<p>Basically Chrome is just awful.
评论 #27314501 未加载
alisonkisk将近 4 年前
Whats the point of this feature? Even if the username is needed, Safari can&#x27;t do anything with it if it can&#x27;t find a form field to put it in.
newbie578将近 4 年前
Why would someone even use Safari instead of Chrome? Hell I would rather use Edge.
评论 #27314784 未加载
评论 #27313744 未加载
评论 #27315574 未加载
评论 #27315315 未加载
评论 #27313815 未加载
评论 #27313735 未加载
评论 #27314145 未加载