playwright/src/server/webkit
Dmitry Gozman 2041aab010
fix(chromium): background pages on persistent close error (#7118)
This is a speculative fix that moves "background pages cleanup"
to `_didCloseInternal` so that it is only run once, but on both
context closure and browser closure.

Symptom from a flaky test:

```log
browserContext.close: page@18087c372d32819222707ca5e8fd1030 is sending "close" event after being disposed
    at PageDispatcher._dispatchEvent (D:\a\playwright\playwright\src\dispatchers\dispatcher.ts:86:15)
    at Page.<anonymous> (D:\a\playwright\playwright\src\dispatchers\pageDispatcher.ts:59:12)
    at Page.emit (events.js:314:20)
    at Page._didClose (D:\a\playwright\playwright\src\server\page.ts:220:10)
    at CRPage.didClose (D:\a\playwright\playwright\src\server\chromium\crPage.ts:165:16)
    at CRBrowserContext._onClosePersistent (D:\a\playwright\playwright\src\server\chromium\crBrowser.ts:476:24)
    at CRBrowserContext.close (D:\a\playwright\playwright\src\server\browserContext.ts:288:20)
```
2021-06-14 21:55:55 -07:00
..
protocol.ts feat(webkit): bump to 1499 (#7001) 2021-06-11 09:35:48 -07:00
webkit.ts Revert "feat: switch to the Firefox Stable equivalent by default (#6926)" (#6947) 2021-06-07 15:55:01 -07:00
wkAccessibility.ts chore: move src files to server (#3593) 2020-08-24 06:51:51 -07:00
wkBrowser.ts fix(chromium): background pages on persistent close error (#7118) 2021-06-14 21:55:55 -07:00
wkConnection.ts fix(waitForSelector): retry when context is gone during node adoption (#6851) 2021-06-02 20:17:24 -07:00
wkExecutionContext.ts fix(waitForSelector): retry when context is gone during node adoption (#6851) 2021-06-02 20:17:24 -07:00
wkInput.ts feat: tap (#4097) 2020-10-19 10:07:33 -07:00
wkInterceptableRequest.ts chore: remove storybook (#6549) 2021-05-12 19:55:49 -07:00
wkPage.ts fix(waitForSelector): retry when context is gone during node adoption (#6851) 2021-06-02 20:17:24 -07:00
wkProvisionalPage.ts chore: move src files to server (#3593) 2020-08-24 06:51:51 -07:00
wkWorkers.ts chore: introduce sdk object base class (#5370) 2021-02-09 09:00:00 -08:00