Skip to content

Releases

1.0.7

Choose a tag to compare

@github-actions github-actions released this 04 Dec 10:39
a2814cb

Behavior changes

  • V8 now compiles a function with Maglev after about 2000 calls instead of 400. On real sites this cuts CPU load by about 10% with no change to load time. --v8-maglev-invocation-count sets it back.
  • CSS custom properties (var(--x)) are resolved when a property is read, so Tailwind 4 and other custom-property-heavy sites get the right display, visibility and layout
  • Media queries in the range form ((width >= 40rem), (400px <= width < 800px)) now match. Tailwind 4 breakpoints such as sm:block used to never apply.
  • @container size queries apply in the cascade
  • A <link rel="stylesheet"> whose media attribute doesn't match is not applied (it is still loaded and listed in document.styleSheets)
  • IntersectionObserver and ResizeObserver use the real layout geometry, keep observing after the first callback, and run together in one rendering task
  • Cross-origin windows follow the spec: no prototype, a SecurityError for properties outside the allow list, and a location where only href (set) and replace() work. frameElement is null across origins.
  • --obey-robots: when robots.txt can't be fetched (401, 403, 5xx, unexpected status, unparsable 200), the page is still blocked but the error is now RobotsUnreachable instead of RobotsBlocked
  • agent: the default Gemini model is now gemini-4-hydrogen (was gemini-3.8-flash)

Serve / CLI

  • --experimental-features webgl: getContext('webgl' | 'experimental-webgl' | 'webgl2') returns a WebGL context that draws nothing, instead of null. Renderers with no fallback, such as Compose for Web, then start. Without the flag nothing changes.
  • --v8-maglev-invocation-count <INT> (default 2000)
  • fetch --json has a terminated field, true when --terminate-ms stopped the page

Layout

  • Vertical margins
  • Images keep their aspect ratio when CSS sets only one side
  • white-space: pre, pre-wrap, pre-line and break-spaces break lines on \n
  • A flex-basis of 0 is honored when sharing out row width
  • Absolutely positioned boxes count in the document scroll range, so window.scrollTo() can reach them
  • innerText line breaks depend on each element's display (and on float and position)
  • text-transform: capitalize
  • A broken image's alt text stays inside the image box in screenshots

New Web APIs

  • document.execCommand: copy, cut, bold, italic, underline and strikeThrough, with their state and value queries
  • document.timeline.currentTime (fixes a hydration crash on some React / Next.js sites)
  • HTMLDataListElement.options
  • SVGElement.tabIndex, autofocus and nonce; WorkerGlobalScope.origin
  • Customized built-in elements can be created with new
  • Named frame lookup: an iframe's name attribute sets its window.name, and window[name] / window.frames[name] find it, across origins too (Stripe Elements now mount)
  • CSS parsing: lab(), lch(), oklab(), oklch(), color(), color-mix(), relative colors and position-area

Web API behavior / fixes

  • :modal matches a dialog opened with showModal()
  • Clicking an indeterminate checkbox clears indeterminate
  • XHR responseText drops a leading UTF-8 BOM and is decoded with the response charset (or the overrideMimeType one)
  • Blob content types from XHR, Response and Request are parsed
  • Request body methods read a stream body as it arrives, like Response
  • FormData.delete() and set() keep the order of entries
  • Deferred module scripts fetch their imports before running, so they keep their place in document order
  • ResizeObserver respects the box option and fires on content changes
  • [SameObject] collections return the same object every time
  • A textarea's default display is inline-block
  • A WAV source with no samples has a duration of 0
  • :nth-child() and related selectors don't overflow on large coefficients
  • IndexedDB checks that a transaction is active before checking that it is read-only
  • A custom element callback that creates a cycle while reparenting no longer loops forever
  • Crash fixes: an event target (WebSocket, XHR, ...) is kept alive while one of its events is, and a frame torn down with a navigation still queued is no longer freed twice
  • Objects created in an iframe or popup that has navigated are safe to use: their calls now fail or are ignored, as in Chrome, instead of reaching the old document

CDP

  • Input.dispatchMouseEvent passes modifiers to the DOM events
  • Input.dispatchKeyEvent passes autoRepeat to KeyboardEvent.repeat
  • Network.getResponseBody returns non-UTF-8 text bodies as UTF-8 text instead of base64
  • Browser.grantPermissions, setPermission and resetPermissions reject an unknown browserContextId
  • The geolocation override is cleared when the browser context closes
  • CORS: after Fetch.continueRequest with new headers, the preflight is decided on the page's original headers

BiDi

  • network module: beforeRequestSent, responseStarted, responseCompleted and fetchError events
  • network.addIntercept, removeIntercept, continueRequest, failRequest and provideResponse

WebDriver

  • Get Element Text includes the text of a visible textarea

Tools / MCP

  • search results tell which engine answered, in _meta (io.lightpanda/searchEngine)

Packaging

  • apt.lightpanda.io is updated automatically with each release

Performance / memory

  • V8 Fast API for simple calls and field getters
  • Markdown dumps are faster and use less memory (link resolution, and CDP writes the result straight into the reply)
  • Style matching: rules checked in reverse, a jump over rules that share a left part, a bitset of tracked properties, and fewer layout cache clears on class and left/right changes
  • IntersectionObserver.observe() and unobserve() use a map (Airbnb observes hundreds of elements per second)
  • Less memory: WebGL interfaces are created only when used, selector attributes are boxed (about 4MB less peak RSS on cnn.com), and freed style slots are reused

1.0.7-rc1

1.0.7-rc1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 07:50
a2814cb
Merge pull request #4903 from lightpanda-io/orderfile-regen

orderfile: regenerate the hot-code profile

1.0.6

Choose a tag to compare

@github-actions github-actions released this 27 Nov 11:58
240f6b8

Behavior changes

  • Screenshots now use the layout engine: Page.captureScreenshot, BiDi screenshots and fetch --dump png draw boxes where getBoundingClientRect puts them. --png-mode reader gives the old one-column text rendering. The agent's /screenshot keeps reader by default (mode= to change it). PDF is always reader.
  • Page.getLayoutMetrics now comes from the layout engine, and the root container is as wide as the viewport instead of a fixed 1920px.
  • CORS: a * in Access-Control-Allow-Headers now covers Authorization, as every browser does.
  • A response with no declared charset that is clearly not UTF-8 is decoded as windows-1252.
  • CDP: DOM, CSS, Accessibility and Input commands (other than enable/disable) now fail on the startup placeholder target.

Serve / CLI

  • --cdp-allow-timezone-override: lets Emulation.setTimezoneOverride change the time zone used by Date and Intl. The zone is shared by the whole process. Without the flag, the command is accepted and ignored with a warning
  • --png-mode layout|reader for fetch --dump png
  • agent --temperature <FLOAT>

Layout

  • Padding and box-sizing
  • Margins move boxes horizontally; margin: 0 auto centers, margin-left: auto pushes right
  • gap, row-gap and column-gap in flex layouts; text between flex items counts as an item
  • bottom sizes a fixed or absolute box
  • Every z-index value is used for hit testing
  • html and body take their declared height (height: 100%); canvas and video without a size are 300×150
  • Every display value is tracked, for layout and getComputedStyle

New Web APIs

  • navigator.clipboard.readText() and writeText() (a per-session buffer, never the system clipboard; secure contexts only)
  • HTMLMediaElement timeline: duration, a currentTime that advances while playing, seeking, ended, loop and the matching events (nothing is decoded or played)
  • ReadableStreamDefaultReader.closed
  • OffscreenCanvas is an EventTarget (Flutter web apps now start)

Web API behavior / fixes

  • CSS rules inside an @supports block are applied when the condition holds
  • Streams: pull() waits for start() and for its own previous call, and runs again when a read waits (fixes Next.js 16 prefetch streams); cancel() handles a returned promise, and both tee() branches share one cancel promise
  • XML parsing keeps namespace declarations (xmlns, xmlns:b) and creates CDATASection nodes

CDP

  • Emulation.setTimezoneOverride applies the zone (with --cdp-allow-timezone-override) and rejects unknown zone ids
  • LP.detectForms includeValidation option: returns each field's validation message

BiDi

  • script.addPreloadScript
  • script.getRealms
  • browsingContext.captureScreenshot
  • browsingContext.handleUserPrompt, and a new lp.handleUserPrompt, like CDP's LP.handleJavaScriptDialog

Tools / MCP

  • detectForms includeValidation option: returns each field's validation message, so an agent can read why a form was rejected

Performance / memory

  • Startup no longer loads every CA certificate twice (about 30% of a simple fetch)
  • Semantic tree dumps register far fewer nodes (HTML spec: 672k → 314k)
  • getBoundingClientRect and other DOMRect returns skip the identity map
  • Less memory for the identity map, cloned attributes, inline scripts, selectors, node lists and PNG rendering (drawn 128 rows at a time)
  • Faster style matching: better :where() bucketing, an ancestor bloom filter, and selectors that can never match are dropped
  • A class change that can't move a box no longer clears the layout cache

1.0.6-rc2

1.0.6-rc2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Nov 12:16
240f6b8
Merge pull request #4773 from lightpanda-io/orderfile-regen

1.0.6-rc1

1.0.6-rc1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Nov 10:58
ac13770
Merge pull request #4444 from ZedingZhang/fix/domparser-xml-namespaceâ€Ķ

1.0.5

Choose a tag to compare

@github-actions github-actions released this 20 Nov 14:02
8f220d5

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 LIGHTPANDA_DECISION_PROVIDER=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

1.0.5-rc2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 14:19
8f220d5
Merge pull request #4717 from lightpanda-io/orderfile-regen

orderfile: regenerate the hot-code profile

1.0.5-rc1

1.0.5-rc1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 10:22
f08ae4d
Merge pull request #4699 from lightpanda-io/script-async-evaluate

script: make page.evaluate return a promise

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 &nbsp;, 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