Safety Policies

Safety policies control how restricted the browser session is. All policies use temporary isolated profiles so no data persists between runs.

Policy comparison

SettingStrictBalancedDiagnostic
ProfileTemporaryTemporaryTemporary
PermissionsAll blockedSensitive blockedMinimal blocking
DownloadsDisabledQuarantinedAllowed
PopupsBlockedCapturedAllowed
JavaScriptEnabledEnabledEnabled
Third-party cookiesBlockedDefaultDefault
Use caseSuspicious linksGeneral inspectionQA testing

Strict

Maximum isolation for investigating untrusted or suspicious URLs. All sensitive permissions are blocked, downloads are disabled entirely, and third-party cookies are restricted. Use this when you want to observe what a page does without giving it any capabilities.

Balanced

Sensible defaults for routine URL inspection. Sensitive permissions (camera, microphone, geolocation) are blocked, but downloads are quarantined rather than disabled -- they are saved to the run artifact folder for later inspection. Suitable for most use cases.

Diagnostic

Fewer restrictions for compatibility testing and QA work. Downloads are allowed, popups are permitted, and most permissions use browser defaults. Still uses a temporary profile for isolation. Use this when testing page functionality across browsers.

Implementation

Policies are applied through Playwright browser context options: