Fix the spellcheck enabled setting for remote-to-local main frame navigations.
Previously, the Blink spellchecking enabled state was initialized from ChromeContentRendererClient::RenderViewCreated(), which only did this for RenderViews where the main frame was a local frame. This CL moves that initialization logic into RenderFrameCreated(), where it is applied to all main frames. Other than being good cleanup because RenderView is going away, this also makes it also work for provisional main frames (i.e., when the main frame is remote and it navigates back to a local frame). The latter became more common after r501081, which means that the spellcheck enabled setting wasn't always respected after cross-process main frame navigations prior to this fix. Bug: 784673 Change-Id: I91851c35027715b3d0c3a6ddfc22c514806adff3 Reviewed-on: https://chromium-review.googlesource.com/794790Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:
Lei Zhang <thestig@chromium.org> Commit-Queue: Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#519917}
Showing
Please register or sign in to comment