Skip to content

Commit 3974807

Browse files
authored
feat: disable sandbox mode for windows unity web browser
1 parent 3df85d1 commit 3974807

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)