FirefoxHarnessConfig
@openpolyfill/firefox-addon-playwright-harness
@openpolyfill/firefox-addon-playwright-harness / FirefoxHarnessConfig
Interface: FirefoxHarnessConfig
Defined in: src/types.ts:24
Properties
args?
optionalargs?:string[]
Defined in: src/types.ts:29
contextScope?
optionalcontextScope?:"worker"|"test"
Defined in: src/types.ts:40
Context lifetime. The default is one Firefox context per test.
extensionPaths
extensionPaths:
string[]
Defined in: src/types.ts:26
Initial extension directories or XPIs; use an empty array for runtime-only installs.
firefoxUserPrefs?
optionalfirefoxUserPrefs?:Record<string,string|number|boolean>
Defined in: src/types.ts:28
headless?
optionalheadless?:boolean
Defined in: src/types.ts:27
launchOptions?
optionallaunchOptions?:Record<string,unknown>
Defined in: src/types.ts:30
localMappings?
optionallocalMappings?:Record<string,string>
Defined in: src/types.ts:37
Hostname-to-directory mappings served by Firefox 153+ DevTools Local Mode.
nativeMessagingHosts?
optionalnativeMessagingHosts?:Record<string,NativeMessagingHostConfig>
Defined in: src/types.ts:33
Native messaging hosts isolated to this Firefox instance on Linux/macOS.
nativeMessagingObservers?
optionalnativeMessagingObservers?:Record<string,NativeMessagingObserverConfig>
Defined in: src/types.ts:35
Per-host opt-in for observing and optionally blocking/mutating native stdio.
patchFirefox?
optionalpatchFirefox?:boolean
Defined in: src/types.ts:38
postInstallPages?
optionalpostInstallPages?:UrlMatcher[]
Defined in: src/types.ts:31
resolveProjectOptions?
optionalresolveProjectOptions?: (projectUse) =>FirefoxHarnessProjectOptions
Defined in: src/types.ts:45
Maps Playwright project settings to Firefox launch options. Called once per context, within the selected fixture scope.
Parameters
projectUse
Record<string, unknown>