mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
This patch eliminates a common race condition with WaitTask, that happens when predicate function gets resolved right before the execution context gets destroyed. This situation results in a "Cannot find context with specified id undefined" exception. Credits go to @jakub300 for his wonderful [investigation](https://github.com/GoogleChrome/puppeteer/issues/1325#issuecomment-395472092). Fixes #1325.