Skip to content

Releases

1.0.4

Choose a tag to compare

@github-actions github-actions released this 13 Nov 11:51
44d096b

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

1.0.4-rc1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Nov 10:27
44d096b
Merge pull request #4584 from lightpanda-io/pre-release

1.0.3

Choose a tag to compare

@github-actions github-actions released this 05 Nov 09:04
b8e234a

Behavior changes

  • serve: the --http-max-concurrent default now follows --cdp-max-connections (8× it, between 40 and 256). With the default 16 connections it is 128.
  • fetch --dump markdown now asks the server for markdown (Accept: text/markdown,...). A text/markdown response is dumped as-is. Not sent with --dump-selector, --wait-selector or --wait-script.
  • Accessibility.getPartialAXTree now honors fetchRelatives, as Chrome does: it returns the node and its relatives, no longer the whole subtree. Use getFullAXTree or getChildAXNodes for a subtree.
  • DOM.querySelector with no match now returns nodeId: 0 instead of an error, as Chrome does.
  • Touch event handlers (ontouchstart, …) are removed from document and elements: Lightpanda doesn't emulate a touch device.
  • navigator.sendBeacon now checks its arguments. Beacons are still not sent unless --load-resources beacon is set.
  • The HTTP cache database is deleted and rebuilt when its schema version changes.
  • waitForState now reports a timeout instead of always answering that the page reached the state.
  • MCP over HTTP: a request on a session closed with DELETE now gets a 404 instead of starting a new session.
  • fetch() and new Request() with a body on GET or HEAD now throw a TypeError.
  • Scripts inserted from an isolated world (Playwright setContent, appendChild) now run in the main world.
  • Event listeners now run in their own world's context, so Playwright's focus() and selectOption() fire React's onFocus/onChange.

New Web APIs

  • AudioContext (WAV only)
  • Payment Request API: PaymentRequest, PaymentResponse and their events, behaving like Chrome with no payment app installed
  • NavigateEvent on navigation (intercept() is not implemented)
  • PerformanceNavigationTiming entry for the document
  • document.execCommand: insertText, delete, forwardDelete, selectAll, insertLineBreak, and the styleWithCSS, useCSS and defaultParagraphSeparator settings. Other commands return false
  • image.decode()
  • HTMLElement.isContentEditable (real value), HTMLElement.spellcheck, document.designMode
  • Touch constructor and TouchEvent touch lists
  • elementFromPoint/elementsFromPoint on ShadowRoot
  • SVG getBBox()
  • HTMLFrameElement, SecurityPolicyViolationEvent, a stub Path2D
  • navigator.mimeTypes (empty MimeTypeArray)
  • img.sizes; link.relList.supports() for dns-prefetch, preconnect and prefetch
  • HTMLFieldSetElement.elements; abbr, mark, small, wbr and other HTMLElement-only tags are now HTMLElement instead of HTMLUnknownElement
  • onmouseenter and onmouseleave handlers
  • Web Crypto: raw-secret and raw-public key formats; CryptoKey is now serializable (structuredClone, postMessage, IndexedDB)
  • MessagePort is now transferable
  • TextDecoderStream decodes every encoding TextDecoder supports, with state kept across chunks
  • XMLSerializer now writes XML instead of HTML
  • WebMCP follows the current spec: document.modelContext, getTools(), toolchange, registerTool returns a promise
  • CSS: native nesting, color parsing, more known properties (CSS.supports, unknown property errors)

Web API behavior / fixes

  • Layout: flex-shrink, horizontal margins, left/right/inset, and widths from text measurement. Widths are relative to the containing box. Out-of-flow children no longer size their parent, and block boxes start at their parent's left edge
  • position is now read from stylesheets, not only from the inline style (offsetParent, getComputedStyle)
  • An iframe without size is now 300×150, and its box is the frame's viewport, so Playwright can click inside it
  • Range.getClientRects() now returns one rect per selected element or text node
  • elementFromPoint returns null outside the viewport
  • Textarea scrollHeight now counts its text, for auto-sizing textareas
  • Typing and Input.insertText now insert text into contenteditable elements and designMode documents; Ctrl-A selects all
  • Selectors: :in-range/:out-of-range, :default, :scope on a document; :required/:optional only on form controls; [attr^=""], [attr$=""] and [attr*=""] match nothing
  • Forms: stepMismatch, Chrome-like type=email validation (with multiple), readonly fields skip validation, empty action means the document's URL
  • margin, padding, inset and border-* shorthands now expand into longhands
  • style.x = null and setProperty(name, null) now remove the declaration
  • Media queries accept fractional lengths (max-width: 767.98px)
  • Changing a <style>'s text now clears the style cache
  • Un-rendered light DOM (slot fallback with assigned content, unslotted children) is now treated as hidden
  • A closed <details> keeps its loose text out of innerText
  • <a> and <area> URL setters keep userinfo and reject invalid values; better URL port handling
  • navigation.navigate() with a fragment now updates location and the entry URL
  • dataset rejects invalid names and maps a leading capital to data--
  • isEqualNode compares namespace URIs
  • DOMTokenList.forEach sees mutations made by its callback
  • select/selectionchange events are now dispatched asynchronously; eventPhase is AT_TARGET in direct dispatch
  • <dialog>: show() on an open dialog does nothing, close fires asynchronously
  • xhr.responseType = 'document' now parses HTML into an HTMLDocument
  • innerHTML = "" on an <html> element creates <head> and <body>
  • document.fonts.load() no longer fires load events when there are no font faces
  • navigator.appVersion now starts with 5.0
  • Properties moved to the right interfaces (e.g. title on Document); the global's prototype is now Window.prototype
  • new WebSocket(url, ['a', 'a']) throws a SyntaxError
  • A string longer than V8 accepts throws a RangeError instead of aborting
  • import() of a module that threw rejects with the module's exception
  • Inline scripts report errors at their position in the document
  • Timers run on the initial about:blank page
  • Pending timer cap raised from 8192 to 65536

Scripts

  • The parser runs microtasks before preparing a <script>, so a MutationObserver can change its type first
  • Dynamic scripts with async=false run in order; dynamic scripts can't be defer; inline modules run like external ones
  • Already-fetched async scripts now run from a task, after the markup that follows them
  • <script src=""> fires error instead of fetching the page

Cookies / HTTP

  • A non-secure origin can't set or overwrite a Secure cookie (RFC 6265bis)
  • The cookie jar evicts old cookies past Chrome's limits instead of failing the response
  • A cookie with neither a name nor a value is ignored; IP addresses are each their own site
  • The HTTP cache skips Range requests and URLs with userinfo; Vary matching fixed
  • --http-cache-set-cookie=skip|store|strip added (experimental, store and strip need --experimental-features)
  • DNS lookups are shared across connections
  • The robots.txt cache now expires after 24 hours
  • Web Bot Auth: Signature-Agent is the quoted origin, and each signed request has a nonce

CDP

  • File downloads (Browser.setDownloadBehavior), saved to disk or streamed
  • Accessibility domain completed: getRootAXNode, getAXNodeAndAncestors, getChildAXNodes; shadow DOM is now walked in the AX tree
  • Page.setDocumentContent (Puppeteer page.setContent())
  • Performance.getMetrics (Timestamp, JSHeapUsedSize, JSHeapTotalSize)
  • Input.setInterceptDrags and Input.dispatchDragEvent
  • CSS.getComputedStyleForNode
  • DOM.getContentQuads and DOM.getBoxModel for text nodes
  • Page.navigateToHistoryEntry restores a same-document entry in place
  • Fetch.fulfillRequest now stores the response's cookies
  • Network.loadingFinished.encodedDataLength now reports the bytes received
  • An unknown context returns Chrome's error code and message
  • /json/protocol updated

Tools / MCP

  • download tool, streamed to disk
  • pageTools and callPageTool: list and call the page's WebMCP tools
  • classify, acceptCookies and login tools (TypeSafe Jev with TYPESAFE_API_KEY)
  • MCP run tool: run a PandaScript by source or by path
  • MCP stdio: notifications/cancelled stops the in-flight tool call
  • tree: ARIA checked and expanded states
  • interactiveElements reports whether an element is in a fixed or sticky overlay
  • Structured data: microdata
  • A missing required argument is now named in the error; null means unset
  • A backendNodeId whose node left the document is rejected
  • Markdown: empty code spans dropped, no inline markup inside code
  • Redacted dumps keep an empty password field empty

Agent

  • xAI (Grok) provider, XAI_API_KEY
  • LLMD provider and Parallel search (PARALLEL_API_KEY)
  • REPL tool commands take a prompt (/click the add to cart button), recorded with explicit selectors for /save
  • The REPL exits when its terminal goes away
  • Ctrl-C and timeouts now stop a script that loops after an await

WebDriver

  • POST /session/{id}/window

Performance / stability

  • Compiled scripts (classic and modules) are stored in the HTTP cache
  • Single-threaded arena allocator (~10% faster on WPT)
  • Faster V8 ↔ Zig calls (~10%)
  • Faster style matching, selector lists, class and sibling selectors, getTag()
  • Inline transforms no longer drop the cascade's memos
  • Cookie jar stored per site
  • Arenas free blocks they can't keep instead of keeping them in place
  • Response bodies are no longer buffered in the transfer's arena
  • Faster startup on macOS
  • Crash and UAF fixes: call_arena in nested calls, EventSource double abort, document.write, structured-cloned FileList, DataCloneError messages, WebMCP tool errors...
Read more

1.0.2

Choose a tag to compare

@github-actions github-actions released this 23 Oct 09:01
c5f7bb2

Behavior changes

  • JS page errors now log under a new page_error scope at WARN (silence with --log-filter).
  • Each top-level page now has its own session history; a second page no longer shows up in the first page's back/forward.
  • --block-private-networks now blocks more non-routable ranges (CGNAT, benchmarking, multicast, reserved, NAT64).
  • no-cors fetches with a non-safelisted method are now rejected.
  • An unreadable --http-cache-dir database is now discarded instead of exiting.
  • Console values written to the log are now escaped and capped.

New Web APIs

  • Web Crypto: Ed25519, X25519, ECDSA, RSA-PSS, RSASSA-PKCS1-v1_5, wrapKey/unwrapKey + AES-KW; EC and RSA-OAEP import/export
  • WebCodecs, OfflineAudioContext, WebVTT improvements
  • XML document parsing
  • setRangeText() on <input> and <textarea>; textarea.textLength
  • HTMLProgressElement value/max/position; HTMLOptionElement.index; missing table APIs
  • document.hasFocus(); window.outerWidth/outerHeight/screenX/screenY/screenLeft/screenTop
  • :nth-child(An+B of S) and :nth-last-child(An+B of S)
  • PermissionStatus is now an EventTarget; DOMException is now structured-cloneable; ImageData overload
  • Missing global event handlers added to window, document and body

Web API behavior / fixes

  • Element widths are now resolved relative to their parent (block, inline, floats, %, min/max-width, basic flex)
  • Client rects (getBoundingClientRect, getClientRects) are now viewport-relative
  • Mouse events now reach into shadow DOM and iframes
  • Escape now closes the topmost modal dialog
  • Iframes inside a shadow root now load when their host connects
  • replaceWith compliance and cross-document adoption; isEqualNode(null) now returns false
  • insertAdjacentHTML now works on SVG elements
  • Trusted key events now report Chrome's legacy keyCode/which/charCode
  • Text selection offsets now count UTF-16 code units
  • TextDecoder now only strips a BOM for UTF-8/UTF-16
  • form.elements now lists fieldset, object and output
  • Sequence arguments now accept any iterable
  • Better getComputedStyle().transform
  • Fixed CSS nested rule parsing; escapes are now decoded in unquoted attribute selectors
  • Cookies are now sent longest path first, then oldest first
  • 401/407 responses are now delivered as-is when no auth challenge header is present

CDP

  • Fetch.continueRequest interceptResponse is now supported
  • Fetch.continueWithAuth with Default/CancelAuth now delivers the original 401/407, as Chrome does
  • Runtime.exceptionThrown is now emitted for unhandled promise rejections, with the context the exception was thrown in
  • Log.entryAdded is now emitted for resources that fail to load
  • DOM.scrollIntoViewIfNeeded is now supported (previously a no-op)
  • LP.getPageStatus added: page issue summary (JS errors, skipped resources, fetch stats). Also included in fetch output when --json is used
  • Custom ARIA states and focusability are now exposed in the AX tree
  • Non-UTF-8 status text and headers are now reported as strings rather than a byte array
  • Permission overrides are now cleared when a browser context closes

Serve / CLI

  • serve --unix-socket <path> added: CDP over a Unix domain socket
  • --remote-allow-origins added: allow CDP connections that send an Origin header (rejected by default), matching Chrome
  • serve now honors --cookie-jar: the jar is saved when a connection closes. With multiple connections, last write wins
  • fetch --dump structured_data added
  • fetch --markdown-alternate added: follow a page's text/markdown alternate. text/markdown documents are now dumped as-is

Tools

  • markdown tool: alternate option added
  • A failed goto now closes the page
  • Tree tool: links kept inside headings, multi-line names kept on one line

Performance / stability

  • Reworked TaggedOpaque (less memory)
  • The scheduler now runs from a snapshot and no longer runs after every script evaluation
  • Faster forgiving base64 decode
  • UAF fixes: blob navigation, attribute change, file→blob layout; recursive close during load
  • Script rejects no longer run microtasks mid-evaluation

1.0.1

Choose a tag to compare

@github-actions github-actions released this 15 Oct 14:55
99edca4

Behavior changes

  • setImmediate and clearImmediate were removed (deprecated, not part of the web platform).
  • MCP and agent modes now load external stylesheets by default.
  • Max HTTP redirects raised from 10 to 20, matching the Fetch spec.
  • Unsupported protocols are no longer navigated to; javascript: URLs are run instead of navigated to.

New Web APIs

  • Web Locks
  • Compression Streams API
  • RSA-OAEP in Web Crypto (generateKey, importKey, encrypt, decrypt)
  • Custom elements: ElementInternals and form-associated callbacks
  • Request.body and Request.textStream
  • HTMLFormElement.reset, form numeric and named index, form.field
  • HTMLTableElement.rows, HTMLSelectElement.remove(index), select.length setter
  • textarea.type, fieldset.type, output.type; HTMLMeterElement accessors
  • GlobalEventHandlers attributes on Window and Document; document named index
  • Performance secondary buffer; performance.timeOrigin relative to the Unix epoch
  • Console and CSS are now proper namespaces; more missing namespace methods

Forms / input

  • Implicit submit on Enter; improved form submission; GET submissions replace the action's query
  • Fire change when typed text is committed by blur or Enter
  • Ctrl+A selects the whole value in text fields
  • All text edits go through one gated path; better contenteditable detection
  • Single-contact touch for CDP, testdriver and BiDi
  • One WebDriver key table shared by BiDi, testdriver and press
  • Click press/release sequences shared across input paths and matched to Chrome
  • Keydown default actions run only for trusted events
  • Range and color inputs get their default value; input.value reflects to the attribute in default modes
  • Skip inputs with an empty name; :checked applies to options; option text strips and collapses whitespace

Web API behavior / fixes

  • fetch resolves after headers are received; an abort signal aborts a fetch
  • XHR response header compliance; improved data-URL parsing
  • Exceptions from timers, animation frames, on* handlers, observers and microtasks go to reportError
  • on* handler attributes behave like any other event listener
  • document.open resets loaded frame state; several document.close crash fixes
  • Fire popstate on a fragment navigation; history traverses within a document by entry
  • Each Window gets its own History; Location URLs resolve against the calling document
  • Dynamic <base> updates the document base URL
  • iframe reflects and reacts to src; sandbox token queries; iframe removal cleanup
  • replaceChildren adopts nodes from another document
  • Classic scripts are decoded with their charset
  • Timers accept any value; negative delays clamp to zero
  • IntersectionObserver only intersects connected targets
  • Fix custom element upgrade ordering during fragment parsing; undefined custom elements use the HTMLElement prototype

CSS / selectors / rendering

  • Computed style reports initial values and a resolved font-size; padding, margin and border widths default to 0px
  • text-transform applied in innerText and resolved in getComputedStyle
  • revert and revert-layer treated like inherit
  • Decode fetched stylesheets; fix tokenizer exponent and hyphen-escape bugs; external stylesheet cap raised to 4 MiB
  • Hit testing honors pointer-events:none and visibility:hidden
  • Visibility inheritance matches Chromium in styles and the AX tree
  • Hide a [popover] that is not showing
  • Block-level flex and grid containers no longer grow with their items
  • Selectors: :valid/:invalid on every validity constraint, :read-write/:read-only per HTML, case-insensitive attribute values, type selectors on XML and foreign elements, pseudo-elements accepted

CDP (Chrome DevTools Protocol)

  • Pause requests at the Fetch response stage
  • Start of the Debugger domain
  • Emit Runtime.exceptionThrown for uncaught page exceptions
  • Page.navigatedWithinDocument for fragment navigations and traversals; Target.targetInfoChanged on URL/title change
  • Honor Page.navigate referrer/referrerPolicy and client target filters in setAutoAttach
  • Keyboard input reaches the focused element inside an iframe; rawKeyDown dispatches keydown
  • AX tree: depth param, properties written closer to Chrome, accepted without params
  • Accept the cookie fields Chrome accepts, so deleteCookie works

WebDriver / BiDi

  • BiDi browser.getClientWindow
  • WebDriver window close
  • CDP and BiDi cookies built through one Chrome-checked constructor

HTTP / Networking

  • Update libcurl to 8.23.0; enable zstd
  • Check more HTTP caching headers
  • Cookies: keep a session cookie set with expires -1; accept a UTC zone in expires
  • --http-curves to set TLS key exchange groups; --http-debug for libcurl verbose output
  • serve accepts the --advertise-host name as the WebSocket Host

MCP / agent / tools

  • MCP runs each HTTP session on its own thread; idle sessions can be reaped with --http-session-timeout (off by default)
  • Agent: --trace writes one JSON line per step; --trace-results adds tool result text
  • Agent: tells the model today's date, flags 4xx/5xx navigations, drops stale tool results
  • Tree tool: maxBytes budget with [more] markers; iframes listed with their URL
  • Search drops results the browser would block
  • Telemetry records tool calls and the MCP client name

Dump / markdown / PDF

  • PDF output includes the actual text
  • --render-font adds fonts for characters the bundled DejaVu fonts lack (e.g. CJK)
  • More aggressive clutter stripping; <template> contents serialized; fenced code blocks keep their language

CLI

  • completion command prints shell completion for bash, fish and zsh

Performance / memory

  • Return freed malloc memory to the OS when a connection closes (glibc)
  • Cache computed ancestry values and the root node during parse
  • Faster Node.getDocument, owner frame lookup and anchor query matching
  • Backtrack limit on user-supplied regex
  • Limit V8 ArrayBuffer allocation to 4 GB; don't copy ReadableStream chunks into the page arena

Stability fixes

  • Fix UAF in MutationObserver
  • Refuse native calls when terminating; run microtasks only at call depth 0
  • Commit an error document when a root navigation fails
  • Re-implement __clear_cache on Linux arm64 to work around a Zig bug
  • Log the script that ran out of JS heap

Build / CI

  • Upgrade to Zig 0.17
  • Unit tests run across parallel processes (about 3x faster)
  • Nightly builds strip debug symbols

1.0.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 10:12
588f622

Behavior changes

  • getComputedStyle results are now read-only.
  • The "en" language fallback was removed. Language now comes from --locale.
  • Redirects that switch to GET now drop body headers.

WebDriver

  • Classic HTTP WebDriver, built out into a usable driver
  • Session management; navigate; back/forward; execute
  • Element endpoints; input (click, clear, sendKeys); cookie and viewport endpoints
  • Higher default/max HTTP limits

CORS

  • CORS is now enforced by default. Cross-origin fetch/XHR requests that fail a CORS check are blocked. Turn it off with --disable-features cors. The old --experimental-features cors flag is gone.
  • CORS store with an entry limit (--cors-store-entry-limit, default 1000)
  • Fetch referrer policy + CorsGate referrer checking
  • Sec-Fetch-Site and Sec-Fetch-Mode request headers
  • Limit redirects that carry credentials

New Web APIs

  • WebAssembly.compileStreaming and instantiateStreaming
  • Sanitizer API (initial)
  • TextEncoder.encodeInto
  • element.requestFullscreen (mostly a stub)
  • inert property; iframe sandbox setter
  • img srcset support; report natural dimensions for fetched images
  • new Option() and the legacy constructor API
  • DOMTokenList setters; more accurate window.isSecureContext
  • Experimental ServiceWorker (behind --experimental-features serviceworker) with Cache/CacheStorage

Web API behavior / fixes

  • <template> content handling
  • Custom element callbacks may move the element during parse
  • request.clone() clones headers; correct fetch/response handling of null bodies
  • XHR/fetch report the status reason from the server; TypeError on XHR send(SharedArrayBuffer)
  • input.select() no longer throws for email/number; element.focus() only on focusable elements
  • Correct error on a wrong method; guard headers
  • Validate the XML declaration
  • Avoid spurious mutations for unchanged CSS declarations

CSS / rendering

  • Split the style cascade into property groups; honor !important on tracked stylesheet properties
  • Resolve width/height from stylesheet rules; give the document a height and clamp viewport scroll to it
  • Measure wrapped text for an element's content height
  • Resolve scroll containers through the style cascade; unify wheel dispatch; clamp scroll offsets and latch a wheel to one container

CDP (Chrome DevTools Protocol)

  • Optimize Network.getResponseBody
  • DOM.getFrameOwner returns the owning <iframe>; nodes carry a frameId
  • Answer inspector commands on the session that sent them; echo the sessionId in browser-level replies
  • Notify target closure when disposing browser contexts; report the initial about:blank as loaded
  • window.devicePixelRatio from the viewport scale; char text insertion
  • Move a kept isolated-world context onto the navigated origin

HTTP / Networking

  • Improve caching; add x-frame-options support
  • Keep connections healthy: don't re-use connections likely in a bad state
  • Lowercase response headers; clamp the response status range and report the server's reason phrase
  • Add headers to the sync-request path
  • Accept Netscape cookie format in --cookie; report invalid same-site over CDP
  • Generate an appropriate error on a bot challenge

Agent / tools

  • Add OpenRouter provider; lightpanda run - reads a script from stdin
  • Report the HTTP status of a navigation; wait for networkidle after an action-triggered navigation
  • findElement matches names by /regex/
  • MCP carries the navigation outcome as structuredContent
  • REPL output fixes and simpler command dispatch

CLI / ops

  • Report usage errors once, accept -h, show tips only on a terminal; scale the "did you mean" distance with input length
  • Respect NO_COLOR and disable colors when stderr is not a tty
  • Per-page context logs; many warn/err logs downgraded to debug
  • Log the stalled page and JS stack on watchdog termination
  • Record Linux fatal signals without blocking on stderr

Dependencies

  • V8 updated to 15.5.35.13
  • BoringSSL, nghttp2 1.70.0, PCRE2 10.49, refreshed public suffix list

Performance / memory

  • Replace the slab allocator; set M_MMAP_THRESHOLD to 128K on Linux
  • Convert recursive walks to iterative: XPath, SemanticTree/AXNode, markdown, screenshot, dump
  • Share one PCRE2 wrapper across the regex paths
  • Faster V8 background-job scheduling and task wakeup
  • Track and free abandoned html5ever parsers; drop the allocation for the default sanitizer

Stability fixes

  • Crash fixes: node cycles when the parser reparents moved nodes, a scrolling stack overflow, a double-free in IndexedDB, a rare import crash
  • Stop load events on a document superseded by navigation
  • V8 always detaches the global

0.4.1

Choose a tag to compare

@github-actions github-actions released this 15 Sep 13:09
614c164

CORS (experimental)

CORS is off by default. Enable it with --experimental-features cors.

  • CORS implementation: obey cross-origin checks on fetch/XHR instead of allowing them unconditionally
  • Origin header + request header validation
  • XHR changes for the CORS WPT tests

IndexedDB

  • WPT conformance pass
  • setName on IDBObjectStore and IDBIndex
  • nextunique / prevunique cursor directions
  • Keep the upgradeneeded event alive past dispatch; better error handling
  • Fix use-after-free reading txn._db after releaseRef frees it

New Web APIs

  • CountQueuingStrategy and ByteLengthQueuingStrategy
  • resource-timing; Performance is now an EventTarget
  • window.stop()
  • img.decode()
  • navigator.sendBeacon returns true
  • Headers.getSetCookie, customElements.getName, Element.part
  • HTMLInputElement valueAsNumber, valueAsDate, stepUp/stepDown, showPicker
  • SVGGraphicsElement.getCTM and getScreenCTM
  • canvas measureText and the drawing methods chart libraries probe
  • matchMedia change events and real addListener/removeListener
  • Reflect HTMLElement.contentEditable
  • Basic support for CSS custom properties

Forms / input

  • Text entry: move the cursor on caret keys and to the end on value set; clamp selections against the current value
  • Trusted beforeinput is cancelable
  • A disabled fieldset disables its controls' activation and validation
  • option.selected = true deselects its siblings in a single select
  • Fix select value assignment with no matching option

Custom elements

  • Upgrade autonomous custom-element clones in place
  • Don't upgrade custom elements in a windowless document
  • Skip null nodes when a create callback fails

CSS / rendering / performance

  • Memoize StyleManager visibility per element
  • Append inserted rules to the buckets instead of rebuilding
  • Materialize inline styles where layout reads them
  • --strip-mode gains shell and clutter options
  • Faster nth-* selectors, class matching, attribute lookup, and pseudo-class parsing

Ad blocker

  • Run /regex/ filters with PCRE2
  • Request engine

Protocols

  • WebDriver: HTTP WebDriver session management
  • CDP: DOM.focus; honor runImmediately, screenWidth/screenHeight, browserContextId
  • CDP: request interception patterns; a context per isolated world per frame
  • CDP: wheel events scroll the viewport unless over a scroll container
  • CDP: fix message lifetimes and console argument serialization; remove a terminate/disconnect race

HTTP / Networking

  • Keep connections alive across navigations; better redirect handling; timeout tweaks
  • Enable CURLOPT_PIPEWAIT on every easy handle
  • Update curl to 8.22.0
  • Cookies: accept Secure and __Host- on loopback origins; apply the SameSite=Lax exception only on safe methods; compute site-for-cookies from a frame's ancestor chain
  • Guard WebSocket message-length parsing against integer overflow
  • Fix drive-letter lookalike URL segments on non-file schemes

CLI / tools

  • --locale and --timezone, with language signals derived from one value
  • Suggest the closest flag or command on a typo
  • note log level can be silenced; log CLI tips
  • Scroll the nearest scroll container from the scroll tool
  • Click dispatches a full pointer/mouse sequence, not a bare click event
  • Agent: route REPL output per tool and align page tables of any size

Stability / memory

  • Crash fixes: TryCatch copied by value, history.state / Navigation.currentEntry, V8 re-entry on an unhandled promise
  • Fix Notification use-after-free
  • Disconnect runaway intersection observers; raise timer caps
  • Leak fixes: robot store, JS terminated during MutationObserver/IntersectionObserver delivery, cloned HTTP responses, V8 backing store
  • V8: notify isolate shutdown, restore the initial heap limit, avoid rearming heap termination during teardown
  • Disarm the watchdog before protocol teardown

0.4.0

Choose a tag to compare

@github-actions github-actions released this 31 Aug 16:21
3bab59c

Breaking changes

Iframes and workers no longer load by default. This makes resource loading
consistent: nothing loads unless you ask for it.

  • Restore the old behavior with --load-resources iframe and --load-resources worker.
  • External stylesheets stay off by default too: use --load-resources stylesheet.

Deprecated flags (they still work, but now print a warning):

  • --disable_subframes → iframes are off by default; use --load-resources iframe to turn them on.
  • --disable_workers → workers are off by default; use --load-resources worker to turn them on.
  • --enable_external_stylesheets → use --load-resources stylesheet.
  • --log-filter-scopes → renamed to --log-filter.
  • Comma-separated list values (e.g. --adblock-lists a,b) → pass the option multiple times instead (--adblock-lists a --adblock-lists b). Affects --strip-mode, --adblock-lists, --block-cidrs, --block-urls.

Protocols

  • WebDriver BiDi support (with a [classic] WebDriver start); protocol selection via CLI; both CDP and BiDi can be served on the same port
  • WebDriver: better keyboard and mouse handling

New Web APIs

  • URLPattern
  • navigator.geolocation + Emulation.setGeolocationOverride
  • WorkerNavigator
  • canvas.toDataURL / toBlob (returns a 1x1 PNG)
  • HTMLElement.draggable IDL attribute
  • Many element getters/setters added and reworked; improved XPath support

New features

  • Screenshot support (--dump png, screenshot tool): renders the page's markdown
  • PDF support (--dump pdf, Page.printToPDF): renders the page's markdown
  • Ad blocker: EasyList parsing (initial)
  • --load-resources with an image parameter (mimics image fetches)
  • --http-header to send headers on every HTTP request
  • --http-version 1.1 / auto flag
  • Optional HTTP rate limit
  • exa search engine support; Keenable engine with a keyless option

Web API behavior / fixes

  • searchParams keeps a linked URL in sync; URLSearchParams iterator and percent-escape fixes
  • FormData encoding
  • FileReader is now asynchronous with proper text decoding
  • Blob / File conformance; correct content-type for blobs; application/octet-stream MIME
  • XHR: sync requests, Blob response type
  • Edit-key support in input/textarea; improved hover events
  • Prevent click() from triggering click()
  • Re-parse element.style when the style attribute changes
  • Promise-returning operations reject (not throw) on a bad receiver
  • Reject XML documents that are not well-formed
  • DOMParser captures the owning frame for the correct URL
  • Handle immediate meta refresh navigation

Rendering / CSS

  • clientHeight/clientWidth return the viewport for the body
  • device-width / device-height media features
  • Compare visibility and CSS keyword values case-insensitively
  • Reuse storage for updated property values
  • Markdown dump separates flex and grid items; skips hidden elements

HTTP / Networking

  • Strip Authorization on cross-origin redirects
  • Send Sec-Ch-Ua-Full-Version-List header
  • Better robots.txt status handling
  • Fix WebSocket data send on a small buffer
  • Guarantee a single-outcome callback contract for Transfer

CDP (Chrome DevTools Protocol)

  • Answer unknown methods with -32601, like Chrome
  • Enforce Network.enable limits
  • Accept the emulation and setup calls drivers send at context creation
  • Pass more Runtime methods through to the inspector; fill all DOM.getBoxModel quads
  • obeyRobots added to LP.configureCDP

MCP / tools

  • Negotiate the protocol version on initialize; enforce HTTP conditions; close the connection after keep_alive=false
  • Add title and annotations to tools/list; logfmt is now a config default
  • Add maxBytes and strip to the html tool; --selector / --max-bytes for fetch
  • Interactive/links/markdown: skip hidden elements, take roles and names from the AXNode, dedup links by href

Agent

  • List all agent providers and gateway examples in the README
  • Fix agent history in JS mode

Stability / memory

  • Disconnect runaway mutation observers; drop async module completions after termination
  • Fix double-release and other edge-case memory issues
  • Fix UAF when a PerformanceObserver disconnects in its callback
  • Fix arena leak on page shutdown with live animations
  • Several crash fixes: null deref on cross-context ReadableStream, unsafe element cast, label click
  • Node.flags for lookup short-circuit (perf)

Build

  • Simplify build.zig; pin dev_fast to the host glibc; use an orderfile on Linux CI builds
  • -Ddev_fast speeds up Linux debug builds: shared V8 + Zig's self-hosted backend (instead of LLVM)

0.3.7

Choose a tag to compare

@github-actions github-actions released this 16 Aug 08:44
5b0835f

New Web APIs

  • Scheduler (window and worker)
  • Full SVG DOM: geometry, structural elements, text DOM, resource elements, live collections, live scalar values
  • Element/ShadowRoot getHTML
  • Request#formData and Response#formData
  • URL.isSameOrigin
  • iframe srcdoc support
  • Element.webkitMatchesSelector (alias of matches)

Web API behavior / fixes

  • Custom element creation and reactions now pierce the Shadow DOM
  • Report custom-element errors via window.reportError
  • Iterators given to types with an indexed property
  • Track node relocation across shadow roots; better events from a ShadowRoot
  • getComputedStyle improvements with pseudo-elements
  • Console conformance improvements
  • Forms: include optgroup children in a select's list of options
  • Fix script setAttribute src; fix script load/error events
  • Increase max timer count
  • Collection bug fixes; keep ascending live-collection reads linear
  • Fix potential UAF when an option's value is set programmatically

Rendering / CSS

  • CSS width/height are now children-content aware
  • Fall back to contentWidth when clientWidth is not explicit

HTTP / Networking

  • Enforce User-Agent and Sec-Ch-Ua header restrictions; improve header overwrite/enforcement
  • Rework how HttpClient headers work
  • Start of a correct referrer policy; recalculate Referer on each redirect
  • Single-flight request coalescing
  • fetch defaults --wait-until to load
  • Redirect even on a missing close_notify
  • Buffer a closed ReadableStream body for a fetch POST
  • Rework Connection.upgrade with header_parser

Cache

  • SQLite cache backend
  • HTTP cache entry limit; cache maintenance moved to startup and browser.deinit

CDP (Chrome DevTools Protocol)

  • Origin and additional Host header validation for CDP connections
  • Fall back to loopback when the /json/version bind host is a wildcard
  • Add request post data; send request-information notifications on redirect
  • Add /json/protocol endpoint
  • Split active_conns from active_threads
  • Avoid creating duplicate isolated worlds
  • Fix Playwright redirect routing chains and auxiliary CDP session interception
  • Mask URL fields from crash reports; remove Target.sendMessageToTarget session_id assertion

Agent / tools

  • Support subscription auth via Codex
  • Add Brave search + /searchEngine metacommand
  • Treat backendNodeId 0 as omitted; add recovery hints to errors; surface unknown tool names in-band
  • Reduce tool output cap to 64KB (except for extract)
  • goto: optional waitUntil + DOMContentLoaded-gated selector waits

Memory efficiency

  • Switch Node, Element, and EventTarget _type fields to a bare tag
  • Remove the _proto field from most Node types
  • Optimize the node child list; rework String to be align(8)
  • Improve ArenaPool usage; move more call_arenas to local_arenas
  • Prefer ensureTotalCapacityPrecise; improve blob memory efficiency
  • Reduce V8 memory-pressure notifications; add JS memory gauge and arena allocation metrics

Stability fixes

  • Capture and propagate ExecutionTerminated; clear the V8 terminating state after a terminated microtask checkpoint
  • Fix page double-free on navigate failure (UAF)
  • Propagate worker-thread failures to the exit code

Build / dev

  • -dev_fast build flag; on by default on Linux; support for a pre-built shared library
  • Replace @cImport with build-system translateC
  • Replace the deprecated MemoryPool with the managed memory pool
  • Rework the scheduler; runner advances idle notifications outside the wait-condition loop
  • Add lp.IS_DEBUG / lp.IS_TEST; more consistent clock/timestamp use

0.3.6

Choose a tag to compare

@github-actions github-actions released this 25 Jul 14:37
f72cba8

New Web APIs

  • Live SVG scalar values; SVG prototype chains derived
  • Float16Array exposed (V8)
  • Dispose event for NavigationHistoryEntry

Web API behavior / fixes

  • XMLHttpRequest uses the XML parser for XML content-type responses; fix XHR response handling
  • FormData append blob fix
  • Derive scrollWidth/scrollHeight from element content
  • Improved ResizeObserver (behavior + performance)
  • On script error, trigger window.reportError; fix segfault on window.reportError
  • Forms: close the ancestor dialog on method=dialog submission
  • Blob shared per origin

CSS / rendering

  • Respect @layer priority in the cascade

CDP (Chrome DevTools Protocol)

  • Complete Network events and include worker requests
  • Per-CDP control for Network.setCacheDisabled
  • Expose child-frame metadata; preserve node IDs across child-frame navigation
  • Ignore duplicate enable calls
  • Sanitize non-UTF-8 values
  • Improved dead-peer detection

HTTP / Networking

  • Support loading custom CAs (--ca-cert, --ca-path)
  • Cookie store; cookie improvements
  • Request blocking fixes
  • Improved robots.txt correctness
  • Never cache the top-level root page
  • iframe loads about:blank on an un-parsable URL
  • WebSocket: use a posix shim for shutdown; improved WPT results and reduced flakiness

Performance / memory

  • Avoid a tight tick loop before pages load; don't poll when a message is dispatched
  • Improve Runner tick signaling on macrotask-only waits
  • Reduce GC hint frequency
  • Inline finalizer callbacks
  • Set a per-browser memory limit (instead of per-process) for WPT

Stability fixes

  • Poll the terminate state during large HTML parsing; interrupt nested script waits during teardown
  • Make refcounts u32 to prevent overflow
  • Fix CLI help pager broken by the failing allocator

CLI / Ops

  • New run command for script replay
  • Route script console output through an optional sink

Build / CI

  • Zig 0.16 upgrade; Nix flake updated for Zig 0.16
  • Key the prebuilt-V8 cache on the zig-v8 tag
  • Pin GitHub Actions to commit SHAs; add plumber to watch workflow security