diff --git a/crates/tauri/src/webview/mod.rs b/crates/tauri/src/webview/mod.rs index 7a9d071dc..d0f2e36cd 100644 --- a/crates/tauri/src/webview/mod.rs +++ b/crates/tauri/src/webview/mod.rs @@ -728,7 +728,10 @@ fn main() { /// /// ## Platform-specific: /// - /// **Android**: Unsupported. + /// - **Windows**: Requires WebView2 Runtime version 101.0.1210.39 or higher, does nothing on older versions, + /// see https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes/archive?tabs=dotnetcsharp#10121039 + /// - **Android**: Unsupported. + /// - **macOS / iOS**: Uses the nonPersistent DataStore #[must_use] pub fn incognito(mut self, incognito: bool) -> Self { self.webview_attributes.incognito = incognito; @@ -818,6 +821,8 @@ fn main() { /// /// - **macOS / iOS**: Available on macOS >= 14 and iOS >= 17 /// - **Windows / Linux / Android**: Unsupported. + /// + /// Note: Enable incognito mode to use the `nonPersistent` DataStore. #[must_use] pub fn data_store_identifier(mut self, data_store_identifier: [u8; 16]) -> Self { self.webview_attributes.data_store_identifier = Some(data_store_identifier);