Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

WebView_LoadCompleted LoadCompletedEventArgs Url is null when using WebView.LoadRequest Options
Juha
Posted: Thursday, March 1, 2018 6:50:52 AM
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.
eo_support
Posted: Thursday, March 1, 2018 1:40:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,603
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!
Juha
Posted: Friday, March 2, 2018 1:54:17 AM
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; }
}
}
eo_support
Posted: Friday, March 2, 2018 7:50:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,603
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!
eo_support
Posted: Thursday, March 8, 2018 11:10:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,603
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!
Juha
Posted: Friday, March 9, 2018 8:28:06 AM
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!
eo_support
Posted: Friday, March 9, 2018 9:34:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,603
Great. Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.