Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360533

Summary: Webkit-based Browser doubles characters entered into text fields
Product: [Eclipse Project] Platform Reporter: Thorsten Vitt <thorsten.vitt>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, jasonho0504, mayank_4042, pwebster
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Thorsten Vitt CLA 2011-10-11 07:25:27 EDT
Build Identifier: M20110909-1335

When entering text into input fields of a web form in the the webkit based Browser control, pressing a key causes the corresponding character to appear twice in the input field. This happens as well in Eclipse's internal browser view as in a custom RCP application.

The problem does not occur in password fields, and it does not occur with browsers instantiated with the SWT.MOZILLA style.

The problem seems to be specific for Linux, I observed it on Ubuntu 10.10 installations.

Reproducible: Always

Steps to Reproduce:
1. Open the internal browser view in Eclipse 
2. Go to a web page with input fields, e.g., https://bugs.eclipse.org/bugs/
3. Enter abc into a text field, it will appear as aabbcc
Comment 1 Thorsten Vitt CLA 2011-10-11 07:28:17 EDT
Library versions involved:

    libwebkit-1.0-2 version 1.2.7-1~mmwkt1
    libgtkhtml2-0 version 2.11.1-2ubuntu3
Comment 2 Grant Gayed CLA 2011-10-13 11:08:51 EDT
I don't see this problem, and no one else has reported it, so it seems to be something particular to your setup.

Are you running with the download of just plain eclipse 3.7.1 (no additional apps installed)?  Is there any unusual setup on your machine (eg.- accessibility turned on, etc.)?
Comment 3 Grant Gayed CLA 2012-02-23 16:30:00 EST
*** Bug 372261 has been marked as a duplicate of this bug. ***
Comment 4 Mayank Singh CLA 2013-07-03 03:13:54 EDT
Grant Gayed,

I agree with Thorsten Vitt.

This issue is analogous to the issue that I am facing too.
Brief Intro :-
When we use eclipse embedded internal browser and open any html page(having link for PDF file)and then you try to directly “open”(not save) the PDF file and then try to navigate from PDF(by clicking the link for html page from PDF file) to any html page(which is having input text box) causes characters be displayed twice on a single keypress inside the input text box.
i.e 'a' is printed as 'aa' on a single key press.
I am using SWT 4.1.

Is this BUG has been addressed or still in discussion? Is there some work around for this issue available?

Thanks,
Mayank
Comment 5 Mayank Singh CLA 2013-07-03 07:30:36 EDT
Just to debug it more, I have added a keyListener to the browser object and noticed that method "public void keyPressed(KeyEvent e)" gets called two times and method "public void keyReleased(KeyEvent e)" is called up one time. 

Thought that might help.
Comment 6 Mayank Singh CLA 2013-07-08 03:39:29 EDT
Grant Gayed,
Are we going have any update on this issue in the coming future release?
Or is it still a topic of further discussion?
Comment 7 Leo Ufimtsev CLA 2018-04-10 15:27:19 EDT
Issue no longer reproduces in webkit2. Please open if issue perists for you.