|
Rank: Newbie Groups: Member
Joined: 8/8/2017 Posts: 7
|
Hi,
There seems to be a problem/bug with the WebView when using the LoadRequest method. When WebView LoadCompleted event fires the LoadCompletedEventArgs Url property is null in this case. When using the WebView.Url to load the view the LoadCompletedEventArgs Url has the correct Url value.
This occurs at least with the 2/27/2018 - EO.Total 18.0.98 and works with the version 9/29/2017 - EO.Total 17.2.92 that i was using.
This problem can be replicated with TabbedBrowser sample app by adding LoadCompleted event handling to the WebView and using LoadRequest method instead of Url property to load the view.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
This behavior is by design. The Url property is just a shortcut to NavigationTask.Url, which is only valid for LoadUrl call. For LoadRequest call, you can check e.Task.Request.Url to get the Url of the request.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/8/2017 Posts: 7
|
Hi,
There is no Request object in NavigationTask in 2/27/2018 - EO.Total 18.0.98 The WaitableTask seems to provide reference to WebView where the url can be fetched but this probably was not the design idea?
#region Assembly EO.WebBrowser, Version=18.0.98.0
using EO.Internal;
namespace EO.WebBrowser { public sealed class NavigationTask : WaitableTask, aug { public int ID { get; } public string Url { get; } public ErrorCode ErrorCode { get; } public int HttpStatusCode { get; } } }
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
You are correct. I thought this property was exposed. We will either expose the Request property or update the Url property to reflect the value in our next build.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
We have posted a new build that added Request property to NavigationTask object. You can download the new build from our download page. Please take a look and let us know how it goes.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/8/2017 Posts: 7
|
Hi,
The request object is now correctly accessible through NavigationTask object in 3/8/2018 - EO.Total 18.1.7
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Great. Thanks for confirming the fix!
|
|