Bug 487242 - Implement 'unread' attribute for tabbrowser tabs. r=dao

This commit is contained in:
Len 2011-09-15 19:53:30 +02:00
Родитель f3bacc8d1a
Коммит be74f2b718
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -565,6 +565,8 @@
this.mTab.removeAttribute("busy");
this.mTab.removeAttribute("progress");
if (!this.mTab.selected)
this.mTab.setAttribute("unread", "true");
var location = aRequest.QueryInterface(nsIChannel).URI;
@ -871,6 +873,7 @@
(window.windowState != window.STATE_MINIMIZED);
this.mCurrentBrowser = newBrowser;
this.mCurrentTab = this.selectedTab;
this.mCurrentTab.removeAttribute("unread");
this.showTab(this.mCurrentTab);
if (updatePageReport)