Enable SecurityExploitBrowserTest.DidCommitInvalidURL test.
The test was flaky because it uses DidCommitUrlReplacer which expects all RenderFrameHosts it sees being deleted to have been created. The main navigation to the starting test page causes a cross-process navigation and if the test system is slow, the UnloadACK IPC can be delayed until the pointe after which the DidCommitUrlReplacer is created. If that happens, the DCHECK in the RenderFrameDeleted implementation is hit. The fix for the test is to wait for the frame to be deleted, which will guarantee that the DidCommitUrlReplacer will not see the frame deletion regardless of how slow the machine runs. Bug: 1106893 Change-Id: I3174f8c2fc11bc69db226c59065e214dfc58705c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304554Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Nasko Oskov <nasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#790182}
Showing
Please register or sign in to comment