1.0.52026-11-20
Behavior changes
- PandaScript: page.evaluate() now returns a promise, like page.goto(). Saved scripts need await in front of every page.evaluate(...). Several evaluates can now run at once with Promise.all.
- --v8-gc-hint-floor-mb is renamed --v8-gc-request-min-mb. The old name still works but is deprecated.
- New --v8-gc-auto-min-mb, default 32: V8 doesn't start a full GC on its own below this heap size. 0 keeps V8's default.
- classify, acceptCookies and login can use Gemini, but only with LIGHTPANDADECISIONPROVIDER=gemini. TypeSafe stays the default.
- agent --save replays a read-only script once before writing it. If the replay fails or returns nothing, the model gets one turn to fix the script, and the first script is kept, with a warning, when the fix doesn't replay. Scripts that act on a page are written unchecked.
- A fetch or XHR whose connection drops before the end of a Content-Length or chunked body now fails, instead of resolving as a complete 200.
- history.pushState/replaceState to a URL of another origin throws a SecurityError.
- Responses served from the HTTP cache now go through CORS checks.
- document.currentScript is null while a module runs.
- The goto timeout (script API and MCP tool) now bounds the navigation wait, even while a parser-blocking script is loading.
- Mouse hit testing skips inert subtrees.
Layout
- More realistic top and height, with awareness of positioned boxes, tables and text
- display: grid support
- em, rem and basic calc() lengths; min-height and max-height
- Text wrapping uses the computed width
- Hit testing: positioned boxes are above the normal flow, negative z-index below it
- Layout, hit testing and bounding rects are much faster (style caches are cleared only where a change can reach)
New Web APIs
- NavigateEvent.intercept()
- ReadableStream.tee() and values()
- XMLHttpRequest.upload progress events
- Attr.specified
Web API behavior / fixes
- XHR: re-opening a request in flight doesn't fire abort/loadend; responseType = 'document' is ignored in a worker
- WebSocket close() while connecting moves to CLOSING and queues a close event
- Request keeps the case of methods other than the six standard ones
- fetch with redirect: 'manual' keeps the URL
- The formdata event gets its own copy of the FormData
- ResizeObserver starts from a size of -1×-1
- IndexedDB: a pending request keeps its JS object until its event fires (fixes Zone.js apps)
CDP
- Playwright can use the default context before any page: context.addCookies() works, and page.close() on the startup page no longer hangs
- DOM.getBoxModel returns Chrome's error for an element under display: none
- Accessibility.getFullAXTree reports the selected option's label as a combobox value
- LP.dump withFrames option: include iframe content in the HTML dump
- Crash fix in request interception on an aborted transfer
WebDriver
- /alert commands answer no such alert
- Element /displayed, /computedrole and /computedlabel
- Shadow root endpoints: /element/{id}/shadow, /shadow/{id}/element, /shadow/{id}/elements
- Sessions accept acceptInsecureCerts
BiDi
- script.addPreloadScript and script.removePreloadScript (no arguments yet)
Tools / MCP / Agent
- lightpanda mcp --tools goto,tree,... exposes only the named tools; --list-tools prints every name
- MCP over HTTP: memory is returned to the OS when a session ends, and the idle default session closes its pages after --http-session-timeout
- PandaScript page.getCookies()
- lightpanda run and agent now apply --cookie and --cookie-jar
- Markdown: definition list terms and details go on their own lines
Performance / memory
- Stylesheets with --load-resources stylesheet are preloaded in parallel
- Smaller CSS DOM: rules are created only when JS reads them, @media/@layer/@supports parsed once
- Smaller nodes and elements (a div goes from 80 to 64 bytes)
- The page HTML is held once instead of three times (CNN peak memory 65 MB → 54 MB)
- fetch() takes the response body instead of copying it
- Semantic tree uses less memory (HTML spec: 249 MB → 154 MB)
- Faster getComputedStyle, nodeList[i] and object wrapping
1.0.5-rc2预发布2026-11-19
1.0.5-rc1预发布2026-11-19
1.0.42026-11-13
Behavior changes
- Requests to the Fetch "bad ports" (ssh, smtp, pop3, imap, …) are now refused for every request, not only WebSocket.
- window.postMessage now honors targetOrigin.
- A cross-site response can no longer set a SameSite cookie other than None.
- Proxy and server credentials are tracked separately, so proxy credentials are no longer sent to the server after a redirect.
- An about:blank (or src-less) iframe now gets its contentWindow and contentDocument even without --load-resources iframe. Its HTTP and WebSocket requests are blocked while iframe loading is off.
- An HTTP status from 600 to 999 (e.g. LinkedIn's 999) is now reported as-is instead of 0.
- Trusted mousedown, mouseup, click and dblclick now stop at the first disabled form control, as in Chrome.
- Element clicks and hovers from tools now hit the element's center instead of (0, 0).
- document.readyState is now interactive when deferred scripts run.
- Network.setUserAgentOverride now logs a warning when a restricted user agent is ignored.
- The HTTP server parses requests more strictly and its routes are guarded against DNS rebinding.
CDP
- Several page targets in one browser context. Console, exception and network events are routed to the right target, and a frame id from another target is rejected
- Accessibility: ignoredReasons now match Chrome (ariaHiddenElement, ariaHiddenSubtree, inertElement, notRendered, notVisible)
- Lone surrogate escapes in JSON ("\udc00") are accepted instead of closing the connection
- LP.waitUntil and a settled lifecycle event
- beacon added to LP.configureLoading
- A closed browser context no longer leaves its viewport override for the next one
- LP commands described in /json/protocol
Serve / CLI
- --wait-until settled (experimental): waits for load, then for the work that can still change the page. Interval timers, long timers and intersection observers don't hold it
- --v8-gc-hint-floor-mb replaces the fixed 1 MiB GC hint floor. Off in fetch
- --experimental-features animation: fire animationstart, animationend and animationcancel for CSS animations
- Bash 3.2 (macOS) filename completion
New Web APIs
- AnimationEvent and CSS animation events (behind --experimental-features animation)
- ClipboardEvent
- InputEvent.getTargetRanges()
- execCommand('insertParagraph')
- getComputedStyle().content resolved from the cascade
Web API behavior / fixes
- Text editors: CKEditor works, and clicks, focus and Tab place the caret in a contenteditable (Slate, Draft.js)
- contenteditable: Backspace and Delete merge blocks (nested ones too), side-by-side lists merge, Enter in an empty list item outdents it
- execCommand: runs of spaces and spaces at line edges become , so they stay visible
- innerText keeps spaces when CSS white-space preserves them, and puts a newline between rows of thead, tbody and tfoot
- :defined follows the custom element state; customized built-ins (<button is=...>) now upgrade
- [CEReactions] for createElement/createElementNS; the reactions queue is no longer drained when a constructor returns
- a.hash and a.search (and <area>) return "" for a lone # or ?
- history.pushState(undefined) no longer breaks history.state; state that JSON can't encode throws DataCloneError
- import() of an already available module settles in a later task, as in Chrome
- window.<id> on an iframe's window looks up the iframe's document
- Functions called from a realm whose frame is gone no longer crash (import(), import.meta, postMessage, location)
- WebSocket: fragmented messages are reassembled; the server's Sec-WebSocket-Protocol is checked against the offered list
- CORS responses filter their headers
- Response.clone() on a stream; pipeTo/pipeThrough fixes
- Input stepUp/stepDown with fractional steps (0.1 + 0.2 gives 0.3)
- matchMedia("") always matches
- SVG getCTM()/getScreenCTM() return an identity matrix on a detached element
- frame and basefont are serialized as void elements
- document.createEvent('inputevent') is rejected; PromiseRejectionEvent requires its options
- new CSSStyleSheet() sheets are the only ones replace() accepts
- IntersectionObserver: the first check runs on the next tick
Tools / MCP
- tree delta: true: returns only the lines that changed since the last call
- The page's WebMCP tools are reported in a tool result whenever they change
- Actions that open a window late (after a fetch or a timer) now follow it; new popups tool lists and switches windows
- click says when the element is disabled or not rendered
- Tool arguments are type-checked, and every error names the argument and the problem
- tree and markdown keep content that is rendered despite hidden or aria-hidden
- Markdown: <ol start>, multi-paragraph blockquotes, a blank line before ---
- MCP over HTTP: tool output streamed over SSE (the run tool streams console lines), logging/setLevel, and notifications/cancelled now stops the call in flight
- The run tool description explains how to load pages in parallel
Performance / stability
- Style caches are invalidated per property group, and a geometry change no longer resets the whole geometry cache
- Smaller CSS declarations (~500 KB saved on a style-heavy site); property names are ids, and style matching compares ids (7%+ faster rebuilds on most frameworks)
- XHR takes the response body instead of copying it
- XPath parsing allocates less
- Crash fixes: abort during a gated transfer, a UAF in custom element upgrade
- The crash reporter exits non-zero when it can't start curl
Release
- macOS builds run on macOS 15; the Intel build targets baseline x86_64, fixing "Illegal instruction" on older CPUs
- Release candidates (1.0.4-rc1) are now published
1.0.4-rc1预发布2026-11-11
1.0.32026-11-05
本次更新在行为与 API 兼容性上做了大量对齐 Chrome 的调整,同时补上了不少缺失的 Web API。
serve 的 --http-max-concurrent 默认值改为跟随 --cdp-max-connections(8 倍,范围 40~256,默认 16 连接时即 128)。fetch --dump markdown 现在会向服务端请求 markdown;与 CDP 相关的 Accessibility.getPartialAXTree(遵循 fetchRelatives)、DOM.querySelector 无匹配时返回 nodeId: 0 等行为也一并修正。GET/HEAD 带 body 的 fetch() 会抛出 TypeError,waitForState 超时会如实上报;从隔离世界插入的脚本改在主世界运行,事件监听则回到各自世界的上下文,Playwright 的 focus()、selectOption() 因此能正常触发 React 的 onFocus/onChange。
新增 API 覆盖面很广:AudioContext、Payment Request、document.execCommand、image.decode()、SVG getBBox()、MessagePort 可转移、TextDecoderStream 全编码支持、Web Crypto 的可序列化 CryptoKey,以及遵循新规范的 WebMCP。
布局侧修复了 flex-shrink、边距与 inset 定位,position 改从样式表读取,无尺寸 iframe 回到 300×150 且可被点击,文本域 scrollHeight 计入文字内容,自适应高度不再失效。
1.0.22026-10-23
本次更新集中在浏览器行为对齐与自动化能力补强。JS 页面错误改到 page_error 级别记录,可用 --log-filter 关闭;每个顶层页面拥有独立会话历史,第二个页面的前进后退不再串到第一个页面;--block-private-networks 新增封禁 CGNAT、组播、NAT64 等更多不可路由网段。Web API 方面补齐 Web Crypto 多种算法、WebCodecs、XML 解析与一批表单、表格、窗口尺寸接口,元素宽度改按父元素解析,getBoundingClientRect 改为视口相对坐标,鼠标事件可穿透 shadow DOM 与 iframe。CDP 新增 LP.getPageStatus 与 Fetch.continueRequest 的 interceptResponse,未处理的 Promise 异常与资源加载失败也会推送事件。命令行新增 serve --unix-socket 与 --remote-allow-origins,fetch 支持输出结构化数据及 markdown 交替版本。内存占用亦有所下降。
1.0.12026-10-15
这次更新有不少实打实的行为调整:setImmediate 与 clearImmediate 因不在 Web 标准内被移除;MCP 和 agent 模式改为默认加载外部样式表;HTTP 重定向上限由 10 提到 20,与 Fetch 规范对齐;不支持的协议不再触发导航,javascript: 则直接执行。
新 API 补齐了一大批:Web Locks、Compression Streams、RSA-OAEP 加解密、ElementInternals 与表单关联回调、Request.body、form.field、HTMLTableElement.rows、select.remove,以及把 Console、CSS 正式做成命名空间。
表单与输入侧,回车可隐式提交、blur 或回车时触发 change、Ctrl+A 全选,所有文本编辑统一走同一条受控路径;CDP、testdriver 与 BiDi 的按键和点击序列也拉齐到 Chrome 行为。fetch 现在收到响应头即 resolve,中止信号能真正中断请求;定时器、动画帧与 on* 处理器里的异常改由 reportError 上报。
CSS 方面,计算样式给出初值和解析后的 font-size,text-transform 参与 innerText,外部样式表上限提到 4 MiB,命中测试尊重 pointer-events:none;选择器新增 :valid/:invalid、:read-write 等支持。CDP 增加 Fetch 响应阶段暂停与 Debugger 域的起步能力。
1.0.02026-10-02
CORS 现已默认启用:跨域 fetch/XHR 未通过检查会被直接拦截,可用 --disable-features cors 关闭,旧的 --experimental-features cors 标志随之移除,并新增带条目上限的 CORS 存储。经典 HTTP WebDriver 补齐到可用程度,覆盖会话管理、导航与前进后退、执行脚本、元素与输入端点、Cookie 与视口控制,HTTP 默认与最大上限也相应调高。getComputedStyle 结果改为只读,语言来源改为 --locale,重定向转 GET 时会丢弃 body 头。
Web API 新增 WebAssembly.compileStreaming/instantiateStreaming、Sanitizer API 初版、TextEncoder.encodeInto、inert 属性、img srcset 与 new Option(),ServiceWorker 仍需实验开关。渲染侧把样式级联按属性组拆分、支持 !important,改进换行文本高度测量与滚动容器派发;CDP 优化响应体获取、frame 归属查询与会话级命令回复。工具链新增 OpenRouter provider,lightpanda run - 可从标准输入读脚本;CLI 报错更克制,并支持 NO_COLOR。
0.4.12026-09-15
本次更新亮点不少:CORS 以实验特性形式加入,默认关闭,可用 --experimental-features cors 开启,fetch/XHR 不再无条件放行跨域请求,并校验 Origin 与请求头。IndexedDB 通过一轮 WPT 符合性测试,补齐 setName、nextunique/prevunique 游标方向,修复了 releaseRef 后读取 txn._db 的释放后使用问题。
新 API 面向图表与表单类场景补强:resource-timing、window.stop()、img.decode()、sendBeacon、valueAsNumber/valueAsDate/stepUp、SVG 的 getCTM,以及 canvas 的 measureText 等常用探测方法;Performance 现在是 EventTarget。文本输入的光标移动、beforeinput 可取消、禁用 fieldset 的校验行为、select 赋值等表单细节也一并修正。自定义元素克隆可就地升级,无窗口文档不再升级。
渲染侧为样式管理做记忆化,规则增量入桶,nth-* 选择器与伪类解析提速;广告拦截改用 PCRE2 跑 /regex/ 过滤器。网络层保持跨导航连接存活,curl 升至 8.22.0,WebSocket 长度解析防整数溢出。协议侧 WebDriver 支持 HTTP 会话管理,CDP 增加 DOM.focus、请求拦截与滚轮事件语义。CLI 新增 --locale、--timezone,输错命令会提示相近选项。稳定性方面修复多处释放后使用与泄漏,并处理 V8 关闭流程中的堆上限与终止竞态。