Open Bug 1591836 Opened 5 years ago Updated 2 years ago

Notification shows in Windows 10 even if "show only alarms" is set

Categories

(Core :: Widget: Win32, defect, P2)

73 Branch
Desktop
Windows 10
defect

Tracking

()

REOPENED
Tracking Status
firefox72 --- wontfix
firefox73 --- wontfix
firefox74 --- fix-optional

People

(Reporter: miroslav.vanek, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

  • set win 10 notifications to "alarms only"
  • open 'web.skype or fb messenger' in firefox
  • send a message to the open 'web.skype or fb messenger'

Actual results:

win 10 notification pops up

Expected results:

notifications should be muted in "alarms only". Chrome behaves correctly

Component: Untriaged → Notifications and Alerts
Product: Firefox → Toolkit

Works fine in Nightly build 72.0a1 (2019-10-28)

The priority flag is not set for this bug.
:MattN, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(MattN+bmo)

(In reply to miroslav.vanek from comment #1)

Works fine in Nightly build 72.0a1 (2019-10-28)

Does the notification look the same on Nightly?

https://searchfox.org/mozilla-central/rev/e7c61f4a68b974d5fecd216dc7407b631a24eb8f/toolkit/components/alerts/nsAlertsService.cpp#147-154 is the code that is supposed to handle this. It checks for QUNS_ACCEPTS_NOTIFICATIONS.

Component: Notifications and Alerts → Widget: Win32
Flags: needinfo?(MattN+bmo)
Product: Toolkit → Core

The priority flag is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)

Doesn't sounds like a widget bug. Lets look for a regression range.

Flags: needinfo?(jmathies)
Priority: -- → P2

Hi,

I've reproduced this bug on Win 10 on Firefox from version 65 to 73. I did not proceed with the regression after version 65 (10/22/2018) since it was so far back. I can confirm that on FF74 this bug doesn't happen and that the icon is also different. If you have any suggestions for the mozregression I will take it. I attach a picture with the difference in notifications from Nightly and previous versions.

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop
Version: 70 Branch → 73 Branch

Is there a nightly-only flag that makes this different there?

Flags: needinfo?(MattN+bmo)

(In reply to Julien Cristau [:jcristau] from comment #8)

Is there a nightly-only flag that makes this different there?

Yes, and IMO we should really disable this since it's not actively being worked on: https://searchfox.org/mozilla-central/rev/623de665034eee43a54ff02939b61385ffd5990d/modules/libpref/init/all.js#4119-4121

rs=me to fix that.

Flags: needinfo?(MattN+bmo)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

Thanks to Gijs for pointing out this isn't a duplicate since the issue is with the non-Nightly behaviour.

(In reply to Jim Mathies [:jimm] from comment #5)

Doesn't sounds like a widget bug. Lets look for a regression range.

It is a Windows OS integration bug which have been considered "Widget bugs" in the past IIRC.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

I think there might have been some confusion in this bug. Bug 1614274 disabled the Windows native notification system, so what that means is that XUL alerts are getting used all the time now. But I think XUL alerts are actually the kind that are affected by this bug. It isn't about the setting that comment 3 mentions, it's about the Windows 10 Focus Assist feature (or, formerly called quiet hours). Native toasts always honor focus assist, because that API handles it automatically, but our XUL alerts implementation ignores it.

It looks like to really fix this, we would need to either always use native toast notifications, or add a check of the current focus assist state to nsAlertsService::ShouldShowAlert.

Native toasts always honor focus assist, because that API handles it automatically, but our XUL alerts implementation ignores it.

True. This is not a Windows OS integration bug, instead this is rather a Windows OS non-integration bug. We should work on integration to fix this rather than disabling it.

No longer regressions: 1636748
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: