Add devtools API to inspect shared worker. (#16615)
This commit is contained in:
parent
efe52f66e4
commit
392458b252
6 changed files with 31 additions and 0 deletions
|
@ -1381,6 +1381,10 @@ Toggles the developer tools.
|
|||
|
||||
Starts inspecting element at position (`x`, `y`).
|
||||
|
||||
#### `contents.inspectSharedWorker()`
|
||||
|
||||
Opens the developer tools for the shared worker context.
|
||||
|
||||
#### `contents.inspectServiceWorker()`
|
||||
|
||||
Opens the developer tools for the service worker context.
|
||||
|
|
|
@ -408,6 +408,10 @@ Returns `Boolean` - Whether DevTools window of guest page is focused.
|
|||
|
||||
Starts inspecting element at position (`x`, `y`) of guest page.
|
||||
|
||||
### `<webview>.inspectSharedWorker()`
|
||||
|
||||
Opens the DevTools for the shared worker context present in the guest page.
|
||||
|
||||
### `<webview>.inspectServiceWorker()`
|
||||
|
||||
Opens the DevTools for the service worker context present in the guest page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue