Does Tauri support WebView reuse? #15021
-
|
Can Tauri reuse a webview in another window like Electron does? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@iamxiaojianzheng No, Tauri does not support "reparenting" a live WebView from one window to another (like moving To achieve a similar UX (moving content between windows):
The underlying OS webview controls (WebView2 on Windows, WebKit on macOS) generally don''t support being detached and reattached to different parent HWNDs/NSWindows easily across the abstraction layer Tauri provides. |
Beta Was this translation helpful? Give feedback.
@iamxiaojianzheng No, Tauri does not support "reparenting" a live WebView from one window to another (like moving
WebContentsin Electron).In Tauri, a WebView is tightly coupled to its Window (or Window reference in v2).
To achieve a similar UX (moving content between windows):
emitto synchronize data between the windows.The underlying OS webview controls (WebView2 on Windows, WebKit on macOS) generally don''t support being detached and reattached to different parent HWNDs/NSWindows easily across the abstraction layer Tauri provides.