17 Aug
2010
17 Aug
'10
5:58 a.m.
Hi all, following is the related code. My question is why it returns false when ScheduledRedirection.type is redirection.
From the name of the function, I think if the url changes, it should return true. Thus, for most of redirection, it should return true.
//FrameLoader.cpp bool FrameLoader::isLocationChange(const ScheduledRedirection& redirection) { switch (redirection.type) { case ScheduledRedirection::redirection: return false; case ScheduledRedirection::historyNavigation: case ScheduledRedirection::locationChange: case ScheduledRedirection::formSubmission: return true; } ASSERT_NOT_REACHED(); return false; }