Bug#582544: epiphany-browser: Copy and Paste does not work from epiphany to gnome-terminal

Timo Juhani Lindfors timo.lindfors at iki.fi
Thu Jun 24 07:29:12 UTC 2010


Hi,

I hit this too, here's some more info:

Steps to reproduce:
1) epiphany-browser file:///usr/share/doc/debian-policy/policy.html/ch-files.html
2) select "Debian Policy Manual"
3) Edit->copy
4) gnome-terminal
5) Edit->paste
6) (in epiphany-browser) right click "Maintainer Scripts" and choose "Copy Link Address"
7) (in gnome-terminal) Edit->paste
8) leafpad
9) type 12345, select it and Edit->copy
10) (in gnome-terminal) Edit->paste

Expected results:
5) The text "Debian Policy Manual" is pasted to gnome-terminal
6) "file:///usr/share/doc/debian-policy/policy.html/ch-binary.html#s-maintscripts" gets pasted to gnome-terminal
10) 12345 is pasted to gnome-terminal

Actual results:
5) nothing visible happens
6) as expected
10) as expected

More info:
1)
gnome-terminal 2.30.2-1
epiphany-browser 2.30.2-2
2) xtrace of gnome-terminal in step 10 shows

000:<:0463: 24: Request(20): GetProperty delete=false(0x00) window=0x02e0009c property=0x1b6("GDK_SELECTION") type=any(0x0) long-offset=0x00000000 long-length=0x1fffffff
000:>:0463:84: Reply to GetProperty: type=0x4("ATOM") bytes-after=0x00000000 data=0x16e,0x16c("TARGETS"),0x16d,0x1a6,0x1d1,0x1d2,0x1ce,0x12e("UTF8_STRING"),0x1c3,0x1cb,0x1f("STRING"),0x1cc,0x1cd;
000:<:0464:  8: Request(17): GetAtomName atom=0x16e(unrecognized atom)
000:>:0464:44: Reply to GetAtomName: name='TIMESTAMP'
000:<:0465:  8: Request(17): GetAtomName atom=0x16d(unrecognized atom)
000:>:0465:40: Reply to GetAtomName: name='MULTIPLE'
000:<:0466:  8: Request(17): GetAtomName atom=0x1a6(unrecognized atom)
000:>:0466:44: Reply to GetAtomName: name='SAVE_TARGETS'
000:<:0467:  8: Request(17): GetAtomName atom=0x1d1(unrecognized atom)
000:>:0467:56: Reply to GetAtomName: name='GTK_TEXT_BUFFER_CONTENTS'
000:<:0468:  8: Request(17): GetAtomName atom=0x1d2(unrecognized atom)
000:>:0468:72: Reply to GetAtomName: name='application/x-gtk-text-buffer-rich-text'
000:<:0469:  8: Request(17): GetAtomName atom=0x1ce(unrecognized atom)
000:>:0469:44: Reply to GetAtomName: name='text/html'
000:<:046a:  8: Request(17): GetAtomName atom=0x1c3(unrecognized atom)
000:>:046a:48: Reply to GetAtomName: name='COMPOUND_TEXT'
000:<:046b:  8: Request(17): GetAtomName atom=0x1cb(unrecognized atom)
000:>:046b:36: Reply to GetAtomName: name='TEXT'
000:<:046c:  8: Request(17): GetAtomName atom=0x1cc(unrecognized atom)
000:>:046c:56: Reply to GetAtomName: name='text/plain;charset=utf-8'
000:<:046d:  8: Request(17): GetAtomName atom=0x1cd(unrecognized atom)
000:>:046d:44: Reply to GetAtomName: name='text/plain'
000:<:046e:  8: Request(23): GetSelectionOwner atom=0x1a0("CLIPBOARD")
000:>:046e:32: Reply to GetSelectionOwner: owner=0x03000267
000:<:046f: 24: Request(24): ConvertSelection requestor=0x02e0009c selection=0x1a0("CLIPBOARD") target=0x12e("UTF8_STRING") property=0x1b6("GDK_SELECTION") time=0x0037e1b8
000:<:0470: 12: Request(19): DeleteProperty window=0x02e0009c property=0x1b6("GDK_SELECTION")
000:>:0470: Event PropertyNotify(28) window=0x02e0009c atom=0x1b6("GDK_SELECTION") time=0x0037e1c4 state=Deleted(0x01)
000:>:0470: Event PropertyNotify(28) window=0x02e0009c atom=0x1b6("GDK_SELECTION") time=0x0037e1c5 state=NewValue(0x00)


3) xtrace of gnome-terminal in step 5 shows

000:<:021e: 24: Request(20): GetProperty delete=false(0x00) window=0x02e00061 property=0x1b6("GDK_SELECTION") type=any(0x0) long-offset=0x00000000 long-length=0x1fffffff
000:>:021e:80: Reply to GetProperty: type=0x4("ATOM") bytes-after=0x00000000 data=0x16e,0x16c("TARGETS"),0x16d,0x12e("UTF8_STRING"),0x1c3,0x1cb,0x1f("STRING"),0x1cc,0x1cd,0x1ce,0x1cf,0x1d0;
000:<:021f:  8: Request(17): GetAtomName atom=0x16e(unrecognized atom)
000:>:021f:44: Reply to GetAtomName: name='TIMESTAMP'
000:<:0220:  8: Request(17): GetAtomName atom=0x16d(unrecognized atom)
000:>:0220:40: Reply to GetAtomName: name='MULTIPLE'
000:<:0221:  8: Request(17): GetAtomName atom=0x1c3(unrecognized atom)
000:>:0221:48: Reply to GetAtomName: name='COMPOUND_TEXT'
000:<:0222:  8: Request(17): GetAtomName atom=0x1cb(unrecognized atom)
000:>:0222:36: Reply to GetAtomName: name='TEXT'
000:<:0223:  8: Request(17): GetAtomName atom=0x1cc(unrecognized atom)
000:>:0223:56: Reply to GetAtomName: name='text/plain;charset=utf-8'
000:<:0224:  8: Request(17): GetAtomName atom=0x1cd(unrecognized atom)
000:>:0224:44: Reply to GetAtomName: name='text/plain'
000:<:0225:  8: Request(17): GetAtomName atom=0x1ce(unrecognized atom)
000:>:0225:44: Reply to GetAtomName: name='text/html'
000:<:0226:  8: Request(17): GetAtomName atom=0x1cf(unrecognized atom)
000:>:0226:48: Reply to GetAtomName: name='text/uri-list'
000:<:0227:  8: Request(17): GetAtomName atom=0x1d0(unrecognized atom)
000:>:0227:48: Reply to GetAtomName: name='_NETSCAPE_URL'
000:<:0228:  8: Request(23): GetSelectionOwner atom=0x1a0("CLIPBOARD")
000:>:0228:32: Reply to GetSelectionOwner: owner=0x036000fa
000:<:0229: 24: Request(24): ConvertSelection requestor=0x02e00061 selection=0x1a0("CLIPBOARD") target=0x1cf(unrecognized atom) property=0x1b6("GDK_SELECTION") time=0x00423356
000:<:022a: 12: Request(19): DeleteProperty window=0x02e00061 property=0x1b6("GDK_SELECTION")
000:>:022a: Event PropertyNotify(28) window=0x02e00061 atom=0x1b6("GDK_SELECTION") time=0x00423365 state=Deleted(0x01)
000:>:022a: Event (generated) SelectionNotify(31) time=0x00423356 requestor=0x02e00061 selection=0x1a0("CLIPBOARD") target=0x1cf(unrecognized atom) property=None(0x0)

Hypothesis: gnome-terminal asks the clipboard contents as
"text/uri-list" but since no URI is involved it fails?

4) on ubuntu 10.04 with gnome-terminal 2.29.6-0ubuntu5 and
epiphany-browser 2.30.2-1ubuntu1.1 the problem does not occur. There xtrace shows

000:<:0479: 24: Request(20): GetProperty delete=false(0x00) window=0x036000a2 property=0x1d7("GDK_SELECTION") type=any(0x0) long-offset=0x00000000 long-length=0x1fffffff
000:>:0479:76: Reply to GetProperty: type=0x4("ATOM") bytes-after=0x00000000 data=0x19a,0x198("TARGETS"),0x199,0x10d("UTF8_STRING"),0x1f6,0x1f9,0x1f("STRING"),0x284,0x269,0x1eb,0x1e9;
000:<:047a:  8: Request(17): GetAtomName atom=0x19a(unrecognized atom)
000:>:047a:44: Reply to GetAtomName: name='TIMESTAMP'
000:<:047b:  8: Request(17): GetAtomName atom=0x199(unrecognized atom)
000:>:047b:40: Reply to GetAtomName: name='MULTIPLE'
000:<:047c:  8: Request(17): GetAtomName atom=0x1f6(unrecognized atom)
000:>:047c:48: Reply to GetAtomName: name='COMPOUND_TEXT'
000:<:047d:  8: Request(17): GetAtomName atom=0x1f9(unrecognized atom)
000:>:047d:36: Reply to GetAtomName: name='TEXT'
000:<:047e:  8: Request(17): GetAtomName atom=0x284(unrecognized atom)
000:>:047e:56: Reply to GetAtomName: name='text/plain;charset=utf-8'
000:<:047f:  8: Request(17): GetAtomName atom=0x269(unrecognized atom)
000:>:047f:64: Reply to GetAtomName: name='text/plain;charset=ISO-8859-1'
000:<:0480:  8: Request(17): GetAtomName atom=0x1eb(unrecognized atom)
000:>:0480:44: Reply to GetAtomName: name='text/plain'
000:<:0481:  8: Request(17): GetAtomName atom=0x1e9(unrecognized atom)
000:>:0481:44: Reply to GetAtomName: name='text/html'
000:<:0482:  8: Request(23): GetSelectionOwner atom=0x1b5("CLIPBOARD")
000:>:0482:32: Reply to GetSelectionOwner: owner=0x03400114
000:<:0483: 24: Request(24): ConvertSelection requestor=0x036000a2 selection=0x1b5("CLIPBOARD") target=0x10d("UTF8_STRING") property=0x1d7("GDK_SELECTION") time=0x3c0ecfa3
000:<:0484: 12: Request(19): DeleteProperty window=0x036000a2 property=0x1d7("GDK_SELECTION")
000:>:0484: Event PropertyNotify(28) window=0x036000a2 atom=0x1d7("GDK_SELECTION") time=0x3c0ecfa9 state=Deleted(0x01)
000:>:0484: Event PropertyNotify(28) window=0x036000a2 atom=0x1d7("GDK_SELECTION") time=0x3c0ecfa9 state=NewValue(0x00)

Note that "text/uri-list" is not offered.

5) I built epiphany-browser 2.30.2-1ubuntu1 source package on
debian. The problem still persists.

6)
strace -o s -s4096 -f epiphany-browser
grep open\( s|grep -v ENOENT|cut -d'"' -f2|sort|uniq|grep -v /dev/|xargs grep uri-list

shows that the "uri-list" string comes from
/usr/lib/libgtk-x11-2.0.so.0. If I replace that string the problem
disappears:

cp /usr/lib/libgtk-x11-2.0.so.0 .
sed -i 's/uri-list/uRi-list/' libgtk-x11-2.0.so.0
LD_LIBRARY_PATH=. epiphany-browser

best regards,
Timo Lindfors






More information about the pkg-gnome-maintainers mailing list