The two provider-editor fixes after this commit add 1,433 bytes to app.js,
which would take the core scripts past TestCoreScriptBudget. Instead of a
raise (#2710), the masking rule's in-place Edit row moves out of the core
scripts into ruleedit.js, loaded by import() on the rule's Edit, the way
952f11f56 moved the setup-token and Copilot GHE sheets into signsheets.js.
It draws only after someone clicks Edit on a masking rule.
- editRedactRule moves verbatim into ruleedit.js as window.editRedactRule.
app.js keeps the ruleEdit state. The Edit click awaits the import first,
then sets ruleEdit and redraws. A failed load says why in the status line
and opens nothing.
- old-webkit.test.cjs exempts ruleedit.js from "every script is loaded by
index.html", as it does for cfgblocked.js and signsheets.js.
- app.js: 1,312,951 -> 1,310,470 bytes (-2,481). After the two fixes it is
1,311,903 (budget 1,315,316), and the core scripts are 1,535,189 (budget
1,536,586). Neither budget is raised.
Run (at this stack's head, rebased on 819aad1bc):
- go test -tags nogui ./internal/gui ./internal/provider on mote: ok
(TestCoreScriptBudget included). gofmt -l clean. go vet -tags nogui for
darwin, linux and windows: ok.
- redact-rule-edit, old-webkit, key-box-once, agent-hides-editor, i18n-keys
and provider-many-keys at concurrency 1 on the Windows box (mote's
browsers fail at launch, #4125): Chromium 48/48, WebKit 48/48.
Broken by hand: without the import() on Edit, redact-rule-edit was red
10/10 in Chromium (en/zh/zh-TW/ja/de at 1100px and 420px).
Not tried: the real app.