DescriptionThis CL is basically a 3 fixes in 1. I started off fixing the fact that
WebUIs were not properly being created when reusing the current
RenderFrameHost. But while doing that I found an issue in
RenderFrameHostManager::CreateSpeculativeRenderFrameHost where instead
of setting an instance member I was mistakenly shadowing it with a
same-named function member.
This last fix caused another test to crash because the WebUI reuse logic
was incorrect. Instead of checking if it should be reused when the
navigation SiteInstance matched the current one, it was being done when
they were different (what doesn't even makes sense).
Due to these changes I also had to update how RFHM::CleanUpNavigation
and UnsetSpeculativeRenderFrameHost work,so that the speculative WebUI
member is always cleaned up even if a speculative RFH does not exist.
Also renamed the speculative WebUI getter as it's not test-only anymore.
With these changes these tests were fixed when PlzNavigate is enabled:
RenderFrameHostManagerTest.EnableWebUIWithSwappedOutOpener
RenderFrameHostManagerTest.WebUIInNewTab
BUG=439423
Committed: https://crrev.com/1ae0930d2a6f0c8ecfe6bf60bbd2140303b122a2
Cr-Commit-Position: refs/heads/master@{#315006}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Minor changes from CR comments. #
Total comments: 2
Patch Set 3 : Single comment change. #
Messages
Total messages: 15 (4 generated)
|