Bug 1534455 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

There's also an alternative route that lets us remove the binding+tests completely, but it requires more work:

- Wait for the QuantumBar release which gets rid of the legacy-urlbar dependency on autocomplete
- Replace [the usage in about:preferences](https://searchfox.org/mozilla-central/rev/f1c7ba91fad60bfea184006f3728dd6ac48c8e56/browser/components/preferences/in-content/home.xul#50) with <html:input list=""> + <html:datalist></html:datalist>
- Convert searchbar-textbox to a CE, and port only the relevant code from autocomplete (it seems to only use autocomplete to fill the items and cycle through items when up/down is pressed, which could be implemented directly into SearchBarTextbox and MozSearchAutocompleteRichlistboxPopup)
- Somehow drop the usage of type="autocomplete" usage from the bookmarks panel: https://searchfox.org/mozilla-central/source/browser/components/places/content/editBookmarkPanel.inc.xul#77

The reason I've only suggested <datalist> for about:preferences, is because it doesn't work in top-level windows. It does work for in-content pages though (tested in both cases). However, if we can somehow get <datalist> to work on top-level windows, then it would be a possible replacement everywhere.
There's also an alternative route that lets us remove the binding+tests completely+switch to HTML, but it requires more work:

- Wait for the QuantumBar release which gets rid of the legacy-urlbar dependency on autocomplete
- Replace [the usage in about:preferences](https://searchfox.org/mozilla-central/rev/f1c7ba91fad60bfea184006f3728dd6ac48c8e56/browser/components/preferences/in-content/home.xul#50) with <html:input list=""> + <html:datalist></html:datalist>
- Convert searchbar-textbox to a CE, and port only the relevant code from autocomplete (it seems to only use autocomplete to fill the items and cycle through items when up/down is pressed, which could be implemented directly into SearchBarTextbox and MozSearchAutocompleteRichlistboxPopup)
- Somehow drop the usage of type="autocomplete" usage from the bookmarks panel: https://searchfox.org/mozilla-central/source/browser/components/places/content/editBookmarkPanel.inc.xul#77

The reason I've only suggested <datalist> for about:preferences, is because it doesn't work in top-level windows. It does work for in-content pages though (tested in both cases). However, if we can somehow get <datalist> to work on top-level windows, then it would be a possible replacement everywhere.
There's also an alternative route that lets us remove the binding+tests completely and switch to HTML, but it requires more work:

- Wait for the QuantumBar release which gets rid of the legacy-urlbar dependency on autocomplete
- Replace [the usage in about:preferences](https://searchfox.org/mozilla-central/rev/f1c7ba91fad60bfea184006f3728dd6ac48c8e56/browser/components/preferences/in-content/home.xul#50) with <html:input list=""> + <html:datalist></html:datalist>
- Convert searchbar-textbox to a CE, and port only the relevant code from autocomplete (it seems to only use autocomplete to fill the items and cycle through items when up/down is pressed, which could be implemented directly into SearchBarTextbox and MozSearchAutocompleteRichlistboxPopup)
- Somehow drop the usage of type="autocomplete" usage from the bookmarks panel: https://searchfox.org/mozilla-central/source/browser/components/places/content/editBookmarkPanel.inc.xul#77

The reason I've only suggested <datalist> for about:preferences, is because it doesn't work in top-level windows. It does work for in-content pages though (tested in both cases). However, if we can somehow get <datalist> to work on top-level windows, then it would be a possible replacement everywhere.
There's also an alternative route that allows removing the binding+tests completely and switching to HTML, but it requires more work:

- Wait for the QuantumBar release which gets rid of the legacy-urlbar dependency on autocomplete
- Replace [the usage in about:preferences](https://searchfox.org/mozilla-central/rev/f1c7ba91fad60bfea184006f3728dd6ac48c8e56/browser/components/preferences/in-content/home.xul#50) with <html:input list=""> + <html:datalist></html:datalist>
- Convert searchbar-textbox to a CE, and port only the relevant code from autocomplete (it seems to only use autocomplete to fill the items and cycle through items when up/down is pressed, which could be implemented directly into SearchBarTextbox and MozSearchAutocompleteRichlistboxPopup)
- Somehow drop the usage of type="autocomplete" usage from the bookmarks panel: https://searchfox.org/mozilla-central/source/browser/components/places/content/editBookmarkPanel.inc.xul#77

The reason I've only suggested <datalist> for about:preferences, is because it doesn't work in top-level windows. It does work for in-content pages though (tested in both cases). However, if we can somehow get <datalist> to work on top-level windows, then it would be a possible replacement everywhere.

Back to Bug 1534455 Comment 1