playwright/packages
Dmitry Gozman 41907915c7
cherry-pick(#10481): fix(tracing): race in stopChunk (#10498)
Consider the following scenario:
- Tracing is started.
- API call is made (e.g. page.waitForResponse), almost finishes, and
  enters onAfterCall where it starts a snapshot.
- tracing.stopChunk is called, and waits for existing actions to finish.
  However, it does so by calling onAfterCall one more time.
- tracing.stopChunk removes instrumentation listener and returns
  to the client.
- Client starts zipping files.
- Original API call finishes the snapshot and saves it to the trace file.

This results in trace file being written to while the zip is still working.
2021-11-23 12:04:37 -08:00
..
create-playwright chore: mark v1.17.0-rc1 (#10366) 2021-11-17 08:43:31 -08:00
playwright chore: mark v1.17.0-rc1 (#10366) 2021-11-17 08:43:31 -08:00
playwright-chromium chore: mark v1.17.0-rc1 (#10366) 2021-11-17 08:43:31 -08:00
playwright-core cherry-pick(#10481): fix(tracing): race in stopChunk (#10498) 2021-11-23 12:04:37 -08:00
playwright-firefox chore: mark v1.17.0-rc1 (#10366) 2021-11-17 08:43:31 -08:00
playwright-test chore: mark v1.17.0-rc1 (#10366) 2021-11-17 08:43:31 -08:00
playwright-webkit chore: mark v1.17.0-rc1 (#10366) 2021-11-17 08:43:31 -08:00