Page 1 of 1

add Custom line

Posted: Sun Mar 20, 2022 7:31 pm
by pushca
Hi!
How could I use this for this browser?
--disable-webgl
--disable-web-security
--disable-remote-fonts

Re: add Custom line

Posted: Sun Mar 20, 2022 7:48 pm
by salvadordf
Hi,

Set GlobalWebView2Loader.DisableWebSecurity to True to add the --disable-web-security switch automatically.

To add the rest of the switches you will have to set GlobalWebView2Loader.AdditionalBrowserArguments like this :

Code: Select all

GlobalWebView2Loader.AdditionalBrowserArguments := '--disable-webgl --disable-remote-fonts';
If you can't find a switch in uWVLoader.pas then you can add it to the GlobalWebView2Loader.AdditionalBrowserArguments property.

All these properties must be set before the GlobalWebView2Loader.StartWebView2 call.

Re: add Custom line

Posted: Sun Mar 20, 2022 9:05 pm
by pushca
salvadordf wrote: Sun Mar 20, 2022 7:48 pm Hi,

Set GlobalWebView2Loader.DisableWebSecurity to True to add the --disable-web-security switch automatically.

To add the rest of the switches you will have to set GlobalWebView2Loader.AdditionalBrowserArguments like this :

Code: Select all

GlobalWebView2Loader.AdditionalBrowserArguments := '--disable-webgl --disable-remote-fonts';
If you can't find a switch in uWVLoader.pas then you can add it to the GlobalWebView2Loader.AdditionalBrowserArguments property.

All these properties must be set before the GlobalWebView2Loader.StartWebView2 call.
This is amazing! You are a wizard!