Closed
Bug 564688
Opened 15 years ago
Closed 7 years ago
nsITransferable::GetTransferData returns error for text/unicode flavor that exists but is empty
Categories
(Core :: DOM: Serializers, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1493292
People
(Reporter: MatsPalmgren_bugz, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
3.46 KB,
patch
|
Details | Diff | Splinter Review |
nsITransferable::GetTransferData returns error for text/unicode flavor that exists but is empty.
Fwiw, I discovered this while writing tests for bug 39098.
It doesn't seem like the appropriate behavior.
STEPS TO REPRODUCE
1. apply the attached patch (contains test_NNNN.html mochitest)
2. make content/base/test/
3. run mochitest --test=content/base/test/test_NNNN.html
ACTUAL RESULTS
An exception.
EXPECTED RESULTS
Since clipboard.hasDataMatchingFlavors(["text/unicode"]...) is true
it seems it should be possible to retrieve the data for that flavor
through a "text/unicode" nsITransferable without getting exceptions.
The result should be an empty string object or null?
Comment 1•7 years ago
|
||
Bug 1493292 is going to fix this, because we won't care about the length anymore when returning data.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•