Commit 565580b
committed
[Win32] Spin event loop in Edge instead of only processing OS messages
Before recent improvements of the Edge implementation, capabilities of
to deal with asynchronous disposals of the browser were missing, leading
to unhandled errors inside the WebView initialization. They have been
worked around by not processing all kinds of asynchronously scheduled
events (like a disposal) but only those being processes by the OS event
queue. This was still necessary to process the OS callbacks for WebView
initialization and other operations.
In some cases, this may lead to an Edge browser instance blocking the UI
thread, as some asynchronously scheduled tasks need to be processed but
are not. In addition, enhancements of the Edge implementation made it
capable of processing asynchronous browser display disposals.
This change simplifies the event processing inside Edge to not just
process the next OS message but to just ordinarily spin the event loop.1 parent 56767ec commit 565580b
File tree
2 files changed
+24
-33
lines changed- bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser
- tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit
2 files changed
+24
-33
lines changedLines changed: 15 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
| 314 | + | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
| 453 | + | |
466 | 454 | | |
467 | | - | |
468 | | - | |
| 455 | + | |
469 | 456 | | |
470 | 457 | | |
471 | | - | |
472 | 458 | | |
473 | 459 | | |
474 | 460 | | |
| |||
587 | 573 | | |
588 | 574 | | |
589 | 575 | | |
590 | | - | |
591 | | - | |
| 576 | + | |
| 577 | + | |
592 | 578 | | |
593 | 579 | | |
594 | 580 | | |
| |||
597 | 583 | | |
598 | 584 | | |
599 | 585 | | |
600 | | - | |
| 586 | + | |
601 | 587 | | |
602 | 588 | | |
603 | 589 | | |
604 | | - | |
605 | | - | |
606 | | - | |
| 590 | + | |
| 591 | + | |
607 | 592 | | |
608 | 593 | | |
609 | 594 | | |
610 | 595 | | |
611 | 596 | | |
612 | 597 | | |
613 | 598 | | |
614 | | - | |
| 599 | + | |
615 | 600 | | |
616 | 601 | | |
617 | 602 | | |
618 | | - | |
| 603 | + | |
619 | 604 | | |
620 | 605 | | |
621 | | - | |
| 606 | + | |
622 | 607 | | |
623 | 608 | | |
624 | 609 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
306 | 310 | | |
307 | 311 | | |
308 | 312 | | |
309 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
310 | 316 | | |
311 | 317 | | |
312 | 318 | | |
| |||
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
337 | | - | |
| 343 | + | |
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
| |||
0 commit comments