notify.js icon indicating copy to clipboard operation
notify.js copied to clipboard

Timeout doesn't work in Firefox (31)

Open Noleli opened this issue 11 years ago • 6 comments

Firefox forces notifications to close after about 4 seconds regardless of the timeout option. It works fine in Chrome. This note may have something to do with it. Thanks!

Noleli avatar Jul 30 '14 15:07 Noleli

Hi, thanks for the info

Can you elaborate on what you think the behavior should be here? The timeout does work in Firefox, it is just that the browser closes a notification automatically after 4 seconds. So if your timeout value is longer than 4 seconds, it does nothing. There is no way to override browser behavior, so other than add a note in the docs (which is definitely worth doing), I'm not sure what else would be expected?

alexgibson avatar Jul 30 '14 16:07 alexgibson

Perhaps it would be a good idea to set a default timeout of 4 seconds, so that all browsers are consistent?

alexgibson avatar Jul 30 '14 16:07 alexgibson

Thanks for the quick reply! Yeah, a note in the docs would definitely be helpful. When it's null, it sticks around indefinitely in Chrome but disappears after 4 seconds in FF. I want it to persist longer, which is why it didn't seem like it was working at all in FF. Bummer that there's no way to do it in FF.

Noleli avatar Jul 30 '14 16:07 Noleli

Yeah, I can't see anything in the spec that mentions notifications should close after 4 seconds. But if this is the behavior both Firefox and Safari have adopted, maybe we should make Chrome follow suit for now. I'll leave this open and updates the docs (as well as set a new default timeout value).

Thanks!

alexgibson avatar Jul 30 '14 16:07 alexgibson

Found an open bug discussing this behavior here, if you're interested: https://bugzilla.mozilla.org/show_bug.cgi?id=875114

alexgibson avatar Jul 30 '14 16:07 alexgibson

Ben's narrow-minded perspective in that bug is sad.

dandv avatar May 29 '15 04:05 dandv