Closed
Bug 1258660
Opened 10 years ago
Closed 8 years ago
sdk/notifications are showed like Web Notifications on Linux
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: decedion, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160319124722
Steps to reproduce:
Arch Linux 64 bits
Firefox 45.0.1 (installed from Arch repositories)
GNOME Shell 3.18.4
I have written a test extension with next javascript content (following this tutorial: https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/notifications ):
var notifications = require("sdk/notifications");
var myIconURL = "./lftp1.png";
notifications.notify({
title: "Jabberwocky",
text: "'Twas brillig, and the slithy toves",
data: "did gyre and gimble in the wabe",
iconURL: myIconURL
});
I execute this with 'jpm run'.
In addition, error console shows all of these messages: see screenshot2.
Actual results:
It shows the Firefox native notification, like web notifications (see screenshot1)
Expected results:
It should show a Gnome native notification.
| Reporter | ||
Updated•10 years ago
|
Component: Untriaged → Shell Integration
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
| Reporter | ||
Comment 1•10 years ago
|
||
| Reporter | ||
Comment 2•10 years ago
|
||
I forgot to say that the notification doesn't show the icon.
Comment 3•8 years ago
|
||
Add-on SDK is gone, closing bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
The replacement, the "notifications" WebExtensions API does show native notifications if available.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•