|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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.aspxBrowserOptions 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!
|
|
Rank: Newbie Groups: Member
Joined: 10/1/2014 Posts: 6
|
Excelente! Thank you very much
|
|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, You can try that through this property and see if it works: http://www.essentialobjects.com/doc/eo.webengine.engineoptions.extracommandlineargs.aspxSee here for how to set engine options: http://www.essentialobjects.com/doc/webbrowser/advanced/engine.aspxWhatever 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!
|
|