Bug 252768 - [Browser] The SWT app don't close when a browser with VML had been opened
Summary: [Browser] The SWT app don't close when a browser with VML had been opened
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2008-10-30 11:23 EDT by Daniel Salas CLA
Modified: 2013-06-27 12:16 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Salas CLA 2008-10-30 11:23:55 EDT
If in a SWT app you have a swt broswer with a VML render inside the browser, when you try to close the app this dosn't close correctly, the shell disapair but the process in shelf keep open.

A exampel of this problem witp a simple example:

 
try {
	Display display = Display.getDefault();
	Browseer shell = new Browseer(display, SWT.SHELL_TRIM);
	shell.open();
	shell.setLayout(new FillLayout());
			
	Browser browser = new Browser(shell, SWT.NONE);
			
	browser.setUrl("http://openlayers.org/dev/examples/gml-layer.html");
	shell.layout();
	while (!shell.isDisposed()) {
	     if (!display.readAndDispatch())
		display.sleep();
			}
} catch (Exception e) {
	e.printStackTrace();
}


This problen hapened with the 3.4 ant 3.5 version however look like that the version 3346 do not have this bug.

We try to substitute the classes from org.eclipse.swt.browser from the 3346 to the newest version of swt libraris and it looks that solve the problem so i thing that the problem should be in some of the change made since then in this class.

I apologize for my English, and I hope that someone could help me with this problem.
Comment 1 Mike Wilson CLA 2009-05-05 12:02:46 EDT
Changing Version tag to something more believable.
Comment 2 Grant Gayed CLA 2010-05-27 12:10:43 EDT
I'm not able to reproduce this with 3.5.x or the latest 3.6 content, I tried with the provided openlayers.org url and with http://www.gersolutions.com/vml/Default.aspx .

Do you still see this problem with a recent eclipse build such as http://download.eclipse.org/eclipse/downloads/drops/S-3.6RC2-201005201744/index.php ?  And if so, with which url?
Comment 3 Grant Gayed CLA 2013-06-27 12:16:26 EDT
Tried this again with the recent 4.3 release and the process still terminates fine for me, so it's impossible to investigate this further (or perhaps it has been fixed as a side effect of changes in SWT or IE).

If the Eclipse/SWT 4.3 release still shows this problem for you, and you can identify something on your machine that could be causing it (eg.- an IE plug-in, an OS setting, etc.) then please follow up here.  In the meantime, closing report.