Bug 1181467 - Fix mime type checking while copying image. r=Enn

Handle kNativeImageMime case as other image types in RecvSetClipboard.
This commit is contained in:
Boris Chiou 2015-07-08 01:06:00 -04:00
parent 0f3af42991
commit 3bf51ee032

View File

@ -2620,7 +2620,8 @@ ContentParent::RecvSetClipboard(const IPCDataTransfer& aDataTransfer,
NS_ENSURE_SUCCESS(rv, true); NS_ENSURE_SUCCESS(rv, true);
} else if (item.data().type() == IPCDataTransferData::TnsCString) { } else if (item.data().type() == IPCDataTransferData::TnsCString) {
if (item.flavor().EqualsLiteral(kJPEGImageMime) || if (item.flavor().EqualsLiteral(kNativeImageMime) ||
item.flavor().EqualsLiteral(kJPEGImageMime) ||
item.flavor().EqualsLiteral(kJPGImageMime) || item.flavor().EqualsLiteral(kJPGImageMime) ||
item.flavor().EqualsLiteral(kPNGImageMime) || item.flavor().EqualsLiteral(kPNGImageMime) ||
item.flavor().EqualsLiteral(kGIFImageMime)) { item.flavor().EqualsLiteral(kGIFImageMime)) {