Loading
Bug 1826184: Show go-button even if pasting multiline text on urlbar r=adw
The direct reason why the go-button was hidden when pasting text is that "usertyping" attribute will not be true. https://searchfox.org/mozilla-central/rev/8433b62e54fd30663e82f090c4d31554531a2e66/browser/base/content/browser.css#754 When pasting data and removing white space or line break, call preventDefault(). https://searchfox.org/mozilla-central/rev/8433b62e54fd30663e82f090c4d31554531a2e66/browser/components/urlbar/UrlbarInput.sys.mjs#3504-3505 The other hand, if not removing any chars, _on_input() will be called because don't call preventDefault(). And, the attribute is set in _on_input(). https://searchfox.org/mozilla-central/rev/8433b62e54fd30663e82f090c4d31554531a2e66/browser/components/urlbar/UrlbarInput.sys.mjs#3343 So, we set the attribute even if pasting data is changed as same as _on_input(). Differential Revision: https://phabricator.services.mozilla.com/D174576