puppeteer/lib
Andrey Lushnikov ddfdaf97c5
fix(page): fix race condition in WaitTask (#2739)
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.
2018-06-14 11:39:51 -07:00
..
.eslintrc.js Introduce Eslint to validate style 2017-06-11 01:32:59 -07:00
Browser.js feat: worker convenience methods (#2677) 2018-06-06 20:16:17 -05:00
BrowserFetcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Connection.js feat: worker convenience methods (#2677) 2018-06-06 20:16:17 -05:00
Coverage.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Dialog.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
ElementHandle.js feat(elementhandle): add elementHandle.$$eval method (#2589) 2018-05-25 16:56:51 -07:00
EmulationManager.js chore(types): type check the rest of the protocol (#2328) 2018-04-07 17:58:52 -07:00
ExecutionContext.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
externs.d.ts feat(BrowserContext): introduce Browser Contexts. (#2523) 2018-05-10 13:26:08 -07:00
FrameManager.js fix(page): fix race condition in WaitTask (#2739) 2018-06-14 11:39:51 -07:00
helper.js fix(helpers): support thrown strings and numbers in getExceptionMessage (#2715) 2018-06-14 10:23:13 -07:00
Input.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Launcher.js fix: disable OOPIF by default (#2661) 2018-06-01 15:20:37 -07:00
Multimap.js chore: Use Typescript to lint JSDoc annotations (#986) 2017-10-09 22:31:40 -07:00
NavigatorWatcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
NetworkManager.js feat(network): introduce Request.isNavigationRequest() method (#2633) 2018-05-31 17:38:30 -07:00
Page.js fix(types): type FrameManager in Page.js (#2718) 2018-06-13 12:47:29 -07:00
Pipe.js feat(appMode): support pipes for appMode (#2032) 2018-02-14 17:51:29 -08:00
Puppeteer.js chore(types): upgrade to TypeScript 2.8.1 (#2304) 2018-04-04 14:06:21 -07:00
Target.js feat(targets): add target.opener() (#2641) 2018-05-31 17:06:29 -07:00
TaskQueue.js chore: refactor Browser.js into seperate files (#2097) 2018-02-26 12:10:06 -08:00
Tracing.js feat(tracing): enable high resolution JavaScript sampling (#2702) 2018-06-14 10:33:05 -07:00
USKeyboardLayout.js feat(keyboard): Accept codes (#1116) 2017-10-23 12:43:45 -07:00
Worker.js fix: emit all arguments from worker console logs (#2697) 2018-06-07 11:21:35 -07:00