Closed Bug 859466 Opened 11 years ago Closed 10 years ago

sysAlerts should respect the value of ShouldShowAlerts

Categories

(Toolkit :: General, defect, P1)

x86
Windows 8.1
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bbondy, Assigned: bbondy)

References

Details

Attachments

(1 file, 1 obsolete file)

We have sysAlerts which allows you to override the functionality of default notifications.

We have a ShouldShowAlerts that determines if alerts should be shown or not.

sysAlerts has always ignored this function.  To protect against future bugs we should have that handling first. 

Note that there is currently no bug here becuase ShouldShowAlerts only returns false on Windows Desktop, and we only provide sysAlerts on Windows Metro.  There is a bug in the handling of ShoudlShowAlerts though that I'll fix here too in case we ever remove sysAlerts in Metro.
Attached patch Patch v1. (obsolete) — Splinter Review
I was originally going to also change the implementation of ShouldShowAlert to allow showing them when in Metro, but I'm not sure if that's correct or not, and leaving it as is, is the safest way to go for now.
Attachment #734788 - Flags: review?(wchen)
Comment on attachment 734788 [details] [diff] [review]
Patch v1.

Actually I'm going to have to fix the bug in ShouldShowAlert at least in the Metro case, please hold off on the review.
Attachment #734788 - Flags: review?(wchen)
Attached patch Patch v2.Splinter Review
Attachment #734788 - Attachment is obsolete: true
Attachment #734800 - Flags: review?(wchen)
Product: Firefox for Metro → Toolkit
Comment on attachment 734800 [details] [diff] [review]
Patch v2.

Review of attachment 734800 [details] [diff] [review]:
-----------------------------------------------------------------

Moving the check further up in |ShowAlertNotification| looks right to me, although I'm not sure about the metro stuff since I don't have any experience with it.
Attachment #734800 - Flags: review?(wchen) → review+
This patch is from 8 months ago so I'm not sure if it can be safely landed or not.  I don't think there is a pressing need though so I'm going to mark this as WFM and if we ever find it to be a problem we can take the patch.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: