WebClipboardImplTest failues with Mojo changes |
||
Issue descriptionThe failing tests are (in content_browsertests): WebClipboardImplTest.ImageCopy WebClipboardImplTest.PasteRTF See blocked bug for details and motivation regarding what's changing in Mojo. Likely the failures are caused by incorrect task ordering assumptions.
,
Aug 8
Not a lot of background or cycles, unfortunately. The structure I used for the ImageCopy test was cargo-culted from the other test, and there was subtlety getting it to not be flaky across platforms (specifically Windows) but IIRC was solid when I landed it which points at later refactors... When working on the ImageCopy test I narrowed down the raciness by more subtle logging, e.g. checking if the execCommand() actually succeeded. Since both tests are flaking, and it looks like they're timing out, the common bit might be the FrameFocusedObserver - raciness there?
,
Aug 9
Thanks for the additional insight! I'll dig into this.
,
Aug 13
Indeed it's an issue with FrameFocusedObserver. It's possible for focus to be observed before NavigateToURL returns, so there's no opportunity for FrameFocusedObserver to see the event. Hacking around for possible solutions.
,
Aug 14
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b8a1c61da239baee11ebff6962a1667fab8d34fd commit b8a1c61da239baee11ebff6962a1667fab8d34fd Author: Ken Rockot <rockot@chromium.org> Date: Tue Aug 14 03:16:42 2018 De-flake WebClipboardImplTests The issue was raciness between navigation and FrameFocusedObserver setup. Focus can be dispatched to the FrameTreeNode before NavigateToURL* returns, causing the subsequently constructed FrameFocusedObserver to wait forever for an event that has already happened. Because FrameFocusedObserver only monitors the main frame's FrameTreeNode, which is stable, we can construct the observer before NavigateToURL*. That's what all this does. Bug: 872075 , 867339 Change-Id: I08c68ecb548163ee2097222d549e6985e5c9428a Reviewed-on: https://chromium-review.googlesource.com/1173016 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Ken Rockot <rockot@chromium.org> Cr-Commit-Position: refs/heads/master@{#582813} [modify] https://crrev.com/b8a1c61da239baee11ebff6962a1667fab8d34fd/content/renderer/webclipboard_impl_browsertest.cc
,
Aug 14
|
||
►
Sign in to add a comment |
||
Comment 1 by roc...@chromium.org
, Aug 8Labels: -Pri-3 Pri-1