Last modified: 2014-08-15 01:29:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42322, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40322 - mw.notification: Postpone autoHide timer if window was not focused
mw.notification: Postpone autoHide timer if window was not focused
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 40307
  Show dependency treegraph
 
Reported: 2012-09-18 03:11 UTC by Helder
Modified: 2014-08-15 01:29 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2012-09-18 03:11:20 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.
Comment 1 Krinkle 2012-09-18 03:52:01 UTC
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 () {}
});
Comment 2 Gerrit Notification Bot 2014-08-15 01:29:03 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links