Repository navigation
Correct stale comments in the pane split buttons, OSC sanitizer, and relay fixtures; align the PNG decoder's pixel bound; test reading-position messages - #1889
Open
dormouse-bot wants to merge 1 commit into
Conversation
…relay fixtures; align the PNG decoder's pixel bound; test reading-position messages
Deploying mouseterm with
|
| Latest commit: |
03b9e02
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3a9c8109.mouseterm.pages.dev |
| Branch Preview URL: | https://fix-nightly-stale-comments-2-szmz.mouseterm.pages.dev |
This branch was successfully deployed
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.
Fixes from tonight's rolling survey: five comments that no longer match the code, one unreachable bound in the PNG decoder that disagreed with the editor's, and unit tests for the reading-position messages in the Tool protocol. Behavior is unchanged on every reachable path.
dor-tools-libanddor-tools-builtintests andlib'stsc -bpass locally.dor-tools-builtin/viewer/image/png.ts:decodePngdeclined past its ownMAX_PIXELS = 1 << 27and said "too large to edit", while the editor's bound isMAX_EDIT_PIXELS = 1 << 26(docs/specs/dor-tools-builtin.md-> "Image editor"). Its only caller,decodeImage, gates onimageEditabilityfirst, which reads the same IHDR, so the branch could never fire. The decoder now usesMAX_EDIT_PIXELS, so the backstop and the gate agree.dor-tools-lib/test/protocol.test.mjs: the frame-message test said every frame message carries a dirty state, butviewmessages don't, andview-read,view-apply, andviewwere unit-tested only through one happy-path round trip inframe.test.mjs. A new test covers accepting and dropping each kind, rejecting malformed positions, and theReading position unavailable.fallback. These parsers read messages from an untrusted framed page.PaneActionButtons.tsx: theSplitButtonsdoc said every header shows them only at its widest tier. The browser header also renders them in its overflow popover (SurfacePaneHeader.tsx,placement === 'popover' || placement === 'full'), as layout.md's table says.osc-sanitize.ts: it cited a headingalert.mddoesn't have ("notification protocols"). It now cites "Terminal reports".workspace-control.ts: it citeddor-cli.md-> "dor workspace" for what--autoanswers, which that section doesn't state. The comment states the fact itself, so the citation is gone.ScanInvitation.test.tsx: the comment said the fake throws from a track'sstop(). It throws fromgetTracks().relay/test/fixtures.mjs: the header named the config-mapping and entrypoint suites as its consumers. Neither imports it. The actual consumers are the static-file and setup-password-store suites.