mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
505406e25d
This changes the urlbar to always generate a result and then confirm it through pickResult. This way we obtain a consistent behavior independently from whether the view has a result or an action like Paste&Go happened. Before this we used to go through getShortcutOrURIAndPostData, that implements only a part of the urlbar logic, often causing different behavior depending on the view state, and thus requiring constant maintenance to sync it up. In a follow-up bug we will evaluate the complete removal of getShortcutOrURIAndPostData in favor of direct calls to UrlbarUtils.getHeuristicResultFor(). This also moves up a bit closer to always pass a final url to the docshell, and stop trying to do complex URIFixup calls in it. For now we still rely on its fix-ups for browser.fixup.dns_first_for_single_words, where we pass a url, and if it's invalid it will instead search. See UrlbarUtils.RESULT_TYPE.URL handling in pickResult(). Differential Revision: https://phabricator.services.mozilla.com/D75911 |
||
---|---|---|
.. | ||
browser | ||
chrome | ||
iframesandbox | ||
mochitest | ||
navigation | ||
unit | ||
unit_ipc | ||
moz.build |