chrome+firefox v0.3.1 Makefile and dist/ build/ folders

This commit is contained in:
2026-08-10 16:14:56 -03:00
parent a7531914f9
commit 5176301116
9 changed files with 100 additions and 49 deletions

View File

@@ -29,14 +29,15 @@
//
// This evaluates the built bundle in a worker-shaped sandbox with a stubbed
// extension API, and asserts that it registers exactly one content script, for
// exactly the configured origin. Run it against build/ after a build:
// exactly the configured origin.
//
// make smoke
// node tools/sw-smoke.mjs [path/to/background.js]
import { readFileSync } from 'node:fs';
import vm from 'node:vm';
const BUNDLE = 'build/background.js';
const BUNDLE = process.argv[2] ?? 'build/chrome/background.js';
const CONFIGURED_ORIGIN = 'https://portal.example.br';
const permissionChecks = [];