Closed Bug 564688 Opened 14 years ago Closed 5 years ago
ITransferable::Get Transfer Data returns error for text/unicode flavor that exists but is empty
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?
Bug 1493292 is going to fix this, because we won't care about the length anymore when returning data.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.