Repository navigation
fix(pcs): pictures load in the Android app - #562
Merged
Merged
Conversation
Performance: ✅ every row is within its limitMain
|
The app's WebView upgrades plain-http pictures on its https page and the upgrade fails, so every signed media link to the PC's http route showed Image unavailable. Links to the home PC now use the page's own origin, which the app proxies to the PC across its routes. Dev servers read the connected route instead of wire.url to pick the address this device reaches.
vaakx-dev
force-pushed
the
sand/fix-android-image-loading
branch
from
November 24, 2026 13:54
a3d91e5 to
f905ff0
Compare
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.
Pictures in the Android app load again instead of showing "Image unavailable".
What
wire.urlbuilds links to the home PC on the page's own origin (https://sand.localhost), which the app already proxies to the PC with route failover. Links relayed through the home PC use it too.pcs, not fromwire.url, so their link choice in the app is unchanged.plugins/ui/chat/chat/test/web/app.ts(added totest:phone) runs the page the way the app does: https page origin proxied to the PC, PC route reachable for fetch and sockets but not for pictures.Why
https://sand.localhost, while the PC's routes are plainhttp://LAN or Tailscale addresses. Signed media links pointed at those routes.MIXED_CONTENT_ALWAYS_ALLOW, but it auto-upgrades<img>requests tohttps://, which the PC doesn't serve. Every picture failed twice and showed "Image unavailable": tool-read images, chat attachments and anything else signed throughmedia.Verification
<img>to the route failed with "Mixed Content … requested an insecure image … This request has been blocked".https://sand.localhost/media/…with its full size, and no "Image unavailable".bunx tsc,vrui-check,scripts/deps.ts,scripts/comments.ts, andbun testforplugins/agent/dev-servers,plugins/devicesandplugins/core/mediapass.