oliver-zehentleitner / maity

web: dom.js fallbacks for a missing trust.js have no caller; smoke.js comment on clear() is stale

Sign in to report

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) and memberChip's outside (:472), both added in the range, fall back to !ctx.outsider when M.trust is missing. web/index.html:29 always loads trust.js; the only page that loads dom.js without it is tools/starter-configs.js (with runners.js), which never calls memberRef or memberChip.
  • web/tools/smoke.js:60 says dom.js clear() uses replaceChildren where the browser has it; in the range clear() became an unconditional el.replaceChildren() (dom.js:128-131).

Proposal

  • Call M.trust directly; fix the smoke comment.

Effort / risk: S. Low.