ID 340282 - Nuke 11 no longer returns drop events from a web browser URL bar

Follow

Problem summary
Nuke 11 no longer returns drop events from a web browser URL bar.

Customer reported version
nuke.11.1v2

Customer reported platform
n_a_mac

Steps to reproduce

1) Open Nuke's Script Editor

2) Run the following command:
 
def drop_test(mime_type, text):  print 'mime type:', mime_type  print 'text:', text  return Truenukescripts.addDropDataCallback(drop_test)
3) Drag and drop a URL from a web browser in the Nuke nodegraph (DAG)

4) No #Result is returned

Note: I've found that dragging the URL from elsewhere in the webpage, i.e. not from the URL bar itself seems to work correctly on Firefox and Chrome. Safari seems to work as expected on OSX.

Workaround
If possible, pasting the URL into another section of the webpage such as a text editor allows this to be recognised by Nuke.

The following script can be used to create a button that will accept any drops and can then be dragged again with all the same data except for the url-list:

from PySide2 import QtWidgets, QtGui, QtCore


class MyButton(QtWidgets.QPushButton):

def __init__(self):

super(MyButton, self).__init__()

self.setAcceptDrops(True)

self.setText("Drag/Drop here")

self.mime_dict = {u'text/plain': 'Nothing'}


def dragEnterEvent(self, e):

e.accept()


def dropEvent(self, e):

mime_dict = {}

for format in e.mimeData().formats():

mime_dict[format] = e.mimeData().data(format)

self.mime_dict = mime_dict

print e.mimeData().formats()


def mouseMoveEvent(self, e):

mimeData = QtCore.QMimeData()

for format, value in self.mime_dict.iteritems():

if format not in [u'text/uri-list']:

mimeData.setData(format, value)

drag = QtGui.QDrag(self)

drag.setMimeData(mimeData)

dropAction = drag.start(QtCore.Qt.MoveAction)


butt = MyButton()

butt.show()



Reproduced by support
11.1v2 - Windows 7, CentOS7, OSX 10.12.6
11.1v1
11.0v4
11.0v1 - Windows 7, CentOS7, OSX 10.12.6

Earliest version tested
10.5v7 - Last working version

Expected behaviour
Nuke should return a result acknowledging that the Drop data event was triggered in the Script Editor.

Actual behaviour
In Nuke 11, no results were returned and the event was not triggered.
 

    We're sorry to hear that

    Please tell us why