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 :  
Description
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,
Comments
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
27-07-2018

+1
26-07-2018

+1
26-07-2018

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

[~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.
26-07-2018

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..
24-07-2018

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
24-07-2018