Closed
Bug 1306822
Opened 9 years ago
Closed 9 years ago
Run (Desktop) Notification twice (and more) in a row does not work
Categories
(Toolkit Graveyard :: Notifications and Alerts, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1263155
People
(Reporter: janekptacijarabaci, Unassigned)
References
Details
User Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.18
Steps to reproduce:
Tested on:
Firefox 38 - 52.0a1 (2016-09-30)
Windows 7/8
Ubuntu 16.04
Confirmed on:
Windows 7/8 (does not work)
Not confirmed on:
Ubuntu 16.04 (works)
1) Open Scratchpad
2) Menu: "Environment-Content" (if it is allowed - Notification.permission) or "Environment-Browser"
3) Insert the code:
var repeat = 2;
// var type = 2;
var type = 1;
var timeout = 500;
if (type == 1) {
var i = 1;
var interval = window.setInterval(function () {
new Notification("Hi! " + i.toString() + " " + (new Date).getTime(), {});
if (i++ == repeat) {
window.clearInterval(interval);
}
}, timeout);
} else if (type == 2) {
for (var i = 0; i < repeat; i++) {
window.setTimeout(function () {
new Notification("Hi! " + i.toString() + " " + (new Date).getTime(), {});
}, timeout);
}
}
4) Run
5) The result:
[type == 1]
It shows 2 notifications. Also after rerunning.
[type == 2]
Nothing is displayed.
Just a shadow of "notification" (for Firefox 45+) - in the top right of the screen (after closing "notification"... this shadow disappears).
Those notifications are probably in the top (and not see this).
See also https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API
| Reporter | ||
Updated•9 years ago
|
OS: Unspecified → Windows
Hardware: Unspecified → All
| Reporter | ||
Updated•9 years ago
|
Has STR: --- → yes
| Reporter | ||
Updated•9 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Updated•2 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•