You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix "no more handles" exception during Edge browser creation #339
The Edge browser creation uses Display.readAndDispath() to process the
OS events for browser instantiation. When there are other asynchronous
executions scheduled while the browser is being initialized, they may be
processed in between the processing of browser-instantiating OS events
if too much time elapses between them. In case such an asynchronous
execution changes a state that makes the browser instantiation fail,
such as disposing the composite parent of the browser, an exception
occurs.
In order to avoid the processing of asynchronous executions during
browser instantiation, the change ensures that readAndDisplay() is only
called when an OS event is present to be processed.
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_Browser.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,17 @@ public void test_ConstructorLorg_eclipse_swt_widgets_CompositeI() {
268
268
browser = createBrowser(null, SWT.NONE); // Should throw.
269
269
}
270
270
271
+
/**
272
+
* Regression test for issue #339: [Edge] No more handle exceptions from Edge browser
0 commit comments