Introduced BWebPage::ResendNotifications(). This is a simple way for the

window to update itself to the properties of a page when switching pages.
Resolves deadlock problem with BWebPage::CanGoInDirection(), which I've removed.


git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@162 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi
2010-02-21 13:34:54 +00:00
parent 63d76ab872
commit fafcdf7cd1
+3 -5
View File
@@ -345,11 +345,9 @@ void LauncherWindow::MessageReceived(BMessage* message)
setCurrentWebView(dynamic_cast<WebView*>(m_tabView->ViewForTab(index))); setCurrentWebView(dynamic_cast<WebView*>(m_tabView->ViewForTab(index)));
updateTitle(m_tabView->TabAt(index)->Label()); updateTitle(m_tabView->TabAt(index)->Label());
m_url->TextView()->SetText(currentWebView()->mainFrameURL()); m_url->TextView()->SetText(currentWebView()->mainFrameURL());
// BWebPage* page = currentWebView()->webPage(); // Trigger update of the interface to the new page, by requesting
// bool canGoForward = page->CanGoInDirection(1); // to resend all notifications.
// bool canGoBackward = page->CanGoInDirection(-1); currentWebView()->webPage()->ResendNotifications();
// navigationCapabilitiesChanged(canGoForward, canGoBackward, false,
// currentWebView());
break; break;
} }