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=581885a62342e2b3e4f1aa6a6ce967666b8f7f64;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: Ia449b01063dcca39465f2a874e8321f28301fbbe 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(); }