Closed Bug 1151221 Opened 9 years ago Closed 9 months ago

Notification tag fails

Categories

(Core :: DOM: Push Subscriptions, defect)

All
Windows
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hawkeyes0.cn, Unassigned)

Details

Step:
run follow code:
<code>
new Notification('a',{tag:'t'});
var n = new Notification('b',{tag:'t'});
n.onshow = function(event){console.log(event)};
n.onclose = function(event){console.log(event)};
</code>

The problem:
I can't find any Notification, but show event be handled. And close event be handled after 4 seconds.
Component: Webapp Runtime → General
Keywords: html5
Severity: critical → normal
Component: General → Notifications and Alerts
Keywords: html5
Product: Firefox → Toolkit
Hawkeyes, does i still fail for you?
Flags: needinfo?(hawkeyes0.cn)
Summary: Notification tag → Notification tag fails
@Mery
yes

if i only execute this <code>new Notification('a',{tag:'t'});</code>, it works.
if i execute this 
<code>
var n = new Notification('b',{tag:'t'});
n.onshow = function(event){console.log(event)};
n.onclose = function(event){console.log(event)};
</code>, it works too.
however i execute them together, it fail.
Flags: needinfo?(hawkeyes0.cn)
Severity: normal → S3
Component: Notifications and Alerts → DOM: Notifications
Product: Toolkit → Core

Can't repro this anymore neither with native nor with XUL. Closing.

Status: UNCONFIRMED → RESOLVED
Closed: 9 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.