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

Bug 327786

Summary: [Browser] navigations to local anchors in IE fail after setText()
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: nirmalts
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Grant Gayed CLA 2010-10-14 10:43:11 EDT
snippet:

public static void main(String [] args) {
	Display display = new Display();
	final Shell shell = new Shell(display);
	shell.setBounds(10,10,200,200);
	shell.setLayout(new FillLayout());
	Browser browser = new Browser(shell, SWT.NONE);
	shell.open();
	try {
		FileInputStream inStream = new FileInputStream(FILENAME);
		byte[] bytes = new byte[inStream.available()];
		inStream.read(bytes);
		browser.setText(new String(bytes));
	} catch (Exception e) {
		e.printStackTrace();
	}
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch()) display.sleep();
	}
	display.dispose();
}
Comment 1 Nirmal Sasidharan CLA 2010-10-15 09:07:35 EDT
Just a loopback to the original discussion 
http://www.eclipse.org/forums/index.php?t=rview&goto=632884
Comment 2 Nirmal Sasidharan CLA 2010-11-24 05:11:35 EST
Works fine with IE8
Comment 3 Grant Gayed CLA 2010-11-29 10:41:49 EST
Thanks for pointing this out, I also see this work in IE8.  I was sure this was already working on IE, now I see why.  If I remember correctly this also works on IE7.

We haven't been attempting to work around IE6 bugs for a while.  Since this works in later IE versions this report is being closed as NOT_ECLIPSE.