bfcache: Fix SecurityExploitBrowserTest.InvalidBeginNavigationInitiator
1) The test has been fixed by: https://chromium-review.googlesource.com/c/chromium/src/+/1816509 The fix was to flush the BackForwardCache to avoid the FrameHostInterceptor to miss "simulating RenderFrameHostCreated" on the RenderFrameHost in the BackForwardCache. 2) Flushing the cache became asynchronous, which caused the test to fail again. https://chromium-review.googlesource.com/c/chromium/src/+/1807321 In this CL, instead of flushing the BackForwardCache, we create the FrameHostInterceptor before the navigations. That way, it can correctly index every created RenderFrameHost. It won't have to simulate receiving RenderFrameHostCreated anymore. Bug: 1017605 Change-Id: I882d459e53a84331f4ec8dfaa4df1b07cc160c2f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1878187Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#709408}
Showing
Please register or sign in to comment