Community
Participate
Working Groups
This is a problem I often come along when disposing the Browser. In some situations it looks as if browser-events like WindowEvents are sent out, even though the Browser is in the process of being disposed. A common stacktrace of this situation looks like: [snip] at org.eclipse.swt.browser.Browser$2.handleEvent(Browser.java:350) at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55) at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:144) at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:119) at org.eclipse.swt.ole.win32.OleEventSink.access$1(OleEventSink.java:96) at org.eclipse.swt.ole.win32.OleEventSink$1.method6(OleEventSink.java:70) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.win32.OS.VtblCall(Native Method) at org.eclipse.swt.internal.ole.win32.IOleInPlaceObject.InPlaceDeactivate(IOleInPlaceObject.java:21) at org.eclipse.swt.ole.win32.OleClientSite.deactivateInPlaceClient(OleClientSite.java:524) at org.eclipse.swt.ole.win32.OleClientSite.onDispose(OleClientSite.java:825) at org.eclipse.swt.ole.win32.OleClientSite.access$1(OleClientSite.java:821) at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:125) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:884) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:908) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:889) at org.eclipse.swt.widgets.Widget.release(Widget.java:710) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:614) [snip] Is this by intention? Ben
Created attachment 32145 [details] Complete stacktrace The Complete stacktrace
I am just remembering that there seems to be a JavaScript event-trigger that requests to open a new page when the Browser is closing. This may result in an application using a Browser shutting down, but bringing up a new Browser meanwhile. Ben
fixed in HEAD > 0329 I'm not sure if this will be in 3.2M6 or not, so leaving Target Milestone unset for now. - null check added - related report: bug 121892
Thanks! Looks like a pretty straightforward change. Would be nice if it was included in M6. Ben
Since we're submitting a few other M6 changes, this one has joined in.
Great!