Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser start with command line switches Options
Cipri
Posted: Thursday, October 2, 2014 5:28:11 PM
Rank: Newbie
Groups: Member

Joined: 10/1/2014
Posts: 6
Hi,

When starting chrome I can add command line switches, like this for example: chrome.exe --disable-web-security

I would like to know how can I do this with EO.WebBrowser if possible.

Best regards,
Cipriano
eo_support
Posted: Thursday, October 2, 2014 5:40:57 PM
Rank: Administration
Groups: Administration

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

You can not pass command line switches directly, however you can set certain options through BrowserOptions object. See here for more details:

http://www.essentialobjects.com/doc/6/advanced/browser_options.aspx

BrowserOptions only exposes certain switches, not all Chrome's command switches. This also means those switches not exposed through BrowserOptions are not available with EO.WebBrowser.

Thanks!
Cipri
Posted: Friday, October 3, 2014 1:44:25 PM
Rank: Newbie
Groups: Member

Joined: 10/1/2014
Posts: 6
Excelente! Thank you very much
ozheek
Posted: Tuesday, August 30, 2016 3:53:34 AM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Is it possible to use additional switches like:

--disable-reading-from-canvas
--disable-webgl
eo_support
Posted: Tuesday, August 30, 2016 9:42:26 AM
Rank: Administration
Groups: Administration

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

You can try that through this property and see if it works:

http://www.essentialobjects.com/doc/eo.webengine.engineoptions.extracommandlineargs.aspx

See here for how to set engine options:

http://www.essentialobjects.com/doc/webbrowser/advanced/engine.aspx

Whatever you passed through ExtraCommandLineArgs are directly passed to the browser engine. It may or may not work due to two reasons:

1. EO.WebBrowser is based on chromium V49. So if there is a switch added by Chromium after that, then it won't work;
2. Some switches are not handled by the core browser engine, since EO.WebBrowser only includes the core engine, so it may not work;

Hope this helps.

Thanks!


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.