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.gz |
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 e859fe8040..bdb7a6a122 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"); |