Skip to content

fix(browser): preserve Link header value delimiters - #805

Merged
N0zoM1z0 merged 1 commit into
morluto:mainfrom
rudycelekli:fix/link-header-delimiters-20261006
Oct 7, 2026
Merged

N0zoM1z0 merged 1 commit into
morluto:mainfrom
rudycelekli:fix/link-header-delimiters-20261006

Conversation

@rudycelekli

Copy link
Copy Markdown

Summary

Preserve Link header delimiters inside <URI-reference> targets and quoted parameter values. A comma in a valid target currently drops that link; a semicolon in a quoted media type truncates the reported type. Use one scanner for entry and parameter boundaries, including quoted-pair escape parity.

The metadata allowlist, origin classification and untrusted declarations remain unchanged. This is a delimiter correction, not a complete RFC 8288 parser or a change to discovery authorization.

Validation

  • Actual system Chrome, an owned profile and loopback HTTP server; public CdpBrowserProvider.inspectPage captures real response events. A progress handshake triggers the HTTP fetch after observation starts. Both ordinary comma-target and quoted media-type cases fail before, pass after; the ordinary header control passes.
  • 10 focused metadata tests pass, including quoted escapes and outside-policy classification.
  • Exact signed head npm run check passes (129 existing warnings, zero errors), and npm run check:fast passes.

Native proof is macOS/system Chrome only; hosted CI is separate. An earlier unpublished local comma-only draft existed; this PR groups the entry and parameter delimiter class.

AI assistance was used for investigation, implementation and tests; I reviewed the change and native results.

@N0zoM1z0 N0zoM1z0 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.

Reviewed head64bdae71c3. The delimiter scanner preserves commas within URI targets and semicolons/commas within quoted parameters, with correct quoted-pair escape parity. Entry splitting and parameter splitting reuse the same bounded scanner; metadata allowlisting, destination classification and untrusted-declaration authority remain intact. This remains the documented partial Link parser. Production build and all10 local metadata boundary tests passed; all20 hosted checks are green, including real-browser and package lanes. No blocking findings in this patch.

@N0zoM1z0
N0zoM1z0 merged commit dd36405 into morluto:main Oct 7, 2026
20 checks passed
@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Thanks, @rudycelekli, for your work on “fix(browser): preserve Link header value delimiters.” I appreciate your contribution to REA.

darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
@morluto morluto added the bug Something isn't working label Oct 14, 2026
@morluto morluto added the area: runtime Process capture and runtime observation label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants