web: dom.js fallbacks for a missing trust.js have no caller; smoke.js comment on clear() is stale
tsk-rwbzgr5kgwqk Proposed
Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. View: shared (dom.js). Kind: debt (compatibility path with no caller) and comment drift.
What is wrong
opensViews(web/js/dom.js:442) andmemberChip'soutside(:472), both added in the range, fall back to!ctx.outsiderwhenM.trustis missing.web/index.html:29always loadstrust.js; the only page that loadsdom.jswithout it istools/starter-configs.js(withrunners.js), which never callsmemberReformemberChip.web/tools/smoke.js:60saysdom.jsclear()usesreplaceChildrenwhere the browser has it; in the rangeclear()became an unconditionalel.replaceChildren()(dom.js:128-131).
Proposal
- Call
M.trustdirectly; fix the smoke comment.
Effort / risk: S. Low.