6

IE10 has a feature that reveals the content of a password field at the click of a button. Is there any way to detect that this is happening?

Of course, I can fall back to looking for a click where I expect that button to be, but that's not ideal.

ColBeseder
  • 3,579
  • 3
  • 28
  • 45
  • Hardly - it's going to be outside the DOM. But then, should a web site care about this in the first place? It's a terrible feature, but that's arguably the browser's and the user's problem – Pekka May 11 '13 at 21:06
  • @Pekka웃 By that logic, we should just show a blank page to people browsing with IE8 when it's not supported - because that's the browser's and the user's problem. Just because it's a browser feature doesn't mean we should ignore it. – tckmn May 11 '13 at 21:07
  • @Doorknob I'm not sure I agree with the analogy. I assume the OP wants to do something when the password is revealed, for example empty the field. *That* should remain outside the site's scope because it's the user's and the browser's responsibility how they choose to deal with the issue of password security. In other words, this specific thing happening shouldn't be any of the web site's business. – Pekka May 11 '13 at 21:09
  • @Pekka웃 Well, I suppose we don't know what the OP wants, but he/she probably has a good reason for doing it (or it's an [XY problem](http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem)). – tckmn May 11 '13 at 21:11
  • I'm not sure I entirely disagree with @Doorknob's suggestion regarding IE8. ;o) – deceze May 11 '13 at 21:11
  • 2
    @ColBeseder Why do you want to do this in the first place? – tckmn May 11 '13 at 21:12
  • For better or for worse, our site has a security feature that interferes with the revealed password. As a temporary solution, I'd like to disable the feature when the password is revealed. – ColBeseder May 11 '13 at 21:23
  • 1
    @Pekka웃 - I don't agree it is a terrible feature. The only benefit of masking the input is to prevent shoulder surfing and if you are sure you are in an environment where that isn't an issue I can't see a problem with it. – Martin Smith May 11 '13 at 21:25
  • 1
    See http://stackoverflow.com/questions/10842665/internet-explorer-10-windows-8-remove-text-input-and-password-action-icons – Orangepill May 11 '13 at 21:29
  • 1
    @MartinSmith It can come in handy when having really long and hard to type passwords. Visual feedback reduces the chance of a typo and having to start all over again. But I agree with Pekka웃. It's not the concern of the webdeveloper to interfere with this feature. It's up to the user if he want's to use it or not. – Bart May 11 '13 at 21:29
  • 1
    @Bart - I agree with that part of Pekka's comment as well it was the "terrible feature" part I disagreed with (as do you apparently). Certainly beats typing it into notepad to see it as clear text then pasting it in! – Martin Smith May 11 '13 at 21:33
  • @Orangepill That's a useful link. I may use that for the time being. – ColBeseder May 11 '13 at 21:34

1 Answers1

1

Seeing as there are no answers, for future searchers, this is the best I have so far:

It's possible to hide the button by using this css:

::-ms-reveal {
    display: none;
}
ColBeseder
  • 3,579
  • 3
  • 28
  • 45