Closed
Bug 1041435
Opened 11 years ago
Closed 10 years ago
Dragging URL from address bar should assign URL to data transfer object
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: oliverjash, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file, 2 obsolete files)
|
744 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2096.9 Safari/537.36
Steps to reproduce:
Highlight a URL in the address bar and then drag and drop it
Actual results:
The drop target does not receive the URL (event.dataTransfer.getData('URL')). This does work in Chrome.
Expected results:
It should receive the URL as event.dataTransfer.getData('URL') (in the `drop` event).
Comment 1•10 years ago
|
||
Can you reproduce this on using a current version on Mac?
(I cannot on Windows)
Flags: needinfo?(oliverjash)
Flags: needinfo?(iamjayakumars)
Flags: needinfo?(francis.uy)
Sorry, I don't know. A testcase would be helpful.
Flags: needinfo?(francis.uy)
Based on https://dxr.mozilla.org/mozilla-central/source/testing/web-platform/tests/html/editing/dnd/canvas/001.xhtml.
Reproducible on Fx42.0b3 Win8.1, got URL data on Chrome 45.
Flags: needinfo?(oliverjash)
Flags: needinfo?(iamjayakumars)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Hardware: x86 → All
Comment 4•10 years ago
|
||
It works fine in MAC OS X 10.11
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:44.0) Gecko/20100101 Firefox/44.0 ID:20151004030211 CSet: 8464f02a2798cf9ff8759df712f2c77ec0b15d23
(In reply to iamjayakumars from comment #4)
> It works fine in MAC OS X 10.11
>
> Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:44.0) Gecko/20100101
> Firefox/44.0 ID:20151004030211 CSet: 8464f02a2798cf9ff8759df712f2c77ec0b15d23
Are you got a URL text?
Comment 6•10 years ago
|
||
Yes, i got the text. check the attached screenshot.
(In reply to iamjayakumars from comment #6)
> Created attachment 8670095 [details]
> While Draging
>
> Yes, i got the text. check the attached screenshot.
You should drag the text to box of the testcase, it alert the event.dataTransfer.getData('URL');.
Comment 8•10 years ago
|
||
(In reply to YF (Yang) from comment #7)
> (In reply to iamjayakumars from comment #6)
> > Created attachment 8670095 [details]
> > While Draging
> >
> > Yes, i got the text. check the attached screenshot.
>
> You should drag the text to box of the testcase, it alert the
> event.dataTransfer.getData('URL');.
It working fine, without alert.
Testcase results:
FF 43a2 on Mac OS X 10.10:
drag address bar icon: shows URL alert
drag address bar text: shows blank alert
FF 41 on Windows 8.1:
drag address bar icon: shows URL alert
drag address bar text: shows blank alert
Chrome 44b on Mac OS X 10.10:
drag address bar icon: shows URL alert
drag address bar text: no response
Chrome 45 on Windows 8.1:
drag address bar icon: shows URL alert
drag address bar text: shows URL alert
Safari 9 on Mac OS X 10.10:
drag address bar icon: shows URL alert
drag address bar text: shows blank alert
MSIE 11 on Windows 8.1:
drag address bar icon: shows URL alert
drag address bar text: does not allow text dragging
It's unclear what the result is supposed to be, but I'd call this WFM.
Keywords: testcase
Comment 10•10 years ago
|
||
When you highlight the address bar text and drag it, it drags as type Text. This is arguably the correct behavior. It is text that happens to match a URL format.
When you click the address bar icon and drag it, it drags as type URL (and Text).
Attachment #8669439 -
Attachment is obsolete: true
Attachment #8670095 -
Attachment is obsolete: true
Comment 11•10 years ago
|
||
Behavior is not appreciably different from other browsers (with the exception of Chrome on Windows).
Treating a text drag as type Text is not incorrect.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•