Repository navigation
Keep a password field's characters out of a page's trace, and point closed issues' citations at their work - #5714
Merged
Merged
Conversation
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
leaf-agent
reviewed
Nov 8, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
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.
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.
leaf-agent
approved these changes
Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ininteraction_log.pybecomes 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.jssays so.test_browser_trace_leaves_out_a_password_fields_characterstypes 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:
reading-place.js) rather than Keep what a live revision adds above the reader from moving it #4036.notes/browser-support.mdmoves the Firefox rule rewrite to Large pages become slow: per-input work grows with the square of the widget count, images are refetched on every load, and /api/state resends all history #5194, with Export: an exported page parses every data source before its first draw #4781's other follow-ups.notes/agent-usability-evals.mdsays Act on the plain HTML comparison #4017's brief gave way toTODO.md's first challenge. It also says Keep a window preference from cramping a dashboard into a workspace #4098's workspace failure no longer reproduces: 0 of 10 dashboard and write-up authors on main cramped one into a workspace (2026-11-05). And--viewport desktopopens 1280×800 since Name every window once, beside tab, and read its pointer from it #5268.notes/threads.mddrops its "Current status" plan, which went with Keep a long Thread's current status visible #4009.leaf-dev journey's sample store no longer calls itself a stopgap until Keep the agent journey's samples #4048: CI's samples stay inpublish-site's run logs.Nothing changes outside the trace's handling of password fields.
Closes #4079