Fix flakiness in NavigateToInaccessibleResourceFromChromeURL.
There was a race in this test where chrome.send() from chrome://history might have occasionally been processed on a pending delete RenderFrameHost, right after a cross-process navigation. This revealed a real bug in WebUIImpl::OnWebUISend(), which incorrectly killed the renderer before checking whether the RFH is active. Fix this by checking whether the RFH is active and dropping the IPC if not prior to checking WebUI bindings. Change-Id: I672e8457b7a4a167ad31e5afa4b2059b2c92b97a Bug: 836211 Tbr: rdevlin.cronin@chromium.org Reviewed-on: https://chromium-review.googlesource.com/1026803 Commit-Queue: Alex Moshchuk <alexmos@chromium.org> Reviewed-by:Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/master@{#553399}
Showing
Please register or sign in to comment