зеркало из https://github.com/mozilla/gecko-dev.git
Bug 526919 - Lightweight theme notification bar hides when loading new page. r=dtownsend
This commit is contained in:
Родитель
1505c646cf
Коммит
fb10cf0bb4
|
@ -7124,9 +7124,11 @@ var LightWeightThemeWebInstaller = {
|
||||||
this._removePreviousNotifications();
|
this._removePreviousNotifications();
|
||||||
|
|
||||||
var notificationBox = gBrowser.getNotificationBox();
|
var notificationBox = gBrowser.getNotificationBox();
|
||||||
notificationBox.appendNotification(message, "lwtheme-install-request", "",
|
var notificationBar =
|
||||||
notificationBox.PRIORITY_INFO_MEDIUM,
|
notificationBox.appendNotification(message, "lwtheme-install-request", "",
|
||||||
buttons);
|
notificationBox.PRIORITY_INFO_MEDIUM,
|
||||||
|
buttons);
|
||||||
|
notificationBar.persistence = 1;
|
||||||
},
|
},
|
||||||
|
|
||||||
_install: function (newTheme) {
|
_install: function (newTheme) {
|
||||||
|
@ -7160,10 +7162,13 @@ var LightWeightThemeWebInstaller = {
|
||||||
this._removePreviousNotifications();
|
this._removePreviousNotifications();
|
||||||
|
|
||||||
var notificationBox = gBrowser.getNotificationBox();
|
var notificationBox = gBrowser.getNotificationBox();
|
||||||
notificationBox.appendNotification(text("message"),
|
var notificationBar =
|
||||||
"lwtheme-install-notification", "",
|
notificationBox.appendNotification(text("message"),
|
||||||
notificationBox.PRIORITY_INFO_MEDIUM,
|
"lwtheme-install-notification", "",
|
||||||
buttons);
|
notificationBox.PRIORITY_INFO_MEDIUM,
|
||||||
|
buttons);
|
||||||
|
notificationBar.persistence = 1;
|
||||||
|
notificationBar.timeout = Date.now() + 20000; // 20 seconds
|
||||||
},
|
},
|
||||||
|
|
||||||
_removePreviousNotifications: function () {
|
_removePreviousNotifications: function () {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче