Skip to content

release: v1.17.0 - #10795

Open
skyfallsin wants to merge 10 commits into
masterfrom
release/1.17
Open

skyfallsin wants to merge 10 commits into
masterfrom
release/1.17

Conversation

@skyfallsin

Copy link
Copy Markdown
Contributor

v1.17.0

Includes #10784: persist a PDF that the current browser tab already received, avoiding a second request that challenge-protected hosts can reject.

Also rejects an inline PDF from its declared Content-Length before reading its body, preserving the existing 50 MB resource limit.

Validation:

  • NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand tests/unit/inline-pdf-response.test.js
  • git diff --check

acpatelmd and others added 10 commits September 16, 2026 16:11
POST /tabs/:tabId/fetch-current-resource re-fetched page.url() through
the Node-side APIRequestContext. Hosts that gate PDFs behind a JS redirect
or bot challenge (observed: PMC, invisible reCAPTCHA Enterprise then
redirect to the .pdf) accept the browser but answer the Node refetch with
HTML/403, so the route returned 415 while the tab was rendering the PDF.

Track the last main-frame navigation response per tab and, when its URL
matches the current page and its content-type is application/pdf, return
that body directly. Fall back to the existing refetch otherwise. Covered
by tests/unit/inline-pdf-response.test.js; verified live against
PMC9250870 (2.5 MB PDF, previously 415).

Claude-Session: https://claude.ai/code/session_013ANmcszistnKMhaST9xcUX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants