diff -r 000000000000 -r 6474c204b198 browser/metro/base/content/bindings/notification.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/metro/base/content/bindings/notification.xml Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,158 @@ + + + + + +%notificationDTD; +]> + + + + + + + + + + + + + + + + + + + + + + + + + = 0; n--) { + if (notifications[n].priority < priority) + break; + insertPos = notifications[n]; + } + if (!insertPos) { + aItem.style.position = "fixed"; + aItem.style.top = "100%"; + aItem.style.marginTop = "-15px"; + aItem.style.opacity = "0"; + } + let label = aItem.label; + this.insertBefore(aItem, insertPos); + aItem.label = label; + + if (!insertPos) + this._showNotification(aItem, true, true); + + // Fire event for accessibility APIs + var event = document.createEvent("Events"); + event.initEvent("AlertActive", true, true); + aItem.dispatchEvent(event); + + return aItem; + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + +