A RecvError after the headers was taken as a normal end of body whenever
the response had no Connection header (or Connection: close). That is
right for a close-delimited body, where a TLS peer closing without
close_notify ends it, but a body framed by Content-Length or chunked
encoding has its own end: losing the connection before it means the
response was truncated. fetch() and XHR resolved such responses as
complete, with whatever part had arrived, and a malformed chunked body
loaded as an empty 200.
Next.js App Router with `cacheComponents: true` tees the Flight stream
during hydration. Without tee() the page throws `I.tee is not a function`
and React never mounts (#4654).
tee() follows ReadableStreamDefaultTee: it locks the source and each
branch pulls one chunk at a time, so the source isn't drained ahead of
the branches. Both branches get the same chunk (no clone). Cancelling one
branch leaves the other flowing; the source is cancelled once both are,
with [reason1, reason2]. Only a locked stream throws; a closed or errored
source yields closed or errored branches.
values() returns the existing async iterator, which now also returns
itself from [Symbol.asyncIterator] so `for await (... of s.values())`
works.
A <li> in a cell gets the same space as <dt> and <dd> instead of a
newline. The cell's padding counts as a line start, so the first item
doesn't add a second space.
An indented <dl> left a trailing space on each line, because the
whitespace after </dt> was written as a space. Inside a table cell,
write a space instead of a newline so the row stays intact.
Same as fetch --with-frames: the html dump includes each iframe's
content document, nested iframes included. Other formats refuse it
with InvalidParams.
The identity map holds JS objects weakly, so a pending IDBRequest
could be collected before its success/error event. A fresh JS object
then received the event without the old one's expandos, which broke
Zone.js listeners (blank page on boodmo.com).
Hold a strong ref from submit/open/deleteDatabase until the event
has been dispatched.
The test large.css had 100K rules, which, when parsed, has to generate a ton
of object. Keep the large css, but make it a big comment. It tests the same
thing without the overhead of the creating those rules.
popover_open no longer bumps dom_version...but a form-associated custom element
being upgraded now does (this can change a form-aware live collection).
Баг: script-API `page.goto(url, {timeout})` (и MCP-инструмент goto) не
ограничивал навигацию, пока в полёте парсер-блокирующий подресурс.
Замер на main: скрипт отвечает 9с + timeout 2000 → отклонение «navigation
timed out» на 9008мс (когда страница уже догрузилась); скрипт 25с →
отклонение на ~15с — это wall-clock curl (httpTimeout), а не таймаут
вызывающего.
Причина: дедлайн проверяется только МЕЖДУ тиками (Runtime.settleCompleted),
но один тик может висеть сколь угодно долго: при доставке ответа
(HttpClient.dispatchCompleted) синхронно работает парсер, и
парсер-блокирующий <script src> уходит в Transfer.submitSync — цикл
`while (in_progress) tickSync(200)` на стеке парсера. Снаружи этот цикл
не прерывается ничем, кроме ответа сервера или 15-секундного
curl-таймаута. strace это подтверждает: ~45 циклов ppoll(200мс) внутри
одного runner.tick(50).
Фикс: у HttpClient.Client появляется wait_deadline_ms — абсолютный
дедлайн текущего ожидающего, который выставляют навигационные wait'ы
перед каждым тиком и снимают после:
- Runner._wait (не-CDP путь: MCP goto/performGoto, действия, fetch-режим)
публикует остаток своего timeout_ms;
- Runtime.driveAsync (script-API) — ближайший deadline среди pending goto.
Transfer.submitSync проверяет дедлайн до старта и после каждого
tickSync, а сам wait ограничивает min(200, остаток); по истечении —
abort передачи и error.WaitDeadlineExceeded: парсер продолжает без
этого ресурса (scriptAddedCallback логирует ошибку и идёт дальше —
как при любой ошибке загрузки скрипта), а вызывающий отклоняет
навигацию по таймауту. Те же проверки в циклах waitForPreload и
waitForImport. CDP-путь (_wait c is_cdp) не ограничивается: там _wait
вызывается помашечно по ~1с как слайс живости, а не как граница
навигации.
В Runtime.settleCompleted дедлайн теперь старше статуса .complete:
завершение, наступившее в том же тике, что и дедлайн (например из-за
abort'а блокирующего скрипта), остаётся таймаутом, а не «успешной
загрузкой»; честная ошибка (.err) по-прежнему .failed.
Тесты: в тестовом HTTP-сервере эндпоинты /goto_timeout/page?s=N и
/goto_timeout/script.js?s=N (парсер-блокирующий скрипт с задержкой N
секунд) + два теста Runtime: timeout 2000 при 9-секундном скрипте
отклоняется за ~2с (было 9008мс), а при 2-секундном скрипте и
timeout 15000 навигация резолвится, и блокирующий скрипт успевает
выполниться до резолва.
Each recorded tool now declares what its page method returns to a
script, and `zig build docs` renders it next to the call signature, so
the docs site no longer keeps a handwritten table of return values.
/element/{id}/shadow <- get the element's shadowroot
/shadow/{id}/element <- find element from shadowroot (POST)
/shadow/{id}/elements <- find elements from shadowroot (POST)