Bug 546502 - Refreshing on toolbar for crash plugin UI doesn't remove notification bar. r=gavin, a=developers

This commit is contained in:
Justin Dolske
2010-04-26 12:58:12 -07:00
parent f7e42bcada
commit 813a9ea2b3

View File

@@ -6316,6 +6316,11 @@ var gPluginHandler = {
link.href = gPluginHandler.crashReportHelpURL;
let description = notification.ownerDocument.getAnonymousElementByAttribute(notification, "anonid", "messageText");
description.appendChild(link);
// Remove the notfication when the page is reloaded.
doc.defaultView.top.addEventListener("unload", function() {
notificationBox.removeNotification(notification);
}, false);
}
}