Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Issue 2917173002: Make PopupMenuTest wait for RenderWidgetHostView initialization (Closed)

Created:
3 years, 6 months ago by kenrb
Modified:
3 years, 6 months ago
Reviewers:
nasko
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 2 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
kenrb
nasko: PTAL?
3 years, 6 months ago (2017-06-02 21:11:34 UTC) #4
nasko
LGTM
3 years, 6 months ago (2017-06-02 23:57:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2917173002/1
3 years, 6 months ago (2017-06-03 00:01:04 UTC) #8
commit-bot: I haz the power
3 years, 6 months ago (2017-06-03 00:17:21 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/37003a1722d89acc689cd3911efc...

Powered by Google App Engine
This is Rietveld 408576698