mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: fix serviceWorkers formatting (#14845)
This commit is contained in:
parent
88664c39c9
commit
61536098be
@ -644,10 +644,10 @@ See [Locator] to learn more about the strict mode.
|
||||
## context-option-service-worker-policy
|
||||
- `serviceWorkers` <[ServiceWorkerPolicy]<"allow"|"block">>
|
||||
|
||||
* `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered by sites.
|
||||
* `"block"`: Playwright will block all registration of Service Workers.
|
||||
Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||
* `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
|
||||
* `'block'`: Playwright will block all registration of Service Workers.
|
||||
|
||||
Defaults to `"allow"`.
|
||||
|
||||
## select-options-values
|
||||
* langs: java, js, csharp
|
||||
|
32
packages/playwright-core/types/types.d.ts
vendored
32
packages/playwright-core/types/types.d.ts
vendored
@ -10372,11 +10372,9 @@ export interface BrowserType<Unused = {}> {
|
||||
};
|
||||
|
||||
/**
|
||||
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
|
||||
* by sites.
|
||||
* - `"block"`: Playwright will block all registration of Service Workers.
|
||||
*
|
||||
* Defaults to `"allow"`.
|
||||
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
|
||||
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||
*/
|
||||
serviceWorkers?: "allow"|"block";
|
||||
|
||||
@ -11537,11 +11535,9 @@ export interface AndroidDevice {
|
||||
};
|
||||
|
||||
/**
|
||||
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
|
||||
* by sites.
|
||||
* - `"block"`: Playwright will block all registration of Service Workers.
|
||||
*
|
||||
* Defaults to `"allow"`.
|
||||
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
|
||||
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||
*/
|
||||
serviceWorkers?: "allow"|"block";
|
||||
|
||||
@ -13079,11 +13075,9 @@ export interface Browser extends EventEmitter {
|
||||
};
|
||||
|
||||
/**
|
||||
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
|
||||
* by sites.
|
||||
* - `"block"`: Playwright will block all registration of Service Workers.
|
||||
*
|
||||
* Defaults to `"allow"`.
|
||||
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
|
||||
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||
*/
|
||||
serviceWorkers?: "allow"|"block";
|
||||
|
||||
@ -15599,11 +15593,9 @@ export interface BrowserContextOptions {
|
||||
};
|
||||
|
||||
/**
|
||||
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
|
||||
* by sites.
|
||||
* - `"block"`: Playwright will block all registration of Service Workers.
|
||||
*
|
||||
* Defaults to `"allow"`.
|
||||
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
|
||||
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||
*/
|
||||
serviceWorkers?: "allow"|"block";
|
||||
|
||||
|
8
packages/playwright-test/types/test.d.ts
vendored
8
packages/playwright-test/types/test.d.ts
vendored
@ -2800,11 +2800,9 @@ export interface PlaywrightTestOptions {
|
||||
*/
|
||||
navigationTimeout: number | undefined;
|
||||
/**
|
||||
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
|
||||
* by sites.
|
||||
* - `"block"`: Playwright will block all registration of Service Workers.
|
||||
*
|
||||
* Defaults to `"allow"`.
|
||||
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
|
||||
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||
*/
|
||||
serviceWorkers: ServiceWorkerPolicy | undefined;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user