void WebFrameLoaderClient::updateGlobalHistoryItemForPage() { HistoryItem* historyItem = 0; WebView* webView = m_webFrame->webView(); if (Page* page = webView->page()) { if (!page->usesEphemeralSession()) historyItem = page->backForward().currentItem(); } webView->setGlobalHistoryItem(historyItem); }
void WebFrameLoaderClient::updateGlobalHistoryItemForPage() { HistoryItem* historyItem = 0; WebView* webView = m_webFrame->webView(); if (Page* page = webView->page()) { if (!page->settings()->privateBrowsingEnabled()) historyItem = page->backForward()->currentItem(); } webView->setGlobalHistoryItem(historyItem); }