Open Bug 834393 Opened 12 years ago Updated 1 year ago

Don't allow an unusable popup notification

Categories

(Toolkit :: PopupNotifications and Notification Bars, enhancement)

enhancement

Tracking

()

People

(Reporter: neil, Unassigned)

References

Details

(Whiteboard: [backout patch for bug 831365 when this bug is fixed])

It's possible to create a popup notification with an invisible anchor or no anchor at all, in which case a default anchor is used instead, however it is impossible to retrieve such a notification once it has been dismissed. The problem comes when you create a dismissed notification with such an anchor, since it then becomes completely unusable. In bug 831365 this was worked around in the caller by checking whether the anchor was invisible before asking for the notification not to be shown automatically. My suggestion is that popup notifications should always be shown if the anchor is null or invisible. (It might be worth writing a shared _isAnchorUsable method.)
How should the user reshow one of these notifications? What happens if there are multiple that want to be displayed at the same time? The patch for bug 831365 should be backed out when a patch for this bug lands.
Whiteboard: [backout patch for bug 831365 when this bug is fixed]
Bulk move to Toolkit::Notifications and Alerts Filter on notifications-and-alerts-component.
Component: General → Notifications and Alerts
Severity: normal → S3
Component: Notifications and Alerts → PopupNotifications and Notification Bars
You need to log in before you can comment on or make changes to this bug.