issue452: Clipboard selection reads twice

Priority: bug Status: resolved
Messages
msg1147 (view) Author: daimrod Date: 2013-09-02.15:06:16
* Expected behavior

In a terminal
$ echo pwet | xclip -i -selection clipboard
# This command fills the clipboard selection with "pwet"
Start conkeror, you can paste the clipboard selection with C-y, it works fine.

* The Bug
$ echo pwet | xclip -i -selection clipboard -l 1 -verbose

# This command fills the clipboard selection with "pwet" and waits until
# it is yanked. Once the clipboard selection has been read, it is cleared.

Start conkeror, if you try to paste the clipboard selection with C-y, it triggers xclip (xclip ends) but
the content isn't pasted.

The problem is that Conkeror reads the clipboard selection twice, this can be tested by using the
following command:
$ echo pwet | xclip -i -selection clipboard -l 2 -verbose
# The -l X option is used to control how many times the clipboard selection
# can be read before it is cleared and xclip ended.

When invoked like this, as expected, the content is correctly yanked with C-y.
msg1148 (view) Author: retroj Date: 2013-09-02.15:19:28
For this kind problem, the best course is probably to create a minimal
test-case xulrunner application, that isolates the problem.  If it's a
problem in Conkeror, then hopefully we can deal with it; or if it's a
problem in Mozilla (which I suspect is the case), it can be directed to
their bug tracker with the test case.
msg1308 (view) Author: escondida Date: 2016-05-15.00:27:01
This appears to have been resolved upstream by Mozilla.
History
Date User Action Args
2016-05-15 00:27:22escondidasetstatus: chatting -> resolved
2016-05-15 00:27:01escondidasetmessages: + msg1308
2013-09-02 15:19:28retrojsetstatus: unread -> chatting
messages: + msg1148
2013-09-02 15:06:17daimrodcreate