puppeteer/lib
Joel Einbinder 95d867aaac fix: don't emit an internal error when eval causes navigation (#3008)
When an evaluation causes a navigation, for example:
```js
await page.evaluate(() => window.reload());
```
sometimes we process the ExecutionContextDestroyed event before the ack from the evaluate. When we do get the ack from the evaluate, we try to build a JSHandle for it, and try to find the execution by id. But it is gone, and we throw an error. This patch switches createJSHandle to accept an ExecutionContext instead of just an id.

This bug was making the test `should throw a nice error after a navigation` flaky.
2018-08-01 13:53:08 -07:00
..
.eslintrc.js Introduce Eslint to validate style 2017-06-11 01:32:59 -07:00
Browser.js feat(browsercontext): add BrowserContext.pages() method (#3003) 2018-07-31 13:24:29 -07:00
BrowserFetcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Connection.js feat: nicer protocol error messages (#2742) 2018-06-14 15:27:59 -07:00
Coverage.js fix(coverage): report anonymous scripts with debugger:// urls (#2875) 2018-07-11 21:05:16 -07:00
Dialog.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
ElementHandle.js fix(page): page.click should work with disabled javascript (#2907) 2018-07-18 18:51:18 -07:00
EmulationManager.js refactor: simplify EmulationManager (#2816) 2018-06-28 18:48:44 -07:00
ExecutionContext.js feat(coverage): add an option to collect coverage of anonymous scripts (#2796) 2018-07-11 18:38:34 -07:00
externs.d.ts feat(BrowserContext): introduce Browser Contexts. (#2523) 2018-05-10 13:26:08 -07:00
FrameManager.js fix: don't emit an internal error when eval causes navigation (#3008) 2018-08-01 13:53:08 -07:00
helper.js feat(page): introduce waitForRequest and waitForResponse methods (#2776) 2018-07-12 14:36:31 -07:00
Input.js fix: typing emoji (#2824) 2018-07-31 11:22:26 -07:00
Launcher.js fix(pipe): make sure the pipe is not stuck (#2933) 2018-07-24 11:36:35 -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(Chromium): roll Chromium to r579032 (#2989) 2018-07-30 19:09:10 -07:00
Page.js fix: don't emit an internal error when eval causes navigation (#3008) 2018-08-01 13:53:08 -07:00
Pipe.js feat(chromium): roll Chromium to r574897 (#2887) 2018-07-13 11:07:24 -07:00
Puppeteer.js chore(types): upgrade to TypeScript 2.8.1 (#2304) 2018-04-04 14:06:21 -07:00
Target.js feat(target): add support for target.page for 'backgroud_page' (#2600) 2018-06-14 13:58:51 -07:00
TaskQueue.js chore: refactor Browser.js into seperate files (#2097) 2018-02-26 12:10:06 -08:00
Tracing.js Revert "chore(tests): redirect debugError to the output category of tests (#2969)" (#2987) 2018-07-30 16:41:39 -07:00
USKeyboardLayout.js feat(keyboard): Accept codes (#1116) 2017-10-23 12:43:45 -07:00
Worker.js feat(worker): implement pageerror event from a worker (#2795) 2018-06-25 15:10:36 -07:00