Welcome Guest Search | Active Topics | Sign In | Register

Obtaining the Chromium version and other runtime info? Options
Christian Porzio
Posted: Tuesday, January 2, 2018 4:20:06 PM
Rank: Advanced Member
Groups: Member

Joined: 10/4/2016
Posts: 104
Hi!

My first question of the year...

When one opens this URL chrome://version/ in the wrapper, we get a page with a bunch of interesting information:

For instance:

Chromium 62.0.3202.9
OS Windows
WebKit 537.36 (@e0870e19d377d75fd6d32bdb84fd9ee4a5f35c60)
JavaScript 6.2.414.2
Flash 24.0.0.194
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.9 Safari/537.36

Is there some EO API that would returns those values (e.g EO.WebBrowser.Runtime.ChromiumVersion, ...)?

Certainly my code can easily retrieve the OS value but not sure about the other ones.

Thank you ... and HAPPY NEW YEAR 2018 :-)
eo_support
Posted: Tuesday, January 2, 2018 4:24:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,072
Hi,

No. There isn't any API that would return that to you. We can certainly add it to this class similar to this method:

https://www.essentialobjects.com/doc/jsdoc.public.webengine.eoapi.getversion.aspx

The above method returns EO DLL versions, not the browser engine version. We can add another method such as getChromiumVersion on this object. After that you can use something like this to retrieve the version:

Code: C#
string chromiumVersion = webView.EvalScript("eoapi.getChromiumVersion()") as string;


Please let us know if this would work for you.

And happy new year to you too!

Thanks!
Christian Porzio
Posted: Tuesday, January 2, 2018 4:33:41 PM
Rank: Advanced Member
Groups: Member

Joined: 10/4/2016
Posts: 104
I think that would be a neat feature. Hence the users could check out immediately their Chromium version. Obviously not a critical feature though. Thank you
eo_support
Posted: Tuesday, January 16, 2018 9:00:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,072
Hi,

We have posted a new build that added this feature. You can now get the chromium version both on the C# side and the JavaScript side:

https://www.essentialobjects.com/doc/eo.webengine.engine.version.aspx
https://www.essentialobjects.com/doc/jsdoc.public.webengine.eoapi.getchromiumversion.aspx

You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks!
James
Posted: Tuesday, January 16, 2018 11:23:02 AM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2015
Posts: 122
I've always used navigator.userAgent for this, which gets you the right version as far as I've seen.

This wouldn't be true if you override your user agent values of course.
eo_support
Posted: Tuesday, January 16, 2018 2:31:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,072
James wrote:
I've always used navigator.userAgent for this, which gets you the right version as far as I've seen.

This wouldn't be true if you override your user agent values of course.


Yes. That will work too. Thanks for sharing!
Dan
Posted: Tuesday, February 20, 2018 5:31:47 PM
Rank: Newbie
Groups: Member

Joined: 2/20/2018
Posts: 4
Using version 18.0.70.0 the .NET Engine.Version is null.
eo_support
Posted: Wednesday, February 21, 2018 11:12:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,072
Dan wrote:
Using version 18.0.70.0 the .NET Engine.Version is null.


The version will not be available until the Engine has actually been started.

Thanks!
Dan
Posted: Tuesday, February 27, 2018 6:00:52 PM
Rank: Newbie
Groups: Member

Joined: 2/20/2018
Posts: 4
That was my issue. Thanks.
eo_support
Posted: Wednesday, February 28, 2018 9:18:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,072
You are welcome. Please feel free to let us know if there is anything else.


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.