Skip to content

Keep a password field's characters out of a page's trace, and point closed issues' citations at their work - #5714

Merged
max-sixty merged 16 commits into
mainfrom
issue-triage
Nov 8, 2026
Merged

max-sixty merged 16 commits into
mainfrom
issue-triage

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Two changes from the issue triage. The maintainer chose on 8 Nov to land them.

A page's trace keeps no password (#4079)

A page's local trace records every typed value, key, paste and selection for debugging. The maintainer chose on 2026-11-04 to keep that raw capture. The alternatives were recording only the structural fields leaf.page's Worker keeps, or recording nothing unless the user turns it on. So the TODO(privacy) note in interaction_log.py becomes a record of that choice.

A password field is the one thing left out. The trace still shows that the user typed there, and drops the key, code, data, clipboard, value and selection of each event on it. A field the trace has seen as a password field stays one, so switching it to a text field to show the password no longer records what was typed. An independent review had found that leak in Chromium, Firefox and WebKit. A field inside a closed shadow root is seen only as its host, which capture at the document can't change, and interaction-log.js says so.

test_browser_trace_leaves_out_a_password_fields_characters types into a password field, toggles it to text, types again and selects the text. It checks that the trace records the typing and selecting, and none of the characters.

What cited the closed issues

The triage closed #4036, #4017, #4781, #4009, #4048 and #4098, so text that pointed at them now says where their work went:

Nothing changes outside the trace's handling of password fields.

Closes #4079

This was written by Claude Code on behalf of max-sixty

TODO.md's backlog now holds only work planned before release, at `now` or
`next`. An idea or a wait on a trigger that nothing needs before release is
closed as not planned with the `postponed` label, its closing comment naming
what would bring it back. The `etc` tier had become the inflow for open
issues nobody re-read: four `etc` triggers had already fired unnoticed.

Also drop page-layout.md's claim that `page check --render` suggests a
widget's height; #4724 removed the `unreserved-height` finding, so the check
no longer reports one.
#4036, #4017 and #4781 closed in the backlog triage. The tab test's comment now
gives the 2026-10-25 decision that a page read from its top keeps its top, the
Firefox rule rewrite moves with #4781's other follow-ups to #5194, and the plain
HTML note says #4017's brief gave way to TODO.md's first challenge. No behavior
changes.
A page's local trace records every typed value, key, paste and selection for
debugging. Max chose on 2026-11-04 to keep that raw capture rather than record only
what leaf.page's Worker keeps, or nothing unless a user turns it on, so the
`TODO(privacy)` notes become a record of the choice. A password field is the one
thing left out in any case: the trace still shows that the user typed there, and
drops the key, code, data, clipboard and value of each event on it.

Part of #4079.
Max chose to keep it on the triage page, so the paragraph goes back to main's.
A field the trace has seen as a password field stays one, so switching it to a text
field to show the password no longer records what was typed. An independent review
found the leak in Chromium, Firefox and WebKit. A field inside a closed shadow root
is seen only as its host, which capture at the document can't change, and the
module now says so.
A re-measurement on 2026-11-05 found 0 of 10 dashboard/write-up authors on main
cramping a dashboard into a workspace, and none with the older guidance under
today's runtime, so the note no longer calls it the likeliest next target. It also
says --viewport desktop opens 1280x800 since #5268.
# Conflicts:
#	skills/leaf/references/page-layout.md
#4009 closed as postponed, so notes/threads.md's "Current status" plan for an
agent-maintained line at a Thread's head goes with it. #4048 closed as
postponed, so the journey's sample store no longer calls itself a stopgap until
CI gets one: CI's samples stay in publish-site's run logs.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selecting text in a revealed password field still records it. Once the field is type="text", Chromium fires selectionchange at the input itself, and describe stores document.getSelection().toString() as entry.selection, which the redaction loop doesn't drop. I typed hunter2 into a password field, toggled it to text and called select_text() on it; the trace held {"type": "selectionchange", "target": ["input#s", …], "selection": "hunter2"}. Adding selection to the dropped fields closes it, and a select_text() after the toggle in test_browser_trace_leaves_out_a_password_fields_characters would cover it.

Comment thread browser/runtime/interaction-log.js Resolved
Once a show-password toggle makes the field a text field, Chromium fires
selectionchange at the field itself, and the trace stored the selected text.
The password field's events now drop their selection too, and the trace test
selects the revealed text; without the fix it records the selection. Tend's
review of #5714 found it.
@max-sixty
max-sixty merged commit 4d3be2b into main Nov 8, 2026
5 checks passed
@max-sixty
max-sixty deleted the issue-triage branch November 8, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set interaction-trace privacy before sharing pages Keep what a live revision adds above the reader from moving it

2 participants