diff --git a/toolkit/components/alerts/resources/content/alert.js b/toolkit/components/alerts/resources/content/alert.js index f283d9dbaa63..40d5ab806728 100644 --- a/toolkit/components/alerts/resources/content/alert.js +++ b/toolkit/components/alerts/resources/content/alert.js @@ -75,8 +75,10 @@ function prefillAlertInfo() gAlertCookie = window.arguments[4]; case 4: gAlertTextClickable = window.arguments[3]; - if (gAlertTextClickable) + if (gAlertTextClickable) { + document.getElementById('alertNotification').setAttribute('clickable', true); document.getElementById('alertTextLabel').setAttribute('clickable', true); + } case 3: document.getElementById('alertTextLabel').setAttribute('value', window.arguments[2]); case 2: @@ -222,4 +224,5 @@ function onAlertClick() { if (gAlertListener && gAlertTextClickable) gAlertListener.observe(null, "alertclickcallback", gAlertCookie); + closeAlert(); } diff --git a/toolkit/components/alerts/resources/content/alert.xul b/toolkit/components/alerts/resources/content/alert.xul index 0bc101dd00bd..1bf820d1fa52 100644 --- a/toolkit/components/alerts/resources/content/alert.xul +++ b/toolkit/components/alerts/resources/content/alert.xul @@ -45,7 +45,7 @@ xhtml:role="alert" pack="start" onload="onAlertLoad()" - onclick="closeAlert();"> + onclick="onAlertClick();">