JDK-8208114 : Drag and drop of text contents and URL links functionalities are broken in Webview
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u191,openjfx11
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-07-24
  • Updated: 2020-01-31
  • Resolved: 2018-07-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8u191Fixed openjfx11Fixed
Related Reports
Relates :  
Try dragging of text content or URL Links into a text field or container, the contents are not moved to the target container. Also the drag icon never appears while dragging.

Regression: Yes, previous builds the issue is not observed. 
Issue introduced in : 8u191 b02, 
Issue Type : OS generic.

Use the attached html files to reproduce the issue,
Changeset: 31ed6f47fe5d Author: arajkumar Date: 2018-07-27 09:53 +0530 URL: http://hg.openjdk.java.net/openjfx/jfx-dev/rt/rev/31ed6f47fe5d 8208114: Drag and drop of text contents and URL links functionalities are broken in Webview Reviewed-by: mbilla, kcr



[~arajkumar] Issue JDK-8208317 is created to address DnD of image to input field.

[~mbilla]. Since the issue you mentioned is present with old release, it should be addressed in a different bug. Could you file a new bug with details? Thanks.

Tested the patch. Tried to drag images to text field in google and could not see the image url in text filed (chrome works fine). I see that above scenario does not work with earlier builds also..

Root cause: It is a regression of JDK-8199474. DataTransfer mode should be set to readonly before calling DataTransfer::types, otherwise it will list empty mime type list while doing DnD. Solution: Move the temporary mode changing code before DataTransfer::types call. Webrev: http://cr.openjdk.java.net/~arajkumar/8208114/webrev