This is a reproduction for https://bugs.chromium.org/p/chromium/issues/detail?id=1050221
To reproduce:
- Download gist
- run
npm i
- run
npm start
Chrome will start, cycle through some async tasks, and print the duration to the document and the terminal running node. On my laptop it takes ~500ms.
Next, run npm start
again, bug switch back to the terminal as soon as Chrome launches. There should be enough time to put Chrome in the background before the task completes. The tasks should either never start or never complete. If you put Chrome in the foreground, the tasks will finish quickly.