Merge pull request #1719 from deepak1556/service_worker_patch

devtools: api to inspect service worker
This commit is contained in:
Cheng Zhao 2015-05-27 15:47:41 +08:00
commit 4a376694b4
9 changed files with 41 additions and 1 deletions

View file

@ -524,6 +524,10 @@ Toggle the developer tools.
Starts inspecting element at position (`x`, `y`).
### BrowserWindow.inspectServiceWorker()
Opens the developer tools for the service worker context present in the web contents.
### BrowserWindow.focusOnWebView()
### BrowserWindow.blurWebView()

View file

@ -238,6 +238,10 @@ Returns whether guest page has a devtools window attached.
Starts inspecting element at position (`x`, `y`) of guest page.
### `<webview>`.inspectServiceWorker()
Opens the devtools for the service worker context present in the guest page.
### `<webview>`.undo()
Executes editing command `undo` in page.