diff --git a/packages/daemon/src/daemon.js b/packages/daemon/src/daemon.js index 3af3d6e066..3ad08462b2 100644 --- a/packages/daemon/src/daemon.js +++ b/packages/daemon/src/daemon.js @@ -415,12 +415,15 @@ const makeEndoBootstrap = ( return { external: endoBootstrap, internal: undefined }; } else if (formulaType === 'least-authority-id512') { return { external: leastAuthority, internal: undefined }; - } else if (formulaIdentifier === 'web-page-js') { + } else if (formulaType === 'web-page-js-id512') { if (persistencePowers.webPageBundlerFormula === undefined) { - throw Error('No web-page-js formula provided.'); + throw Error('No web-page-js-id512 formula provided.'); + } + if (formulaNumber !== zero512) { + throw Error('Invalid web-page-js-id512 formula number.'); } return makeControllerForFormula( - 'web-page-js', + formulaIdentifier, zero512, persistencePowers.webPageBundlerFormula, terminator, @@ -762,7 +765,8 @@ const makeEndoBootstrap = ( leastAuthority: () => leastAuthority, - webPageJs: () => provideValueForFormulaIdentifier('web-page-js'), + webPageJs: () => + provideValueForFormulaIdentifier(`web-page-js-id512:${zero512}`), importAndEndowInWebPage: async (webPageP, webPageNumber) => { const { bundle: bundleBlob, powers: endowedPowers } = diff --git a/packages/daemon/src/formula-identifier.js b/packages/daemon/src/formula-identifier.js index af42d6dd10..b11bbbfb58 100644 --- a/packages/daemon/src/formula-identifier.js +++ b/packages/daemon/src/formula-identifier.js @@ -1,6 +1,6 @@ const { quote: q } = assert; -const numberlessFormulasIdentifiers = new Set(['endo', 'web-page-js']); +const numberlessFormulasIdentifiers = new Set(['endo']); /** * @param {string} formulaIdentifier diff --git a/packages/daemon/src/web-page-bundler.js b/packages/daemon/src/web-page-bundler.js index a59502ea39..00516da8aa 100644 --- a/packages/daemon/src/web-page-bundler.js +++ b/packages/daemon/src/web-page-bundler.js @@ -2,7 +2,7 @@ // This is a built-in unconfined plugin for lazily constructing the web-page.js // bundle for booting up web caplets. -// The hard-coded 'web-page-js' formula is a hard-coded 'make-unconfined' formula +// The hard-coded 'web-page-js-id512' formula is a hard-coded 'make-unconfined' formula // that runs this program in worker 0. // It does not accept its endowed powers.