Closed Bug 849289 Opened 11 years ago Closed 11 years ago

Turn off the Desktop Notifications (mozNotifications) API in Metro

Categories

(Firefox for Metro Graveyard :: General, defect)

All
Windows 8.1
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
We don't have desktop notifications implemented for WinRT, so we should disable this API and remove the associated strings and code for now.  We are planning to implement the API sometime after v1 (bug 801185).
Attachment #722864 - Flags: review?(jmathies)
Was this hooked up to anything or was it just dead code? I can't find much in mxr for 'notification.feature.enabled', but it seems like most platforms have it enabled.
notification.feature.enabled is currently turned on only for Android and B2G.

The implementation uses nsIAlertsService, which in Metro Firefox just displays a XUL popup within the browser window.  This is useless for Desktop Notifications, which are supposed to show a system-wide alert that is visible even when you aren't using the browser.

To implement it properly, we'd need a WinRT nsIAlertsService implementation that uses Windows.UI.Notifications.
Comment on attachment 722864 [details] [diff] [review]
patch

I was worried this would kill in browser alerts, but apparently it does not.
Attachment #722864 - Flags: review?(jmathies) → review+
Right, this only affects web content; it has no effect on our chrome alerts.

https://hg.mozilla.org/integration/mozilla-inbound/rev/09bb2980eafb
https://hg.mozilla.org/mozilla-central/rev/09bb2980eafb
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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: