nsDragService::GetTargetDragData() unnecessarily requests selections in unsupported data types

NEW
Unassigned

Status

()

Core
Widget: Gtk
9 years ago
9 years ago

People

(Reporter: karlt, Unassigned)

Tracking

(Depends on: 1 bug, {perf})

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
The list of supported data types is available through the GdkDragContext, but
this list is not checked before requesting that the source application convert
the selection to the (often unsupported) type.

One common case this hits is reading numDropItems from an nsIDragSession, as
is done when constructing an nsDOMDataTransfer.  (The data is requested in
text/uri-list form, whether or not this is available.)

Attachment 271701 [details] [diff] for bug 179658 addresses this (but apparently it has issues that need to be resolved).
(Reporter)

Updated

9 years ago
Keywords: perf
You need to log in before you can comment on or make changes to this bug.