If you call SetCookieAsync right after the control is constructed the cookie is not set, as the internal OnSetCookieRequestedAsync-event is not yet initialized.
I also did not see a way to detect this state externally to wait for it...
Maybe the cookies could be implemented with a CookieContainer and sync them on demand like in the original WebView?
I did call SetCookieAsync in the Appearing-event of my page and about 4 out of 5 times the control is not ready at that stage.
If you call
SetCookieAsyncright after the control is constructed the cookie is not set, as the internalOnSetCookieRequestedAsync-event is not yet initialized.I also did not see a way to detect this state externally to wait for it...
Maybe the cookies could be implemented with a
CookieContainerand sync them on demand like in the originalWebView?I did call
SetCookieAsyncin theAppearing-event of my page and about 4 out of 5 times the control is not ready at that stage.