Bug 1586392 - Fix dragging from the expanded urlbar. r=harry

Differential Revision: https://phabricator.services.mozilla.com/D48248

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dão Gottwald 2019-10-05 19:13:27 +00:00
Родитель 9c63a768b5
Коммит f497f36252
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -2064,7 +2064,11 @@ class UrlbarInput {
return;
}
// Drag only if the entire value is selected and it's a loaded URI.
// Make sure we don't cover the tab bar or other potential drop targets.
this.endLayoutExtend(true);
// Only customize the drag data if the entire value is selected and it's a
// loaded URI. Use default behavior otherwise.
if (
this.selectionStart != 0 ||
this.selectionEnd != this.inputField.textLength ||