Update WebNavigationApiTest.UserAction to wait for navigation.
The WebNavigationApiTest.UserAction loads a page with has a subframe in a different site than the main frame. Since the main page is an extension URL, those will get isolated in separate processes. The test checks that a context menu in the subframe, which opens a link in a new tab results in the correct event for the webNavigation API. However, since it doesn't wait for the subframe navigation to complete, the context menu creation can incorrectly capture the parent process id instead of the subframe process id. This is timing dependent, which leads to flakiness in the test. This CL adds an explicit observer for the subframe navigation and updates the test expectation to reflect the fact that the subframe is in a separate process than the parent. Bug: 662160 Change-Id: I40efc406818f572243720d8feaff2dd597262a5d Reviewed-on: https://chromium-review.googlesource.com/1155255 Commit-Queue: Nasko Oskov <nasko@chromium.org> Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#580022}
Showing
Please register or sign in to comment