Closed
Bug 831862
Opened 11 years ago
Closed 11 years ago
Disable dictionary suggestions on password-fields?
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect)
Tracking
(firefox20 verified, firefox21 verified)
VERIFIED
FIXED
Firefox 21
People
(Reporter: aaronmt, Assigned: jchen)
References
Details
Attachments
(2 files, 1 obsolete file)
82.57 KB,
image/png
|
Details | |
2.19 KB,
patch
|
jchen
:
review+
cpeterson
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
This was suggested to me from a friend using Firefox 18. Currently we offer dictionary suggestions on password-fields where Chrome and stock do not. What happens is that ones password field is masked and that the password becomes clearly visible as a new suggestion This is reproducible on Facebook's login.
Reporter | ||
Comment 1•11 years ago
|
||
Password would be visible to all exposed if a user signs into something and ones device is hooked up via HDMI MHL to an external display. Also shoulder viewers I suppose.
Assignee | ||
Comment 2•11 years ago
|
||
Same cause that regressed Bug 819073
Assignee | ||
Comment 3•11 years ago
|
||
Because we coalesce restartInput calls, when notifyIMEEnabled calls restartInput(), it may not actually cause a restart, in which case the type (password, etc.) of the input is not registered. This patch bypasses coalescing for calls coming from notifyIMEEnabled, so the input type is always registered. The purpose of coalescing is to avoid excessive restartInput() calls from notifyIME, so bypassing it has no bad side effects when the calls are coming from notifyIMEEnabled, which is not called excessively.
Attachment #703591 -
Flags: review?(cpeterson)
Comment 4•11 years ago
|
||
Comment on attachment 703591 [details] [diff] [review] Force restart input during notifyIMEEnabled (v1) Review of attachment 703591 [details] [diff] [review]: ----------------------------------------------------------------- I dislike boolean parameters because they make the caller code less readable, they suggest that a function is "doing two jobs", and once you have one special case you may need more in the future. For multiple special cases, an enum parameter is good, but in this case you might consider splitting restartInput() into two methods. Maybe something like tryRestartInput() that checks mLastRestartInputTime and restartInput() or restartInputNow() that forces a restart.
Attachment #703591 -
Flags: review?(cpeterson) → review+
Assignee | ||
Comment 5•11 years ago
|
||
I like the tryRestartInput idea. Thanks!
Attachment #703591 -
Attachment is obsolete: true
Attachment #704043 -
Flags: review+
Comment 6•11 years ago
|
||
Comment on attachment 704043 [details] [diff] [review] Force restart input during notifyIMEEnabled (v1.1) Review of attachment 704043 [details] [diff] [review]: ----------------------------------------------------------------- Nice. This diff is surprisingly concise! :) ::: mobile/android/base/GeckoInputConnection.java @@ +208,5 @@ > if (time < mLastRestartInputTime + 200) { > return; > } > mLastRestartInputTime = time; > + restartInput(); You should move `mLastRestartInputTime = SystemClock.uptimeMillis()` to restartInput(). We want the mLastRestartInputTime to be updated when restartInput() is called directly or by tryRestartInput().
Attachment #704043 -
Flags: review+
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Chris Peterson (:cpeterson) from comment #6) > Comment on attachment 704043 [details] [diff] [review] > Force restart input during notifyIMEEnabled (v1.1) > > Review of attachment 704043 [details] [diff] [review]: > ----------------------------------------------------------------- > > Nice. This diff is surprisingly concise! :) > > ::: mobile/android/base/GeckoInputConnection.java > @@ +208,5 @@ > > if (time < mLastRestartInputTime + 200) { > > return; > > } > > mLastRestartInputTime = time; > > + restartInput(); > > You should move `mLastRestartInputTime = SystemClock.uptimeMillis()` to > restartInput(). We want the mLastRestartInputTime to be updated when > restartInput() is called directly or by tryRestartInput(). Done. https://hg.mozilla.org/integration/mozilla-inbound/rev/a934be5e446a Leaving open for Aurora
status-firefox20:
--- → affected
status-firefox21:
--- → fixed
Flags: in-testsuite-
Whiteboard: [leave open]
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a934be5e446a
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 704043 [details] [diff] [review] Force restart input during notifyIMEEnabled (v1.1) [Approval Request Comment] Bug caused by (feature/regressing bug #): Bug 825120 User impact if declined: Wrong behavior when using special input fields such as password fields Testing completed (on m-c, etc.): Locally, m-c Risk to taking this patch (and alternatives if risky): Very little risk; this patch fixes a regression from Bug 825120, and because Bug 825120 was uplifted to Aurora, this patch should be uplifted too to fix the regression. String or UUID changes made by this patch: None
Attachment #704043 -
Flags: approval-mozilla-aurora?
Comment 10•11 years ago
|
||
Comment on attachment 704043 [details] [diff] [review] Force restart input during notifyIMEEnabled (v1.1) Approving on aurora, given the risk is manageable where we are in the cycle & as Bug 825120 is in FF20 . We will consider backing out if any severe regressions are found late in the cycle.Also, request to QA to help verify this bug and some adhoc testing around Bug 825120 .Thank you !
Attachment #704043 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•11 years ago
|
Reporter | ||
Comment 11•11 years ago
|
||
Looks good on trunk. Verified Fixed on mozilla-central (Nightly, 01/22)
Assignee | ||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/26337130270a
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [leave open]
Target Milestone: --- → Firefox 21
Reporter | ||
Updated•11 years ago
|
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•