Welcome Guest Search | Active Topics | Sign In | Register

[19.0.56] EO.WebBrowser CustomUserAgent Options
CLEARSOFT
Posted: Tuesday, February 19, 2019 10:19:50 AM
Rank: Member
Groups: Member

Joined: 9/16/2015
Posts: 18
Hi,

setting CustomUserAgent
- req header : Ok
- navigator.userAgent, navigator.appVersion does not changed.

Thanks.
eo_support
Posted: Tuesday, February 19, 2019 10:34:21 AM
Rank: Administration
Groups: Administration

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

This is a limitation of this feature. Currently CustomUserAgent is implemented as a overriding HTTP header, so it only affects server side. Thus it is not possible for you to replace navigator.userAgent. Generally it is not a good idea for you to replace navigator.userAgent since so many web page parses this string and acts differently depends on what they see in this string.

Thanks!
CLEARSOFT
Posted: Tuesday, February 19, 2019 11:37:38 AM
Rank: Member
Groups: Member

Joined: 9/16/2015
Posts: 18
Hi,


wb.CustomUserAgent = "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Mobile Safari/537.36";


1. EO 2015~2018
navigator.appVersion: "5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Mobile Safari/537.36"
navigator.userAgent: "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Mobile Safari/537.36"


2. EO 2019
navigator.appVersion: "5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
navigator.userAgent: "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"


feature changed?
Thanks.
rainstuff
Posted: Wednesday, February 20, 2019 9:46:34 AM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2016
Posts: 73
ClearSoft, thanks for paying attention!
It's a security hole:(


Update: you can use "--user-agent" commandline flag to fix it, but it is not comfortable in some cases...
eo_support
Posted: Thursday, February 21, 2019 10:12:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Yes. This indeed is a problem. We should be able to address it in our next build. We will reply here again as soon as the new build is available.
eo_support
Posted: Friday, February 22, 2019 9:43:33 AM
Rank: Administration
Groups: Administration

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

This is just to let you know that we have posted a new build that should resolve this issue. Please see your private message for the download location.

Thanks!
CLEARSOFT
Posted: Saturday, February 23, 2019 2:18:06 AM
Rank: Member
Groups: Member

Joined: 9/16/2015
Posts: 18
Hi,

Thank you for the new build.
It works!

Thanks :)
CLEARSOFT
Posted: Saturday, February 23, 2019 3:08:25 AM
Rank: Member
Groups: Member

Joined: 9/16/2015
Posts: 18
Hi,

Another error was found in the test build.

* EnableEOWP = true; (put eowp.exe in the app dir)
Multiple executions of app.exe will result in the following error:

"Can not find or automatically create eowp.exe. Please place this file in the same directory as EO.Base.dll and make sure they are the same version. This file is needed if your application does not have sufficient permission to read Windows system directory, or you have EO.Base.Runtime.EnableEOWP set to true. .'C:\Users\...\AppData\Local\Temp\eowp.19.0...."

I will wait for the official version.
Thank you.
eo_support
Posted: Saturday, February 23, 2019 6:14:21 PM
Rank: Administration
Groups: Administration

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

This does not have anything to do with the change in the new build about CustomUserAgent. You can run into this error when the application tries to automatically create eowp.exe and you have multiple instance of the application trying to start at the same time (we do have additional code try to avoid such conflict but it's not guaranteed).

The easiest way to avoid this problem is to make sure you have eowp.exe in your application's directory or bin directory (check AppDomain.CurrentDomain.BaseDirectory or "bin" directory under that directory). If you have the correct eowp.exe in those two directory, then your application will not try to automatically create eowp.exe in your temp directory and run into race conditions.

Thanks!
CLEARSOFT
Posted: Saturday, February 23, 2019 9:44:06 PM
Rank: Member
Groups: Member

Joined: 9/16/2015
Posts: 18
Hi,

I already know this.
It is just an error in the test build. 19.0.56 and EO 2015 ~ 2018 will work normally.

Thanks!
eo_support
Posted: Sunday, February 24, 2019 7:47:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
I am not sure what else to tell you. What we were trying to tell you in our previous post is this has nothing to do with the test build. Nothing in the test build has changed regarding eowp.exe and the error message clear indicates that it did NOT find eowp.exe in your app directory. So that's where you need to look. If you do not believe what we tell you and still believe this has to do with the test build, you are welcome to wait for the public build.
CLEARSOFT
Posted: Sunday, February 24, 2019 11:55:51 AM
Rank: Member
Groups: Member

Joined: 9/16/2015
Posts: 18
TabbedBrowser_CS sample

App.xaml.cs
.....
> EO.Base.Runtime.EnableEOWP = true;
EO.Base.Runtime.StartDebugMonitor("test");
.....

1. build and copy to "C:\Program Files (x86)\Essential Objects\EO.Total 2019\TabbedBrowser.exe" (install dir)
2. run twice



There is obviously an error in the test build. I just hope there is no problem with the public build.
Thanks.

eo_support
Posted: Sunday, February 24, 2019 5:28:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
There must be something different on your system. We tested exactly that here and it worked fine. :((
CLEARSOFT
Posted: Friday, March 1, 2019 11:26:23 AM
Rank: Member
Groups: Member

Joined: 9/16/2015
Posts: 18
Hi,

[EO 19.0.69] CustomUserAgent, EnableEOWP

it worked fine!
Thanks :)
eo_support
Posted: Friday, March 1, 2019 1:27:33 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Great!


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.