Repository navigation
Conversation
Collaborator
Author
|
Thanks. Closing: this only triggers if GitHub, or a TLS proxy the machine already trusts, sends an unparseable redirect Location on the pinned HTTPS release URL. No user hits that, so the extra code and test aren't worth maintaining. It's also stacked on #35503 and has no CI. Closing per maintainer triage (low-risk / zero user trade-off / material-gain bar). |
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.
LoC: +29/-1
Stacked on #35503. Merge/reconcile that PR first, then retarget/rebase onto main and revalidate while preserving completed-download publication.
Reject a malformed scrcpy redirect URL through the download promise. URL parsing previously threw inside the asynchronous response callback, escaping the normal download error path and becoming an uncaught exception. Catch parsing failures, drain the response and use the existing EmulatorError rejection.
Validation:6 configured tests,1 expected parent-baseline regression with5 controls and1 matching uncaught Invalid URL error,strict focused TypeScript and all5 actual normal hook tasks pass. Nine real Node26.8.1 child cases per arm,six exact production modules:at1/10 shared callers a malformed Location makes baseline exit1 without a handled result;final handles the failure and exits0. Complete downloads,absolute/relative redirects,downgrade rejection,missing Location,status errors and redirect limit preserve results. All owned children are absent;socket/profile cleanup recorded. HTTPS URLs map to an owned HTTP server;no TLS/live GitHub,Electron or Android/ADB run. No live endpoint returning malformed headers was observed. The main fatal guard rethrow is source-traced.
Required aggregate queued after #35508; no aggregate pass or Claude takeover claimed. Initial error-type assertion and incorrectly retargeted hook wrapper attempts are preserved;the corrected final commit ran all normal hook tasks and the donor remains clean. No dependency,UI,wire,deadline,retry or path-policy change. Actual macOS/Windows/Electron/Android and CPU/RAM/latency remain untested.
Frozen head
a95c879c8b33a4877fabd0010782b959047f3fc7, parent9c72740f20e6dba7643e721f7d34bc581ffdb5d4. Evidence/home/neil/.local/state/orca-electron-audit/scrcpy-redirect-parse-failure/report.md;94-payload seal6987271a65e43f2fa0cc04717732327db2275300297092f89d11e2cdf8238f08.