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:
@@ -345,11 +345,9 @@ void LauncherWindow::MessageReceived(BMessage* message)
|
||||
setCurrentWebView(dynamic_cast<WebView*>(m_tabView->ViewForTab(index)));
|
||||
updateTitle(m_tabView->TabAt(index)->Label());
|
||||
m_url->TextView()->SetText(currentWebView()->mainFrameURL());
|
||||
// BWebPage* page = currentWebView()->webPage();
|
||||
// bool canGoForward = page->CanGoInDirection(1);
|
||||
// bool canGoBackward = page->CanGoInDirection(-1);
|
||||
// navigationCapabilitiesChanged(canGoForward, canGoBackward, false,
|
||||
// currentWebView());
|
||||
// Trigger update of the interface to the new page, by requesting
|
||||
// to resend all notifications.
|
||||
currentWebView()->webPage()->ResendNotifications();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user