From 581885a62342e2b3e4f1aa6a6ce967666b8f7f64 Mon Sep 17 00:00:00 2001 From: "yh106.jung" Date: Tue, 19 Nov 2019 10:15:06 +0900 Subject: [PATCH] [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 --- tct-suite-vs/Tizen.WebView.Tests/Program.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); } -- 2.7.4