puppeteer/src/common
Alex Rudenko 6f81b23728 fix: address flakiness in frame handling (#8688)
When we attach to a frame, we send a call to get
the page frame tree from CDP. Based on the tree data
we look up the parent frame if parentId is provided.
The problem is that the call to get the page frame
tree could take arbitrary time and the calls for the
parent and child frames might happen at the same time.
So the situation where the frame tree for the child frame
is resolved before the parent frame is known is fairly
common.

This PR addresses the issue by awaiting for the parent
frame id before attempting to register a child frame.
2022-08-02 13:18:47 +00:00
..
Accessibility.ts fix: extends ElementHandle to Nodes (#8552) 2022-07-06 09:05:37 +02:00
AriaQueryHandler.ts fix: extends ElementHandle to Nodes (#8552) 2022-07-06 09:05:37 +02:00
assert.ts feat: export public types only (#8584) 2022-06-27 09:24:23 +02:00
Browser.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
BrowserConnector.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
BrowserWebSocketTransport.ts feat: export public types only (#8584) 2022-06-27 09:24:23 +02:00
ChromeTargetManager.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
Connection.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
ConnectionTransport.ts fix: types in Connection.ts to be compatible with strict mode Typescript (#7919) 2022-01-21 12:41:21 +01:00
ConsoleMessage.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
Coverage.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
Debug.ts fix: cache dynamic imports (#8652) 2022-07-07 21:09:07 +02:00
DeviceDescriptors.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
Dialog.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
DOMWorld.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
ElementHandle.ts fix: taking a screenshot with null viewport should be possible (#8680) 2022-07-21 10:34:18 +02:00
EmulationManager.ts feat: export public types only (#8584) 2022-06-27 09:24:23 +02:00
Errors.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
EventEmitter.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
ExecutionContext.ts fix: extends ElementHandle to Nodes (#8552) 2022-07-06 09:05:37 +02:00
fetch.ts feat: export public types only (#8584) 2022-06-27 09:24:23 +02:00
FileChooser.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
FirefoxTargetManager.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
FrameManager.ts fix: address flakiness in frame handling (#8688) 2022-08-02 13:18:47 +00:00
HTTPRequest.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
HTTPResponse.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
Input.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
JSHandle.ts fix: expose a RemoteObject getter (#8642) 2022-07-07 13:04:28 +00:00
LifecycleWatcher.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
NetworkConditions.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
NetworkEventManager.ts feat: export public types only (#8584) 2022-06-27 09:24:23 +02:00
NetworkManager.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
Page.ts fix: address flakiness in frame handling (#8688) 2022-08-02 13:18:47 +00:00
PDFOptions.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
Product.ts chore(agnostification): split up launcher class (#6484) 2020-10-12 10:08:57 +01:00
Puppeteer.ts feat: export public types only (#8584) 2022-06-27 09:24:23 +02:00
PuppeteerViewport.ts fix: expose Viewport type (#6881) 2021-02-12 12:32:27 +00:00
QueryHandler.ts fix: extends ElementHandle to Nodes (#8552) 2022-07-06 09:05:37 +02:00
SecurityDetails.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
Target.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
TargetManager.ts feat: use CDP's auto-attach mechanism (#8520) 2022-08-02 13:18:07 +00:00
TaskQueue.ts feat: export public types only (#8584) 2022-06-27 09:24:23 +02:00
TimeoutSettings.ts chore: use curly (#8519) 2022-06-14 13:55:35 +02:00
Tracing.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00
types.ts fix: extends ElementHandle to Nodes (#8552) 2022-07-06 09:05:37 +02:00
USKeyboardLayout.ts chore: use Google's TS style guide's format config (#8542) 2022-06-22 15:25:44 +02:00
util.ts fix: address flakiness in frame handling (#8688) 2022-08-02 13:18:47 +00:00
WebWorker.ts feat: add documentation (#8593) 2022-07-01 11:52:39 +00:00