chore(docs): remove remaining mentions of Chromium targets (#1435)

This commit is contained in:
Yury Semikhatsky 2020-03-19 20:25:31 -07:00 committed by GitHub
parent 535b484637
commit f1d97b0466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -392,7 +392,7 @@ context.clearPermissions();
#### browserContext.close() #### browserContext.close()
- returns: <[Promise]> - returns: <[Promise]>
Closes the browser context. All the targets that belong to the browser context Closes the browser context. All the pages that belong to the browser context
will be closed. will be closed.
> **NOTE** the default browser context cannot be closed. > **NOTE** the default browser context cannot be closed.
@ -3767,11 +3767,10 @@ Only one trace can be active at a time per browser.
* extends: [BrowserContext] * extends: [BrowserContext]
Chromium-specific features including targets, service worker support, etc. Chromium-specific features including background pages, service worker support, etc.
```js ```js
const backroundPageTarget = await context.waitForTarget(target => target.type() === 'background_page'); const backgroundPage = await context.waitForEvent('backgroundpage');
const backgroundPage = await backroundPageTarget.page();
``` ```
<!-- GEN:toc --> <!-- GEN:toc -->