mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
5361205f4d
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 |
||
---|---|---|
.. | ||
components | ||
content | ||
crashreporter | ||
forgetaboutsite | ||
library | ||
locales | ||
modules | ||
mozapps | ||
pluginproblem | ||
profile | ||
system | ||
themes | ||
xre | ||
.eslintrc.js | ||
moz.build | ||
moz.configure | ||
nss.configure | ||
toolkit.mozbuild |