Skip to content

Commit

Permalink
chore(docs): remove remaining mentions of Chromium targets (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Mar 20, 2020
1 parent 535b484 commit f1d97b0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ context.clearPermissions();
#### browserContext.close()
- 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.

> **NOTE** the default browser context cannot be closed.
Expand Down Expand Up @@ -3767,11 +3767,10 @@ Only one trace can be active at a time per browser.

* extends: [BrowserContext]

Chromium-specific features including targets, service worker support, etc.
Chromium-specific features including background pages, service worker support, etc.

```js
const backroundPageTarget = await context.waitForTarget(target => target.type() === 'background_page');
const backgroundPage = await backroundPageTarget.page();
const backgroundPage = await context.waitForEvent('backgroundpage');
```

<!-- GEN:toc -->
Expand Down

0 comments on commit f1d97b0

Please sign in to comment.