void BackForwardListBlackBerry::addItem(PassRefPtr<HistoryItem> prpItem) { if (!isActive()) return; m_impl->addItem(prpItem); notifyBackForwardListChanged(); }
void BackForwardListBlackBerry::goToItem(HistoryItem* item) { if (!m_impl->entries().size() || !item) return; int oldIndex = current(); m_impl->goToItem(item); if (oldIndex != current()) notifyBackForwardListChanged(); else { // FIXME: this might not be needed anymore. See PR 310030. // Since the recent pages dialog is in another process, it's possible for // the user to choose an entry after it's been removed from the underlying // BackForwardList (for example, if the current page is in the middle of // the stack and it sets document.location with a timer, clearing the // forward list, while the user has the recent pages dialog open). In this // case the best thing to do is re-add the item at the end of the stack. addItem(item); } }
void FrameLoaderClientBlackBerry::invalidateBackForwardList() const { notifyBackForwardListChanged(); }