Closed
Bug 1493919
Opened 7 years ago
Closed 7 years ago
Permission denied on drag after focus event
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Core
DOM: Copy & Paste and Drag & Drop
Tracking
()
RESOLVED
DUPLICATE
of bug 1435451
People
(Reporter: tgra78, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Build ID: 20180830143136
Steps to reproduce:
<tr id="line1" draggable="true" ondragstart="event.dataTransfer.setData('text',this.id)">
<td><input onfocus="this.select()" type="text" id="id1" value="Message"/></td>
</tr>
Actual results:
ondrag:
Error: Permission denied to access property "setData"
Expected results:
this code works on Chrome and IE11 without error
If you change onfocus by onclick, that works normally
Comment 1•7 years ago
|
||
Not a localization bug.
Assignee: bugzilla.fr → nobody
Component: fr / French → Untriaged
Product: Mozilla Localizations → Firefox
QA Contact: benoit.leseul
Comment 2•7 years ago
|
||
I couldn't reproduce this issue on
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
I see same behavior on Chrome and Firefox with onclick and onfocus. However I am placing this under core:Dom so someone can look into this. Thanks!
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Updated•7 years ago
|
Component: DOM: Core & HTML → Drag and Drop
Flags: needinfo?(enndeakin)
Hard to reproduce.
I m under Firefox 62.0.2 (64bits), French version
I found a operating mode:
Source:
--------------------
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="fr">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Test</title>
<script>
function setDrop(datas){
}
</script>
</head>
<body>
<table>
<tr>
<td id="td1" draggable="true" ondragstart="event.dataTransfer.setData('text',this.id)">
<input onfocus="this.select();" type="text" id="id1" value="Drag1"/>
</td>
<td id="td2" draggable="true" ondragstart="event.dataTransfer.setData('text',this.id)">
<input onfocus="this.select();" type="text" id="id2" value="Drag2"/>
</td>
</tr>
</table>
<table>
<tr id="destination" ondrop="event.preventDefault(); var data = event.dataTransfer.getData('text'); setDrop(data); document.getElementById(this.id).style.border='0'; " ondragover="event.preventDefault();">
<th>DropZone</th>
</tr>
</table>
</body>
</html>
------------------
1) Drag 'Drag1' to 'DropZone' => OK
2) Tabulation => you are now on Drag2 cells
3) Drag 'Drag2' to 'DropZone' => Error: Permission denied to access property "setData"
I note that is not systematic, try many times.
NB: sorry for my English, I'm French.
Best Regards
Comment 4•7 years ago
|
||
This should be fixed in 63.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(enndeakin)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•