Skip to content

Commit 0a44e7c

Browse files
committed
Merge branch 'nattb8-feat/no-sandbox'
2 parents 11f413e + f729464 commit 0a44e7c

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/Packages/UnityWebBrowser/Runtime/Core/WebBrowserClient.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ public Resolution Resolution
166166
[Tooltip("Will ignore SSL errors on provided domains in ignoreSSLErrorsDomains")]
167167
public bool ignoreSslErrors = false;
168168

169+
/// <summary>
170+
/// Disables sandbox
171+
/// </summary>
172+
[Tooltip("Disables sandbox")]
173+
public bool noSandbox = false;
174+
169175
/// <summary>
170176
/// Domains to ignore SSL errors on if <see cref="ignoreSslErrors"/> is enabled
171177
/// </summary>
@@ -411,6 +417,12 @@ internal void Init()
411417
//argsBuilder.AppendArgument("start-delay", 2000);
412418
#endif
413419

420+
//Disable sandbox
421+
if (noSandbox)
422+
{
423+
argsBuilder.AppendArgument("no-sandbox", true);
424+
}
425+
414426
//Final built arguments
415427
string arguments = argsBuilder.ToString();
416428

@@ -1185,4 +1197,4 @@ private void ReleaseResources()
11851197

11861198
#endregion
11871199
}
1188-
}
1200+
}

0 commit comments

Comments
 (0)