copy image not working correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
In Progress
|
Medium
|
Bill Filler | ||
Oxide |
Fix Released
|
Medium
|
Olivier Tilloy | ||
webbrowser-app (Ubuntu) |
Fix Released
|
Medium
|
Olivier Tilloy |
Bug Description
I don't believe the "copy image" function is working correctly. It just copies the url of the image with text/plain content type. This give the client of the pasteboard no indication that it's an image.
I would have expected one of the following, not sure which is correct (we should look how desktop/other platforms do it)
1) copy the actual image to the pasteboard and specify correct content type (i.e. image/jpeg, etc). I believe this is the preferred method.
2) copy the url of the image but set the content-type (i.e. image/jpeg) that it's an image so it can be easily decoded by the paste side
Steps to reproduce:
- launch browser, go to a site with an image
- long press, select "copy image" from popup menu
- open Notes, or Messaging-App
- create a new Note or Message
- long press in the text area and select "Paste" from the popup
Expected results:
- the image is pasted into the field
Actual results:
- the url of the image is pasted into the field as text
Related branches
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Olivier Tilloy: Needs Fixing
-
Diff: 156 lines (+32/-14)6 files modifieddebian/control (+2/-2)
src/app/webbrowser/Browser.qml (+1/-1)
src/app/webbrowser/ContextMenuMobile.qml (+10/-2)
src/app/webbrowser/TabComponent.qml (+4/-3)
src/app/webcontainer/ContextMenuMobile.qml (+10/-2)
src/app/webcontainer/WebappWebview.qml (+5/-4)
Changed in canonical-devices-system-image: | |
assignee: | nobody → Bill Filler (bfiller) |
milestone: | none → backlog |
Changed in webbrowser-app (Ubuntu): | |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in canonical-devices-system-image: | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in oxide: | |
assignee: | nobody → Olivier Tilloy (osomon) |
milestone: | none → branch-1.17 |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in oxide: | |
status: | In Progress → Fix Released |
Oxide needs an additional API to allow copying an image to the clipboard. I have implemented that in https:/ /code.launchpad .net/~osomon/ oxide/+ git/oxide/ +merge/ 295690.