A little background: SessionHistoryTest.LocationReplace rarely fails on the buildbot (isn't even on the flakiness dashboard), but seems to be #1 flaky test on the trybot, where it fails almost every time (or so it seems to me). It also reproduces very consistently on my Windows VM, so we have a good test case. I'm trying to fix the flaky test.
What the test does is quite simple: it navigates the browser to a page with a non-empty title, which then redirects (in onload handler) to a page with an empty title. It waits for the navigation to finish, and expects an empty title. However, when it flakes out, the old non-empty title remains. I verified that the test uses TabContents and NavigationController to get the tab title. I also tried using setTimeout(... , 0) in the onload handler and waiting for two navigations instead, just as an experiment. It didn't change the flaky behavior. Using about:ipc and manual testing I observed that when the test fails, the renderer doesn't send the UpdateTitle message to tell the browser that now it should display an empty title. It doesn't look like a waiting problem with the automation. I've done it manually, and the nonempty title was still there. I'm not very familiar with the renderer code. Everything seems fine on the first glance, and I don't really know where to look for things that may go wrong. One thing that may help me with the investigation is the expected sequence of events from the moment we navigate to the redirecting page. Any other hints are also welcome. -- Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev
