diff --git a/src/browser.ts b/src/browser.ts index 5c5876f..1780460 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -11,8 +11,7 @@ import { isHtmlContentType, isLocalUrl, isValidUrl, - removeHash, - wait + removeHash } from './util.js'; type Styles = Record; @@ -27,7 +26,8 @@ export async function createBrowser(): Promise<{ } export async function visitPage(browser: Browser, url: string) { - const page = await browser.newPage(); + // Bypass CSP: validateAnimationStyles injects an inline