Chromium Code Reviews
DescriptionMake PopupMenuTest wait for RenderWidgetHostView initialization
SitePerProcessBrowserTest.PopupMenuTest has been observed to have
occasional flakes, and the cause seems to be a race between handlers
of ViewMsg_ShowWidget messages. The test code uses a message filter
which notifies upon receipt of ShowWidget, and WebContentsImpl is the
ultimate recipient of that message which causes it to initialize the
popup widget.
Occasionally the test code will run before WebContentsImpl's handler
has fired, in which case the RenderWidgetHostView has not been
initialized, resulting in a crash. This CL adds a loop to wait for
initialization to be completed before proceeding with the test.
BUG=723657
Review-Url: https://codereview.chromium.org/2917173002
Cr-Commit-Position: refs/heads/master@{#476839}
Committed: https://chromium.googlesource.com/chromium/src/+/37003a1722d89acc689cd3911efceb583bad43e0
Patch Set 1 #
Messages
Total messages: 11 (7 generated)
|
||||||||||||||||||||||||||||