Bug 21230 - QWebPage::CopyLinkToClipboard action doesn't copy url to QClipboard::Selection
Summary: QWebPage::CopyLinkToClipboard action doesn't copy url to QClipboard::Selection
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-29 21:51 PDT by Benjamin Meyer
Modified: 2009-03-02 08:55 PST (History)
3 users (show)

See Also:


Attachments
patch to fix the bug (1.99 KB, patch)
2009-02-28 19:37 PST, Benjamin Meyer
staikos: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Meyer 2008-09-29 21:51:14 PDT
What steps will reproduce the problem?
0. Using Arora or the demo browser
1. Find yourself a link, right click on it and select Copy Link Location
2. Try to paste it with middle click in e.g. xterm

What is the expected output? What do you see instead?
Expected output: link pasted in xterm.
Instead: previous selection is pasted.

What version of the product are you using? On what operating system?
Arora 0.4 (Change: 342 48995a0) on ArchLinux

Please provide any additional information below.
I guess this happens because link is only being copied to QClipboard::Clipboard.  You can still paste the link with Ctrl+V.  See http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt

QWebView::pageAction(QWebPage::CopyLinkToClipboard)->trigger(); is the action that is being called.  Testing with FireFox and Konq they both copy it to QClipboard::Selection
Comment 1 Benjamin Meyer 2009-02-28 19:37:42 PST
Created attachment 28129 [details]
patch to fix the bug
Comment 2 Adam Treat 2009-03-02 08:55:51 PST
Landed with r41360.