Last modified: 2014-08-15 01:29:06 UTC
I think it would be better if the notification messages posted with mw.notiy, with auto-hide enabled, should not hide while the user is reading another browser tab/window. The timer should be disabled until the user come back to the screen where the notification is visible, or it may be hidden before the user notices its existence.
Nice catch, yes we should implement that! The window focus/blur events can be used to detect switches to other tabs and windows. $(window).on({ blur: function () {}, focus: function () {} });
Change 154227 had a related patch set uploaded by Helder.wiki: Postpone autoHide timer of notifications if window is not focused https://gerrit.wikimedia.org/r/154227