Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327786 - [Browser] navigations to local anchors in IE fail after setText()
Summary: [Browser] navigations to local anchors in IE fail after setText()
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 10:43 EDT by Grant Gayed CLA
Modified: 2010-11-29 10:41 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.