After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566450 - Paste from Firefox doesn't work properly
Paste from Firefox doesn't work properly
Status: RESOLVED DUPLICATE of bug 492794
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.15.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-01-03 22:14 UTC by Jean-Philippe Fleury
Modified: 2009-01-12 17:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
The file before I paste some text from Firefox (59.26 KB, image/png)
2009-01-03 22:17 UTC, Jean-Philippe Fleury
Details
The file after I pasted some paragraphs copied from a web page (60.29 KB, image/png)
2009-01-03 22:20 UTC, Jean-Philippe Fleury
Details
The view if I move the scrollbar to the bottom of the file (54.12 KB, image/png)
2009-01-03 22:34 UTC, Jean-Philippe Fleury
Details

Description Jean-Philippe Fleury 2009-01-03 22:14:51 UTC
Please describe the problem:
If I copy some text from Firefox and I paste it in gedit, the cursor isn't moved to the end of the file and I don't see the pasted text.

Steps to reproduce:
1. In gedit, open a new file and write enough text to make the right scrollbar appear.
2. Copy some text in a web page from Firefox, for example http://live.gnome.org/Gedit
3. In gedit, put the cursor to the end of the file (say it's the line 7) and paste the previous copied paragraphs.

Actual results:
The cursor stays to the line 7 and the scrollbar doesn't move, so we don't see the pasted paragraphs.

Expected results:
The cursor should move to the end of the file and we should see the pasted paragraphs, as it's done for example when I copy/paste from a gedit text file.

Does this happen every time?
Yes.

Other information:
Comment 1 Jean-Philippe Fleury 2009-01-03 22:17:51 UTC
Created attachment 125709 [details]
The file before I paste some text from Firefox

Screenshot 1 of 3:

The situation before pasting text.
Comment 2 Jean-Philippe Fleury 2009-01-03 22:20:37 UTC
Created attachment 125710 [details]
The file after I pasted some paragraphs copied from a web page

Screenshot 2 of 3:

I put the cursor to the line 7 and I pasted some paragraphs copied from http://live.gnome.org/Gedit

We see that the cursor is still to the line 7 and we don't see the pasted text (the scrollbar didn't move).
Comment 3 Jean-Philippe Fleury 2009-01-03 22:34:19 UTC
Created attachment 125712 [details]
The view if I move the scrollbar to the bottom of the file

Screenshot 3 of 3:

If I move the scrollbar to the bottom of the file, I see the pasted text, but I see also a part of the gray highlighting of the previous "current line" (line 7) in addition to the whole gray highlighting of the current "current line" (line 15).
Comment 4 Jean-Philippe Fleury 2009-01-03 22:36:19 UTC
(In reply to comment #2)
> Created an attachment (id=125710) [edit]
> The file after I pasted some paragraphs copied from a web page
> 
> Screenshot 2 of 3:
> 
> I put the cursor to the line 7 and I pasted some paragraphs copied from
> http://live.gnome.org/Gedit
> 
> We see that the cursor is still to the line 7

I realize that the cursor correctly moves to the end of the file but the scrollbar doesn't.
Comment 5 Paolo Borelli 2009-01-10 17:35:57 UTC
I confirm this... very strange.

I also reproduced it it gtk-demo so it is a gtktextview bug.
Comment 6 Paolo Borelli 2009-01-12 17:09:23 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 492794 ***