Behavior changes
- PandaScript:
page.evaluate()now returns a promise, likepage.goto(). Saved scripts needawaitin front of everypage.evaluate(...). Several evaluates can now run at once withPromise.all. --v8-gc-hint-floor-mbis 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.0keeps V8's default. classify,acceptCookiesandlogincan use Gemini, but only withLIGHTPANDA_DECISION_PROVIDER=gemini. TypeSafe stays the default.agent --savereplays 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-Lengthor chunked body now fails, instead of resolving as a complete 200. history.pushState/replaceStateto a URL of another origin throws aSecurityError.- Responses served from the HTTP cache now go through CORS checks.
document.currentScriptisnullwhile a module runs.- The
gototimeout (script API and MCP tool) now bounds the navigation wait, even while a parser-blocking script is loading. - Mouse hit testing skips
inertsubtrees.
Layout
- More realistic
topandheight, with awareness of positioned boxes, tables and text display: gridsupportem,remand basiccalc()lengths;min-heightandmax-height- Text wrapping uses the computed width
- Hit testing: positioned boxes are above the normal flow, negative
z-indexbelow 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()andvalues()XMLHttpRequest.uploadprogress eventsAttr.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 toCLOSINGand queues acloseevent Requestkeeps the case of methods other than the six standard onesfetchwithredirect: 'manual'keeps the URL- The
formdataevent gets its own copy of theFormData ResizeObserverstarts 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, andpage.close()on the startup page no longer hangs DOM.getBoxModelreturns Chrome's error for an element underdisplay: noneAccessibility.getFullAXTreereports the selected option's label as a combobox valueLP.dumpwithFramesoption: include iframe content in the HTML dump- Crash fix in request interception on an aborted transfer
WebDriver
/alertcommands answerno such alert- Element
/displayed,/computedroleand/computedlabel - Shadow root endpoints:
/element/{id}/shadow,/shadow/{id}/element,/shadow/{id}/elements - Sessions accept
acceptInsecureCerts
BiDi
script.addPreloadScriptandscript.removePreloadScript(noargumentsyet)
Tools / MCP / Agent
lightpanda mcp --tools goto,tree,...exposes only the named tools;--list-toolsprints 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 runandagentnow apply--cookieand--cookie-jar- Markdown: definition list terms and details go on their own lines
Performance / memory
- Stylesheets with
--load-resources stylesheetare preloaded in parallel - Smaller CSS DOM: rules are created only when JS reads them,
@media/@layer/@supportsparsed once - Smaller nodes and elements (a
divgoes 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