Commit 4abd776
committed
Move WWAHost process creation into dispatcher
When the WWAHost.exe and Win32WebViewProcess.exe are created, they need to read information such as the networking permissions and enterprise ID. However, when those items are data bound they are done on the dispatcher thread (priority 8); however, the process is initialized prior to flushing the dispatcher queue. This then did not read the proper values during initialization (as they had not yet been changed by the dispatcher queue), even though they were set once the dispatcher had popped our frame to create the view.
This change moves the process creation code from outside the dispatcher frame into the same location as the remainder of the initialization code. This will permit any mutations to properties through the dispatcher, such as data binding, prior to initialization.1 parent 402677a commit 4abd776
File tree
1 file changed
+18
-18
lines changed- Microsoft.Toolkit.Win32/Microsoft.Toolkit.Win32.UI.Controls/WPF/WebView
1 file changed
+18
-18
lines changedLines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | 726 | | |
745 | 727 | | |
746 | 728 | | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| |||
0 commit comments