Disables back forward when needed.

This commit is contained in:
mgalli%geckonnection.com 2005-12-02 20:27:58 +00:00
Родитель 4320ef5319
Коммит cec29f5afc
1 изменённых файлов: 18 добавлений и 5 удалений

Просмотреть файл

@ -174,11 +174,24 @@ nsBrowserStatusHandler.prototype =
}
} else {
domWindow = aWebProgress.DOMWindow;
// Update urlbar only if there was a load on the root docshell
if (domWindow == domWindow.top) {
this.urlBar.value = aLocation.spec;
}
domWindow = aWebProgress.DOMWindow;
// Update urlbar only if there was a load on the root docshell
if (domWindow == domWindow.top) {
this.urlBar.value = aLocation.spec;
}
if(aWebProgress.canGoBack) {
document.getElementById("back-button").disabled=false;
} else {
document.getElementById("back-button").disabled=true;
}
if(aWebProgress.canGoForward) {
document.getElementById("forward-button").disabled=false;
} else {
document.getElementById("forward-button").disabled=true;
}
}
BrowserUpdateFeeds();