Skip to content

Commit

Permalink
Merge branch 'nattb8-feat/no-sandbox'
Browse files Browse the repository at this point in the history
  • Loading branch information
Voltstro committed Nov 28, 2024
2 parents 11f413e + f729464 commit 0a44e7c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Packages/UnityWebBrowser/Runtime/Core/WebBrowserClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ public Resolution Resolution
[Tooltip("Will ignore SSL errors on provided domains in ignoreSSLErrorsDomains")]
public bool ignoreSslErrors = false;

/// <summary>
/// Disables sandbox
/// </summary>
[Tooltip("Disables sandbox")]
public bool noSandbox = false;

/// <summary>
/// Domains to ignore SSL errors on if <see cref="ignoreSslErrors"/> is enabled
/// </summary>
Expand Down Expand Up @@ -411,6 +417,12 @@ internal void Init()
//argsBuilder.AppendArgument("start-delay", 2000);
#endif

//Disable sandbox
if (noSandbox)
{
argsBuilder.AppendArgument("no-sandbox", true);
}

//Final built arguments
string arguments = argsBuilder.ToString();

Expand Down Expand Up @@ -1185,4 +1197,4 @@ private void ReleaseResources()

#endregion
}
}
}

0 comments on commit 0a44e7c

Please sign in to comment.