Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix placeholders for password inputs #9072
Conversation
currently they show dots
|
I think this messes up get_insertion_point_index_for_layout; it expects to see the value before the mapping to dots. Can we reftest this? Maybe even just |
|
The comment in Yes, I will add a reftest. |
|
Added a reftest |
d8211f6
to
728ec11
|
@bors-servo try |
Fix placeholders for password inputs currently they show dots instead of the placeholder text <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9072) <!-- Reviewable:end -->
|
|
|
(failed due to an intermittent) |
|
get_insertion_point_index_for_layout calls char_indices on the result of get_raw_textinput_value. See #8265. |
|
Given that layout only gets the dots, shouldn't it be calculating the insertion point based on the dots and not the actual text? In case the text contains non-ascii values this could get messed up. |
|
Pushed another commit which takes a different approach and moves the placeholder logic out of get_raw_textinput_value (it doesn't really belong there anyway?). It shouldn't affect get_raw_textinput_value since the placeholder is only there on an empty string, so the insertion point has to be zero. |
|
Did you mean to make some other changes to get_raw_textinput_value, like removing the check for an empty string, or removing the mapping to dots? |
63ebbc9
to
be6caf6
|
My bad, updated. |
|
Missing changes to get_raw_textinput_value? |
be6caf6
to
cc5844a
|
Done |
|
@bors-servo r+ |
|
|
Fix placeholders for password inputs currently they show dots instead of the placeholder text <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9072) <!-- Reviewable:end -->
|
|
Manishearth commentedDec 26, 2015
currently they show dots instead of the placeholder text