Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

do you need to listen to all keydown events? #2

Closed
benadida opened this issue Dec 14, 2011 · 4 comments
Closed

do you need to listen to all keydown events? #2

benadida opened this issue Dec 14, 2011 · 4 comments
Labels
ARCHIVED - http://mzl.la/ghe-archive CLOSED at time of archiving

Comments

@benadida
Copy link
Contributor

https://github.com/mozilla/watchdog-visualhash/blob/master/Jetpack/data/js/util.js#L64

I'm guessing this is so you can catch all INPUTs, even ones added later, but just checking that this is necessary.

@psawaya
Copy link
Contributor

psawaya commented Dec 14, 2011

Yeah, that might slow things down. Changed it to listen to DOM change events, which is working for me on Chrome and Firefox. I'm guessing those are a lot more rare.

@benadida
Copy link
Contributor Author

Seems good, though now on the twitter login page nothing happens when my password is pre-filled until I type one more letter.

psawaya added a commit that referenced this issue Dec 15, 2011
@psawaya
Copy link
Contributor

psawaya commented Dec 15, 2011

Hmm, originally I wasn't going to have it show the hash on focus, but now that I think about it, it could be useful to see if your password manager filled in the password you thought it would. Let me know if you like the way it works now, and I'll resubmit to AMO.

Unfortunately, Chrome overrides the background of auto-filled password inputs to a yellowish color, so I don't think I can change the color until the user starts typing.

@benadida
Copy link
Contributor Author

I don't think this requires a resubmit right now, let's get your add-on approved first, then we can rev it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED - http://mzl.la/ghe-archive CLOSED at time of archiving
Projects
None yet
Development

No branches or pull requests

3 participants