Skip to content
Snippets Groups Projects
Commit 4712b70f authored by Paul Zuehlcke's avatar Paul Zuehlcke
Browse files

Bug 1886082, r=Gijs,emilio, a=dmeehan

parent af335e5b
No related branches found
No related tags found
No related merge requests found
......@@ -1939,10 +1939,14 @@ PopupNotifications.prototype = {
}
if (type == "buttoncommand" || type == "secondarybuttoncommand") {
if (Services.focus.activeWindow != this.window) {
// TODO: Bug 1892756.
if (
Services.focus.activeWindow != this.window ||
notificationEl.matches(":-moz-window-inactive")
) {
Services.console.logStringMessage(
"PopupNotifications._onButtonEvent: " +
"Button click happened before the window was focused"
"Button click happened before the window was focused / active"
);
this.window.focus();
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment