0
Firefox拥有一个原生通知框系统: https://developer.mozilla.org/en/Code_snippets/Alerts_and_Notifications#Using_notification_boxFirefox扩展,使通知框出现在所有选项卡
我想,当它是应该的,因为它出现在所有打开的标签的方式来使用这个系统出现。我只在当前打开的标签中警告你。
var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebNavigation).QueryInterface(Components.interfaces.nsIDocShellTreeItem).rootTreeItem.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindow);
var nb = mainWindow.gBrowser.getNotificationBox();
//...
outdatedNotification = nb.appendNotification("Your information outdated",
'outdate-warn',
'chrome://checksistem/skin/checksistem.png',
priority, buttons);