From: yh106.jung Date: Tue, 19 Nov 2019 01:15:06 +0000 (+0900) Subject: [WebView][Non-ACR] Limit a number of renderer process X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=718e43e9d8f31b55f6a0d8147cf01cc384f885a4;p=test%2Ftct%2Fcsharp%2Fapi.git [WebView][Non-ACR] Limit a number of renderer process When app is in background and app creates many renderer process, app is blocked. In order to resolve this problem, we limit the number of renderer process. Change-Id: Ie1a2622532bafa7e049bae9d05ebd287b309eb2b Signed-off-by: yh106.jung --- diff --git a/tct-suite-vs/Tizen.WebView.Tests/Program.cs b/tct-suite-vs/Tizen.WebView.Tests/Program.cs index 38f4912..86fa09a 100755 --- a/tct-suite-vs/Tizen.WebView.Tests/Program.cs +++ b/tct-suite-vs/Tizen.WebView.Tests/Program.cs @@ -17,14 +17,17 @@ using System; using NUnitLite.TUnit; using AutoTemplate; -using Tizen.WebView; - +using System.Collections.Generic; +using Tizen.WebView; + namespace XamarinForTizen.Tizen { class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication { private static App _app; + private static string[] _chromiumArgv = { "--renderer-process-limit=1" }; + protected override void OnCreate() { base.OnCreate(); @@ -48,6 +51,9 @@ namespace XamarinForTizen.Tizen var app = new Program(); global::Xamarin.Forms.Platform.Tizen.Forms.Init(app); Chromium.Initialize(); + List argv = new List(_chromiumArgv); + argv.Insert(0, app.Name); + Chromium.SetArguments(argv.ToArray()); app.Run(args); Chromium.Shutdown(); }