Cannot copy image from the browser into other applications on my MacOS and Ubuntu(gtk) based on current nightly build. (I think windows also has this problem.) Reason: We set kNativeImageMime type whiling copying image on the browser (https://dxr.mozilla.org/mozilla-central/source/dom/base/nsCopySupport.cpp#452) , but ContentParent::RecvSetClipboard() didn't handle this case correctly, so nsClipboard::SetData() cannot get the imgIContainer successfully on gtk/cocoa/qt...
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Depends on: 1169268
Component: DOM: Core & HTML → DOM
Summary: Fix mime type checking whiling copying image → Fix mime type checking while copying image
Created attachment 8630908 [details] [diff] [review] Fix mime type checking while copying image Handle kNativeImageMime case as other image types in RecvSetClipboard.
Attachment #8630908 - Flags: review?(enndeakin)
Summary: Fix mime type checking while copying image → Can not copy/paste images onto other applications.
Summary: Can not copy/paste images onto other applications. → Can not copy/paste images to other applications.
Note: Most platforms treat the transferable data of kNativeImageMime as imgIContainer. 1. cocoa: https://dxr.mozilla.org/mozilla-central/source/widget/cocoa/nsClipboard.mm#448 2. gtk: https://dxr.mozilla.org/mozilla-central/source/widget/gtk/nsClipboard.cpp#177 3. windows: https://dxr.mozilla.org/mozilla-central/source/widget/windows/nsClipboard.cpp#210 4. qt: https://dxr.mozilla.org/mozilla-central/source/widget/qt/nsClipboard.cpp#155 KNativeImageMime is moz internal type, so it is easy to be neglected :)
Summary: Can not copy/paste images to other applications. → Can not copy/paste images to other applications
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
status-firefox42: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.