Remove the special cases for the old Browser package

A browser request now needs the session token of its window. Disabling
an old runestone.browser package no longer stops the engine. One list of
built-in modules starts the browser and the theme editor, and the plugin
menus skip their tools. The access rules no longer treat the browser ID
in a special way.
This commit is contained in:
Knotty Wyvern
2026-10-29 00:48:37 -07:00
parent 5dc53e4a5e
commit 48b8249ba6
13 changed files with 55 additions and 52 deletions
@@ -19,6 +19,8 @@ test("browser windows have their own capability, a subset of the main window com
test("browser windows start only the built-in browser", () => {
// The capability split depends on this: a browser window never loads an installed plugin.
assert.match(read("src/routes/+page.svelte"), /startExternalPlugins\(browserWindow \? \["runestone\.browser"\] : undefined\)/);
assert.match(read("src/routes/+page.svelte"), /startExternalPlugins\(\{ browserWindow \}\)/);
assert.match(read("src/lib/plugins/external.ts"), /if \(builtInPackages\.includes\(id\) \|\| browserWindow\) continue;/);
assert.match(read("src/lib/plugins/external.ts"), /if \(browserWindow && !builtIn\.browserWindow\) continue;/);
assert.match(read("src-tauri/src/browser.rs"), /let label = format!\("browser-\{\}", uuid::Uuid::new_v4\(\)\);/);
});