Repository navigation
v1.6.0
Added
browser_pdfpaper size and margins:paper_width,paper_height,
margin_top,margin_right,margin_bottom,margin_left(inches),
prefer_css_page_size,prepare_lazy_content, andtimeout_ms. Defaults are
US Letter with 1 cm margins, matching Chromium. When a page declares a CSS
@pagesize andprefer_css_page_sizeis set, it takes precedence over the
explicit paper dimensions; those dimensions remain the fallback without a
CSS page size.- Rust callers can use
PdfExportOptionswith
BrowserSession::print_to_pdf_with_options; the earlierPdfOptionsstruct
andBrowserSession::print_to_pdfmethod remain available with their original
fields and behavior. BrowserSession::font_statusresolvesdocument.fonts.readyand reports the
settled status.- Await-promise CDP primitives
evaluate_awaiting_promiseand
call_function_on_awaiting_promise, plus engine-neutral
evaluate_awaiting_promiseandawait_fonts_readyon theBrowserDriver
seam.
Fixed
- PDF export now attempts to restore images and CSS webfonts blocked during
page load.browser_pdfpreviously calledPage.printToPDFwith no
preparation, so anagent-defaultexport 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 totimeout_msfor 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/calldeadline 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 doctornow launches and shuts down a browser session before
requiring a successful--versionprobe. 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 doctornow 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