Add devtools API to inspect shared worker. (#16615)

This commit is contained in:
michtsu 2019-02-01 10:44:24 -08:00 committed by Shelley Vohr
parent efe52f66e4
commit 392458b252
6 changed files with 31 additions and 0 deletions

View file

@ -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.

View file

@ -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.