mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-29 16:10:04 +00:00
Add `Page.reload` to the CDP Page domain dispatch. Reuses the existing `page.navigate()` path with `NavigationKind.reload`, matching what `Location.reload` already does for the JS `location.reload()` API. Accepts the standard CDP params (`ignoreCache`, `scriptToEvaluateOnLoad`) per the Chrome DevTools Protocol spec. The current page URL is copied to the stack before `replacePage()` to avoid a use-after-free when the old page's arena is freed. This unblocks CDP clients (Puppeteer, capybara-lightpanda, etc.) that call `Page.reload` and currently get `UnknownMethod`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>