Skip to content

v1.6.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 12:40
· 28 commits to main since this release

Added

  • browser_pdf paper size and margins: paper_width, paper_height,
    margin_top, margin_right, margin_bottom, margin_left (inches),
    prefer_css_page_size, prepare_lazy_content, and timeout_ms. Defaults are
    US Letter with 1 cm margins, matching Chromium. When a page declares a CSS
    @page size and prefer_css_page_size is set, it takes precedence over the
    explicit paper dimensions; those dimensions remain the fallback without a
    CSS page size.
  • Rust callers can use PdfExportOptions with
    BrowserSession::print_to_pdf_with_options; the earlier PdfOptions struct
    and BrowserSession::print_to_pdf method remain available with their original
    fields and behavior.
  • BrowserSession::font_status resolves document.fonts.ready and reports the
    settled status.
  • Await-promise CDP primitives evaluate_awaiting_promise and
    call_function_on_awaiting_promise, plus engine-neutral
    evaluate_awaiting_promise and await_fonts_ready on the BrowserDriver
    seam.

Fixed

  • PDF export now attempts to restore images and CSS webfonts blocked during
    page load. browser_pdf previously called Page.printToPDF with no
    preparation, so an agent-default export embedded no blocked images and
    never waited for webfonts. Screenshot and PDF share a preparation path that
    lifts the relevant blocklist, re-requests blocked images and pending CSS
    webfonts, then waits up to timeout_ms for network, image, and font
    readiness. Integration coverage includes a cross-origin stylesheet with a
    signed font URL. Recovery is best-effort: a font pattern the stylesheet
    recovery cannot identify, or an unavailable resource, can leave fallback
    content in the capture. Only the readiness polling phase is bounded; resource
    and lazy-content preparation can add time before that budget begins. If the
    polling deadline expires, capture proceeds on a best-effort basis.
  • Font recovery reprocesses a matching stylesheet through CDP while preserving
    its original URLs. This is covered for a cross-origin stylesheet and signed
    font URL; it does not guarantee every font-loading pattern on every page.
  • PDF export accepts documents without an HTML body and keeps the original
    viewport scroll position after lazy-content preparation.
  • Screenshots also wait for font readiness; they previously checked network and
    images only.
  • A recoverable preparation error restores the configured resource policy
    without closing the browser session.
  • The MCP tools/call deadline is 120 seconds for execution. When a screenshot
    or PDF task is aborted at that deadline, the recovery path waits up to 16
    seconds for deferred resource-policy restoration before replying. If
    restoration fails, it closes the affected isolated context or resets the
    shared browser; that cleanup can add more time beyond the execution deadline.
  • flashbrowse doctor now launches and shuts down a browser session before
    requiring a successful --version probe. The previous check accepted an
    executable file even when Chrome could not start because a shared library was
    missing; the launch error now makes the Chromium check fail.
  • Windows flashbrowse doctor now converts the CIM available-memory value from
    KiB to MiB once, so the available-memory check reports the expected unit.

Changed

  • Generalized the screenshot policy-restore guard into FaithfulRenderGuard,
    shared by screenshot and PDF export.

Full Changelog: v1.5.1...v1.6.0