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)));
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user