Show the engine setup until the browser engine is installed

A browser tab shows the download size, Download the engine, Install from
file, and Open in default browser until the engine can start. It shows
progress, Cancel, the cause of a failure, and Retry, and then opens the
page. Settings -> Browser shows the engine state and Remove engine. Web
links open in the system browser until the engine is installed. Open
link in app browser always opens a browser tab.
This commit is contained in:
Knotty Wyvern
2026-10-29 01:18:21 -07:00
parent 6004e126f7
commit c06d48f250
19 changed files with 425 additions and 107 deletions
+15
View File
@@ -997,3 +997,18 @@ Native shell, background image, and desktop acceptance remain open.
- Evidence: `tests/smoke/layout/plainFixes.smoke.mjs` and `tests/unit/layout/settings.spec.ts`.
- Replaces / replaced by: The OK and Cancel close prompt, and `white-space: pre-line` for every Read paragraph.
- Limits: The word count splits on spaces and counts each Han, Hiragana, and Katakana character as one word. The close prompt uses the native dialog, which browser checks mock. The table control area keeps its 26-pixel padding, because the drag handles need it. The drag handles still show only on hover: showing every row and column handle on focus was too busy. The line break setting applies to Read. The table preview and cell editors of Write keep each line break, because their editing depends on it.
### UI-054 — The browser engine as a separate download
- Type: Rule change
- Date: 2026-10-29
- Status: Implemented for user review
- Decision source: The owner decision "Built-in browser: optional download, installed on first use" of 2026-10-27, and Phase 6 decisions 4 and 5 of 2026-10-29.
- Previous rule: Each installer included the browser engine. A browser tab, Settings → Browser, and the browser bookmarks started the engine as soon as they opened. A web link opened in the app browser when **Open web links in RuneStone** was on. "Open link in app browser" failed when that setting was off.
- New rule: Until the engine is installed, a browser tab shows the engine setup: the download size, **Download the engine** as the primary action, **Install from file…**, and **Open in default browser** when the tab has a web address. A download shows its progress and Cancel. A failure shows its cause in the error color and **Retry**. When the engine is installed, the same tab opens its page. Settings → Browser starts with a **Browser engine** section: the state, the version, and **Remove engine** in the error color with a confirmation. The other browser settings and the browser bookmarks show after the engine is installed. Web links in documents open in the system browser until the engine is installed. "Open link in app browser" always opens an app browser tab, with the engine setup if necessary.
- Reason: A large download needs the user's consent and a clear size. A link must never wait for a download that the user did not start. The explicit command must do what its label says.
- Scope: Browser tabs, browser windows, Settings → Browser, the browser bookmarks, and web links in documents.
- Shared implementation: `src/lib/browser/engine.ts`, `EngineSetup.svelte`, `BrowserTab.svelte`, and `src-tauri/src/browser_engine.rs`.
- Evidence: `tests/smoke/browser/engine.smoke.mjs`, with screenshots of each state in both themes and a 360-pixel Settings window.
- Replaces / replaced by: The bundled engine.
- Limits: The download does not resume. A failed download starts again from zero. The engine installs for the current Windows account only. Browser checks mock the native download.
+1 -1
View File
@@ -388,7 +388,7 @@ Only one enabled plugin can own each key. The host removes contributions before
| --- | --- | --- |
| `terminal` | Mounts terminal controls in a host element. Returns update, command, and dispose functions. | Terminal plugin |
| `git` | Supplies line blame for the editor. | Git plugin |
| `browser` | The built-in browser. | RuneStone |
| `browser` | The built-in browser. `newTab(url?)` opens a browser tab. `open(url)` returns false when the system browser must open a web link, for example before the engine is installed. | RuneStone |
A terminal contribution must stop its controls and native sessions before its cleanup finishes.
+9 -2
View File
@@ -207,12 +207,19 @@ Reopen a document to update its editor tooltips after a language change.
## Use the built-in browser
RuneStone includes a Chromium-based browser. It needs no plugin.
RuneStone includes a Chromium-based browser. It needs no plugin, but its engine is a separate download of about 160 MB.
1. Select the globe button in the left ribbon to open a **New browser tab**.
2. Type an address or a search.
2. The first time, select **Download the engine**. RuneStone downloads the engine, makes sure that it is complete, and opens the page.
3. Type an address or a search.
Without internet access, select **Install from file…** and choose the engine ZIP for your RuneStone version.
If a download fails, the tab shows the cause. Select **Retry** to start the download again.
Until the engine is installed, web links in your documents open in your system browser.
After a RuneStone update that needs a new engine, a browser tab offers **Update the engine**.
Use **Settings → Browser** to set the homepage and search engine, manage profiles, block ads, and clear cookies, cache, or history.
**Settings → Browser → Browser engine** shows the installed version. **Remove engine** frees the disk space. Your profiles, bookmarks, and history stay.
Each profile keeps its own cookies and bookmarks. Web bookmarks show in the Bookmarks pane.
To open web links from your documents in your system browser instead, turn off **Open web links in RuneStone**.