feat: allow inspection of specific shared workers (#20389)
This commit is contained in:
parent
712d77dc8b
commit
2f03d393c3
9 changed files with 141 additions and 0 deletions
4
docs/api/structures/shared-worker-info.md
Normal file
4
docs/api/structures/shared-worker-info.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
# SharedWorkerInfo Object
|
||||
|
||||
* `id` String - The unique id of the shared worker.
|
||||
* `url` String - The url of the shared worker.
|
|
@ -1460,6 +1460,16 @@ Starts inspecting element at position (`x`, `y`).
|
|||
|
||||
Opens the developer tools for the shared worker context.
|
||||
|
||||
#### `contents.inspectSharedWorkerById(workerId)`
|
||||
|
||||
* `workerId` String
|
||||
|
||||
Inspects the shared worker based on its ID.
|
||||
|
||||
#### `contents.getAllSharedWorkers()`
|
||||
|
||||
Returns [`SharedWorkerInfo[]`](structures/shared-worker-info.md) - Information about all Shared Workers.
|
||||
|
||||
#### `contents.inspectServiceWorker()`
|
||||
|
||||
Opens the developer tools for the service worker context.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue