| Summary: | [Browser] navigations to local anchors in IE fail after setText() | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Grant Gayed <grant_gayed> |
| Component: | SWT | Assignee: | 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: | |||
Just a loopback to the original discussion http://www.eclipse.org/forums/index.php?t=rview&goto=632884 Works fine with IE8 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. |
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(); }