From f497f362522a52dd30b1cdb28bd4a7cdce3279fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Sat, 5 Oct 2019 19:13:27 +0000 Subject: [PATCH] Bug 1586392 - Fix dragging from the expanded urlbar. r=harry Differential Revision: https://phabricator.services.mozilla.com/D48248 --HG-- extra : moz-landing-system : lando --- browser/components/urlbar/UrlbarInput.jsm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/browser/components/urlbar/UrlbarInput.jsm b/browser/components/urlbar/UrlbarInput.jsm index dfc99e2309ec..39ce07eb8730 100644 --- a/browser/components/urlbar/UrlbarInput.jsm +++ b/browser/components/urlbar/UrlbarInput.jsm @@ -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 ||