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
+2 -2
View File
@@ -4,7 +4,7 @@
import { tick, untrack } from "svelte";
import { getCurrentWindow } from "@tauri-apps/api/window";
import { pluginHost } from "$lib/plugins/registry";
import { pluginEditors, pluginView, pluginSplits, externalErrors, pluginServiceError, selectPluginEditor, closePluginEditor, pinPluginEditor, pluginTabActions, pluginTabDragData, dropPluginTab, findPluginEditor } from "$lib/plugins/external";
import { browserModule, pluginEditors, pluginView, pluginSplits, externalErrors, pluginServiceError, selectPluginEditor, closePluginEditor, pinPluginEditor, pluginTabActions, pluginTabDragData, dropPluginTab, findPluginEditor } from "$lib/plugins/external";
import PluginEditor from "$lib/plugins/PluginEditor.svelte";
import { containsPane, paneBounds } from "$lib/workspace/splitLayout";
import { tabsToClose, type TabCloseScope } from "$lib/workspace/tabActions";
@@ -24,7 +24,7 @@
const active = $derived($pluginView?.key ?? null);
const split = $derived($pluginSplits.find(tree => active && containsPane(tree, active)));
const bounds = $derived(split ? paneBounds(split) : active ? paneBounds(active) : {});
const message = $derived(error || $externalErrors["runestone.browser"] || $pluginServiceError);
const message = $derived(error || $externalErrors[browserModule] || $pluginServiceError);
$effect(() => {
if (tabs.length) hadTabs = true;