| Summary: | EXC_BREAKPOINT exception while using Browser widget (Carbon) | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | ArronM <arronm> |
| Component: | SWT | Assignee: | Grant Gayed <grant_gayed> |
| Status: | RESOLVED WONTFIX | QA Contact: | Silenio Quarti <Silenio_Quarti> |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse.felipe, grant_gayed, skovatch |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
ArronM
Found a URL that consistently crashes. Here's a snippet:
Users also reported this only started to happen after they updated Safari. I can reproduce on Version 4.1 (4533.16)
public static void main(String[] args) {
Display display = new Display();
final Shell shell = new Shell(display, SWT.SHELL_TRIM);
shell.setLayout(new FillLayout());
Browser browser = new Browser(shell, SWT.NONE);
browser.setUrl("http://btjunkie.org/?do=help");
shell.open();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ())
display.sleep ();
}
display.dispose ();
}
Browser bugs to Grant, but it is Carbon. I can't reproduce this on 10.6.4 and Safari 5, FWIW. Found a potential fix in Safari.java::handleEvent (Webkit.java in 3.7, I believe). changing the line
if (typeString.equals(DOMEVENT_FOCUSIN)) {
to
if (typeString.equals(DOMEVENT_FOCUSIN) || typeString.equals("focusin")) {
and similarly for DOMEVENT_FOCUSOUT/"focusout" prevents the crash. No idea if I'm breaking anything :)
Closing as Carbon is not a supported platform. |