Bug 670587 - include protocol when dragging URLs from the URL bar, r=dao

--HG--
extra : rebase_source : d2d72590306779f561f3178de096af940da7e2b7
This commit is contained in:
Gijs Kruitbosch 2014-08-26 19:58:11 +01:00
parent 89ddd7f2d3
commit 5b0ccc8802

View File

@ -779,7 +779,9 @@
<handler event="dragstart" phase="capturing"><![CDATA[
// Drag only if the gesture starts from the input field.
if (event.originalTarget != this.inputField)
if (this.inputField != event.originalTarget &&
!(this.inputField.compareDocumentPosition(event.originalTarget) &
Node.DOCUMENT_POSITION_CONTAINED_BY))
return;
// Drag only if the entire value is selected and it's a valid URI.