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
|
## context-option-service-worker-policy
|
||||||
- `serviceWorkers` <[ServiceWorkerPolicy]<"allow"|"block">>
|
- `serviceWorkers` <[ServiceWorkerPolicy]<"allow"|"block">>
|
||||||
|
|
||||||
* `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered by sites.
|
Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||||
* `"block"`: Playwright will block all registration of Service Workers.
|
* `'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
|
## select-options-values
|
||||||
* langs: java, js, csharp
|
* 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
|
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||||
* by sites.
|
* - `'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.
|
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||||
*
|
|
||||||
* Defaults to `"allow"`.
|
|
||||||
*/
|
*/
|
||||||
serviceWorkers?: "allow"|"block";
|
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
|
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||||
* by sites.
|
* - `'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.
|
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||||
*
|
|
||||||
* Defaults to `"allow"`.
|
|
||||||
*/
|
*/
|
||||||
serviceWorkers?: "allow"|"block";
|
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
|
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||||
* by sites.
|
* - `'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.
|
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||||
*
|
|
||||||
* Defaults to `"allow"`.
|
|
||||||
*/
|
*/
|
||||||
serviceWorkers?: "allow"|"block";
|
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
|
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||||
* by sites.
|
* - `'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.
|
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||||
*
|
|
||||||
* Defaults to `"allow"`.
|
|
||||||
*/
|
*/
|
||||||
serviceWorkers?: "allow"|"block";
|
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;
|
navigationTimeout: number | undefined;
|
||||||
/**
|
/**
|
||||||
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
|
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
|
||||||
* by sites.
|
* - `'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.
|
* - `'block'`: Playwright will block all registration of Service Workers.
|
||||||
*
|
|
||||||
* Defaults to `"allow"`.
|
|
||||||
*/
|
*/
|
||||||
serviceWorkers: ServiceWorkerPolicy | undefined;
|
serviceWorkers: ServiceWorkerPolicy | undefined;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user