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
{{ message }}
Repository navigation
Core - LoadUrlAsync require url and remove SyncContext param #3842
Currently it's possible to call await browser.LoadUrlAsync() without passing in a Url.
If you do this and the browser isn't loading then the method will just wait forever.
To provide a predictable behaviour the string url = null will be changed to string url and an ArgumentNullException thrown when string.IsNullOrEmpty(url).
Remove default null value for url param.
Remove SyncronisationContext param
upon remove it doesn't make sense
WaitForBrowserInitialLoadAsync has been added, still needs some additional testing.
The intention of this method is to wait for the browser to finish it's initial load though it's not strictly checking for anything that prevents it from being called later.
I might consider renaming to WaitForBrowserLoadAsync before the 95 branch is created.
Activity
WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync
amaitland commentedon Oct 10, 2021
WaitForBrowserInitialLoadAsynchas been added, still needs some additional testing.The intention of this method is to wait for the browser to finish it's initial load though it's not strictly checking for anything that prevents it from being called later.
I might consider renaming to
WaitForBrowserLoadAsyncbefore the95branch is created.Squashed commit of the following:
amaitland commentedon Oct 22, 2021
Was reverted as some of the tests failed.
[-]Core - LoadUrlAsync require url[/-][+]Core - LoadUrlAsync require url and remove SyncContext param[/+]WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync
Core - Rename WaitForBrowserInitialLoadAsync to WaitForInitialLoadAsy…
Core - LoadUrlAsync require url and remove SyncContext param
amaitland commentedon Oct 28, 2021
For anyone using
LoadUrlAsync()without params then you can switch to usingWaitForInitialLoadAsyncfor the initial page load.WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync
Core - Rename WaitForBrowserInitialLoadAsync to WaitForInitialLoadAsy…
Core - LoadUrlAsync require url and remove SyncContext param