jgbishop / googlebarlite

A light-weight Google search toolbar for Firefox.
Other
6 stars 5 forks source link

Inline auto-complete leaves trash behind #32

Open jgbishop opened 9 years ago

jgbishop commented 9 years ago

User Serbhan writes:

When both auto-completion and inline completion are enabled, search for try these search terms. Now clear edit box and type try followed by two spaces. Then >> shows up, followed by try these search terms. Pressing enter will search for the whole thing, including >>.

This is likely a bug down in the Firefox core, but it's worth investigating.

jgbishop commented 9 years ago

See 1043310 – AutoCompletion doesn't take capitalization from address book entry, can leave angle brackets characters >> in field, when loosing focus by clicking outside (not enter/tab)

The fix at the above link is down in some C++ code, but perhaps we can use a similar tactic in the autocomplete code in GBL. Look for a >> in the text during autocompletion, and either trim it (and the rest of the string) out, or select the autocomplete result (to the right of the >>). The latter option is probably best.

jgbishop commented 9 years ago

Perhaps the forcecomplete attribute would fix this, though I'm not sure if it's enabled / accessible in Firefox.