diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 11:53:33 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 11:53:33 +0200 |
commit | cebd1e72e28b58881fbcccfb48a43ce47a6b01a4 (patch) | |
tree | a1321286a154942e6d4ef5b12ccd9193f1a866ad | |
parent | 02dffb57c8c330ae6d299141ae97ae23f433a927 (diff) | |
download | UXP-cebd1e72e28b58881fbcccfb48a43ce47a6b01a4.tar UXP-cebd1e72e28b58881fbcccfb48a43ce47a6b01a4.tar.gz UXP-cebd1e72e28b58881fbcccfb48a43ce47a6b01a4.tar.lz UXP-cebd1e72e28b58881fbcccfb48a43ce47a6b01a4.tar.xz UXP-cebd1e72e28b58881fbcccfb48a43ce47a6b01a4.zip |
Bug 92737 - Part 10: Use browserDragAndDrop.dropLinks in urlbarBindings.xml
Issue #121
-rw-r--r-- | application/palemoon/base/content/urlbarBindings.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/application/palemoon/base/content/urlbarBindings.xml b/application/palemoon/base/content/urlbarBindings.xml index e859fe804..bdb7a6a12 100644 --- a/application/palemoon/base/content/urlbarBindings.xml +++ b/application/palemoon/base/content/urlbarBindings.xml @@ -455,11 +455,12 @@ <method name="onDrop"> <parameter name="aEvent"/> <body><![CDATA[ - let url = browserDragAndDrop.drop(aEvent, { }) + let links = browserDragAndDrop.dropLinks(aEvent); // The URL bar automatically handles inputs with newline characters, // so we can get away with treating text/x-moz-url flavours as text/plain. - if (url) { + if (links.length > 0 && links[0].url) { + let url = links[0].url; aEvent.preventDefault(); this.value = url; SetPageProxyState("invalid"); |