Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368962 - SWT Browser: duplicated keyboard events got when surfing within a frame (in a frameset)
Summary: SWT Browser: duplicated keyboard events got when surfing within a frame (in a...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 08:52 EST by Missing name Mising name CLA
Modified: 2019-11-14 03:50 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name Mising name CLA 2012-01-18 08:52:26 EST
Build Identifier: SWT 3.7.1

Using the SWT browser component in a java application, Internet Explorer is the embedded browser.
- if you add a listener on keyboard events and if you navigate on a web page within a frameset object, the more you navigate, the more you will receive the same duplicated keyboard event each time you press a key.

For example, you get first one "key pressed" event then the "key released event" (ok, that's what you expected). Then, you click on a link and another page loads in the same window. You press the keyboard again but instead of two events, you get four! And this increase if you continue surfing.

This is not a programming bug of the testing application: the listener object has been created and added only one time on one browser object!

Note: The bug does not happen if the surfing pages are not in a frameset.

Reproducible: Always

Steps to Reproduce:
1. Create an application with a SWT browser object (from given samples).
2. Add a keyboard listener on the browser object and display the events received (keypressed and keyreleased)
3. Open a page containing a frameset:
<FRAMESET>
	<FRAME src="a_page.html"/>
</FRAMESET>
4. Using the links on the "a_page" page, change to another page and so on (the link open in the same window). Pages can be static files on your desktop.
5. Press a key then watch the debugger trace console.

If can be reproduced with SWT 1.6.2 and SWT 1.7.0 also.
Comment 1 Lars Vogel CLA 2019-11-14 03:50:33 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.