Fixing bug 279945. Prevent drag n' drop of images whose extensions don't map to image mimetypes. r=caillon@gmail.com, sr=dveditz@cruzio.com
git-svn-id: svn://10.0.0.236/trunk@168753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1108,8 +1108,9 @@ nsTransferableFactory::Produce(nsITransferable** outTrans)
|
||||
// pass out the image source string
|
||||
mImageSourceString = mUrlString;
|
||||
|
||||
// also grab the image data
|
||||
mImage = nsContentUtils::GetImageFromContent(image);
|
||||
// also grab the image data, assuming the image extension in
|
||||
// the image URI maps to a known image mimetype.
|
||||
mImage = nsContentUtils::GetImageFromContent(image, PR_TRUE);
|
||||
|
||||
if (parentLink)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user