Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 821cf61

Browse files
committed
Bug 1886082, r=Gijs,emilio
Differential Revision: https://phabricator.services.mozilla.com/D207253
1 parent 51694c1 commit 821cf61

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

toolkit/modules/PopupNotifications.sys.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,10 +1939,14 @@ PopupNotifications.prototype = {
19391939
}
19401940

19411941
if (type == "buttoncommand" || type == "secondarybuttoncommand") {
1942-
if (Services.focus.activeWindow != this.window) {
1942+
// TODO: Bug 1892756.
1943+
if (
1944+
Services.focus.activeWindow != this.window ||
1945+
notificationEl.matches(":-moz-window-inactive")
1946+
) {
19431947
Services.console.logStringMessage(
19441948
"PopupNotifications._onButtonEvent: " +
1945-
"Button click happened before the window was focused"
1949+
"Button click happened before the window was focused / active"
19461950
);
19471951
this.window.focus();
19481952
return;

0 commit comments

Comments
 (0)