mirror of
https://github.com/servo/servo
synced 2026-05-14 19:06:31 +02:00
This resolves #8107 Previously the index of the insetion point for a password input was calculated using the scrambled string based on the edit point in the raw string. That could lead to a wrong position of the caret. This commit changes this behavior to calculate the insertion point using the raw string. This is done in `HTMLInputElementHelpers::get_insertion_point_index_for_layout` and relies on a 1:1 mapping of the chars in the raw input to the scrambled chars (currently bullets) in the password input.