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/1173016Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Ken Rockot <rockot@chromium.org> Cr-Commit-Position: refs/heads/master@{#582813}
Showing
Please register or sign in to comment