"A window is a frame. A webview is what's painted inside it. Tauri 2 finally lets them be separate things."
Two Concepts That Used to Be Fused
In Tauri 1, a 'window' and the web content inside it were effectively one object. Tauri 2 split them, because real apps sometimes need the distinction:
- A Window is the native OS frame — title bar, borders, position, size, the thing that shows up in your taskbar. Tauri builds windows with a library called TAO.
- A Webview is the rendering surface that paints your HTML. Tauri drives webviews with a library called WRY.
In Tauri 2 a single window can host multiple webviews (think split panes that are genuinely separate web contexts), or you can use the everyday convenience type that bundles one window with one webview.
The Type You'll Use 95% of the Time
That convenience type is WebviewWindow — one window, one webview, created together. Unless you're building something exotic like a tiling editor with independent web panes, WebviewWindow is what you reach for, and the rest of this quest mostly uses it. The deeper split (multiple webviews per window) is there when you need it; you won't be forced into the complexity to build a normal app.
Why You Should Care Now
Knowing the split saves you from a confusing day later. When you read Tauri 2 docs and see both Window and WebviewWindow APIs, you'll know which is which: Window is the bare frame, WebviewWindow is frame-plus-content. The windows track builds real multi-window UI on this foundation; this lesson is just so the vocabulary doesn't trip you.