Immediately SetTitle on a new NavigationEntry created via history.pushState
We already have the title available (because we're not throwing away the old
document in the renderer process), and if we don't immediately set the title,
there is a race condition where the title may be updated in the ui before the renderer
process sends a FrameHostMsg_UpdateTitle IPC. In this case, the title will flicker to
the page url and immeidately back to the proper title.
BUG=375455
TEST=NavigationControllerTest.PushStateUpdatesTitle
Review URL: https://codereview.chromium.org/308143004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274006 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed