/// <summary> /// The use default subprocess. /// </summary> /// <param name="configuration"> /// The configuration. /// </param> /// <param name="useDefaultSubprocess"> /// The use default subprocess. /// </param> /// <returns> /// The <see cref="ChromelyConfiguration"/>. /// </returns> public static ChromelyConfiguration UseDefaultSubprocess(this ChromelyConfiguration configuration, bool useDefaultSubprocess = true) { configuration.UseDefaultSubprocess = useDefaultSubprocess; if (useDefaultSubprocess) { // Disable security features configuration.WithCommandLineArg("default-encoding", "utf-8"); configuration.WithCommandLineArg("allow-file-access-from-files"); configuration.WithCommandLineArg("allow-universal-access-from-files"); configuration.WithCommandLineArg("disable-web-security"); configuration.WithCommandLineArg("ignore-certificate-errors"); } return(configuration); }