mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 670587 - include protocol when dragging URLs from the URL bar, r=dao
--HG-- extra : rebase_source : d2d72590306779f561f3178de096af940da7e2b7
This commit is contained in:
parent
89ddd7f2d3
commit
5b0ccc8802
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user