Skip to content

Commit 8a164c3

Browse files
authored
Merge pull request #645 from immutable/feat/windows-sandbox-webview
feat: disable sandbox mode for windows unity web browser
2 parents 3df85d1 + 3974807 commit 8a164c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Packages/Passport/Runtime/Scripts/Private/Uwb/UwbWebView.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public async UniTask Init(int engineStartupTimeoutMs, bool redactTokensInLogs, F
5151
WebBrowserClient browserClient = ui.browserClient;
5252
browserClient.engineStartupTimeout = engineStartupTimeoutMs;
5353

54+
// Disable sandbox for Windows VM compatibility
55+
browserClient.noSandbox = true;
56+
5457
// Apply Passport logging preferences to the UWB client
5558
UwbLogConfig.ApplyTo(browserClient);
5659

@@ -147,4 +150,4 @@ public void Dispose()
147150
}
148151
}
149152

150-
#endif
153+
#endif

0 commit comments

Comments
 (0)