willTransitionToCommitted();
if (!m_frame.tree().parent() && history().currentItem()) {
+ MemoryPressureHandler::singleton().jettisonExpensiveObjectsOnTopLevelNavigation();
+
// Check to see if we need to cache the page we are navigating away from into the back/forward cache.
// We are doing this here because we know for sure that a new page is about to be loaded.
PageCache::singleton().addIfCacheable(*history().currentItem(), m_frame.page());
-
- MemoryPressureHandler::singleton().jettisonExpensiveObjectsOnTopLevelNavigation();
}
if (m_loadType != FrameLoadType::Replace)