gecko-dev/toolkit
Doug Thayer 5361205f4d Bug 1358363 - Show PanelUI notifications when window focused r=rstrong
Right now notifications displayed in non-focused windows are
causing that window to be focused. This is annoying. We could work
to make the doorhangers not focus the other windows, but a simpler
solution is to just not show the doorhanger until the window is
focused. This has the added benefit of ensuring that the doorhangers
entry animation is seen by the user, increasing the likelihood that
they will notice it.

Additionally, some existing tests involving extra windows were
refactored. I stripped the old tests of their extra windows and
created new tests specifically to test the behavior of background
windows. These tests were modeled off of the background window
tests of PopupNotifications.jsm, which create a new window knowing
that this will cause the existing window to be the background,
rather than explicitly manipulating the focus of the two windows.

MozReview-Commit-ID: 1fjrDOhEKCw

--HG--
extra : rebase_source : 954ace7e43da90fcee3da2d70c4bdbcda8456d77
2017-04-21 08:57:28 -07:00
..
components Merge inbound to central, a=merge 2017-05-10 16:48:03 -07:00
content Bug 1363700 - Add RCWN stats to about:networking r=bz,michal 2017-05-10 19:23:54 +02:00
crashreporter merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
forgetaboutsite Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
library No bug - Revendor rust dependencies 2017-05-09 03:47:56 +00:00
locales Bug 1363700 - Add RCWN stats to about:networking r=bz,michal 2017-05-10 19:23:54 +02:00
modules Merge m-c to autoland, a=merge 2017-05-08 16:24:51 -07:00
mozapps Bug 1358363 - Show PanelUI notifications when window focused r=rstrong 2017-04-21 08:57:28 -07:00
pluginproblem
profile Bug 1347358 - Add a Cleanup() function for profile locks. r=glandium 2017-03-23 18:02:10 +01:00
system Bug 1351067 - add BUG_COMPONENT to toolkit/* files. r=myk,enndeakin,mossop 2017-04-09 05:43:43 -04:00
themes merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
xre merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
.eslintrc.js Bug 1358949 - Lower eslint cyclomatic complexity threshold in some directories. r=standard8 2017-04-23 19:23:18 -07:00
moz.build
moz.configure Merge inbound to central, a=merge 2017-05-10 16:48:03 -07:00
nss.configure
toolkit.mozbuild Back out bug 1357107 since it broke a feature that we have no automated tests for... 2017-05-05 22:41:36 -04:00