Repository navigation
Conversation
houko
enabled auto-merge (rebase)
November 21, 2026 21:53
houko
force-pushed
the
fix/minimal-app-links
branch
from
November 21, 2026 22:04
65c4455 to
267269e
Compare
This was referenced Nov 21, 2026
f0fccfb (feat(apple): send headers with finite video requests) served header-carrying video byte ranges through Go's net/http from internal/platform/apple/videoresource.go, and 00fd256 (feat(linux): send headers with video requests) called http.CanonicalHeaderKey from internal/platform/linux/videohttp.go. A backend's handling of every mount item links into every app, so every darwin app linked net/http, crypto/tls and crypto/x509, every Linux app linked net/http, and TestMinimalAppLinks failed on main for darwin_arm64 and linux_amd64. On Apple platforms the resource loader now runs each byte range as a data task in a per-resource URLSession, the system's HTTP client, as image downloads already do. Its delegate keeps the same redirect rules (the app's headers only to the source's origin, no Referer elsewhere, at most 10 redirects), sends no stored cookies, and holds each chunk until the player takes it so a slow player still throttles the download. On Linux the header names are canonicalized with net/textproto's CanonicalMIMEHeaderKey, which http.CanonicalHeaderKey wraps.
houko
force-pushed
the
fix/minimal-app-links
branch
from
November 22, 2026 01:29
267269e to
483d230
Compare
houko
force-pushed
the
fix/minimal-app-links
branch
from
November 22, 2026 02:27
39eb301 to
43e7cc4
Compare
This was referenced Nov 22, 2026
auto-merge was automatically disabled
November 22, 2026 03:13
Pull request was closed
This was referenced Nov 22, 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.
Summary
TestMinimalAppLinksfails on main: an app showing one text links Go's HTTP and TLS stack again.darwin_arm64: f0fccfb (feat(apple): send headers with finite video requests) addedinternal/platform/apple/videoresource.go, which serves header-carrying video byte ranges throughnet/http. The Apple backend's video handling links into every app, so every darwin app linkednet/http,crypto/tlsandcrypto/x509(failing in main'stestjob for 7b12b97).linux_amd64: 00fd256 (feat(linux): send headers with video requests) callshttp.CanonicalHeaderKeyininternal/platform/linux/videohttp.go, which linksnet/httpinto every Linux app.Fix
URLSession, the system's HTTP client, as image downloads already are (imageload.HTTP, docs/architecture/layers.md "What an app links"). The session delegate keeps the existing behaviour: the app's headers go only to the source's origin across redirects, Referer is dropped cross-origin, at most 10 redirects, no stored cookies (only the app'sCookieheader),RangeandAccept-Encoding: identityare always the transfer's own, and each chunk waits on the delegate queue until the loader takes it, so a slow player still throttles the download.net/textproto.CanonicalMIMEHeaderKey, whichhttp.CanonicalHeaderKeywraps.The test and its
unlinkedlist are unchanged.Verification
go test ./internal/moduletest -run 'TestMinimalAppLinks|TestDevBuildsLink|TestTextViewAppLinks|TestLayering'passes for all five targets; with only the Linux change reverted,TestMinimalAppLinks/linux_amd64fails with "links net/http".GOOS=darwin go vet ./internal/platform/apple ./internal/platform/macos,go vet ./internal/platform/linux, gofmt clean.go test -race ./internal/platform/apple -skip '^TestWeb'(includesTestVideoResourceRedirectKeepsOnlyThePlayerRangeAcrossOrigins, now against URLSession),go test ./internal/platform/macos -run Video(includesTestVideoHTTPHeadersAndReactiveSource: same-origin redirect, Referer, Cookie, User-Agent, byte ranges, source change), andGOOS=ios go vet ./internal/platform/apple ./internal/platform/ios.Screenshots
None.