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:
@@ -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\(\)\);/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user