forked from mirrors/gecko-dev
Bug 1914742 [Linux] Don't use gtk_targets_include_uri() to check URI types r=emilio a=RyanVM
This commit is contained in:
parent
6f42e00ea5
commit
739e7a73b7
1 changed files with 5 additions and 1 deletions
|
|
@ -1476,7 +1476,11 @@ void nsDragSession::TargetDataReceived(GtkWidget* aWidget,
|
|||
});
|
||||
|
||||
RefPtr<DragData> dragData;
|
||||
if (gtk_targets_include_uri(&target, 1)) {
|
||||
if (target == sTextUriListTypeAtom || target == sPortalFileAtom ||
|
||||
target == sPortalFileTransferAtom) {
|
||||
// Direct replace gtk_targets_include_uri() with explicit check.
|
||||
// gtk_targets_include_uri() on old Gtk3 systems doesn't support
|
||||
// portal filetypes.
|
||||
if (target == sPortalFileAtom || target == sPortalFileTransferAtom) {
|
||||
const guchar* data = gtk_selection_data_get_data(aSelectionData);
|
||||
if (!data || data[0] == '\0') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue