Open Bug 1795604 Opened 2 years ago Updated 10 months ago

Firefox Notifications Only On Default Monitor

Categories

(Toolkit :: Alerts Service, enhancement)

Firefox 105
Desktop
Windows 10
enhancement

Tracking

()

People

(Reporter: megamorphg, Unassigned)

References

Details

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

Steps to reproduce:

  1. Open a window on secondary monitor
  2. Trigger notification

Actual results:

Notification appears on primary monitor

Expected results:

Notification appears on same monitor as window that calls it.
Or have an option to set default notification monitor (so can have notifications always spawn in a specific monitor).

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Win32
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Component: Widget: Win32 → Notifications and Alerts
Ever confirmed: true
OS: Unspecified → Windows 10
Product: Core → Toolkit
Hardware: Unspecified → Desktop

Hi Ahmed, can you share your monitor arrangement? E.g., does it look like this?

+---------------+   +---------------+
|               |   |               |
|               |   |               |
|    Primary    |   |   Secondary   |
|               |   |               |
|               |   |               |
+---------------+   +---------------+

Or like this?

+---------------+
|               |
|               |
|    Primary    |
|               |
|               |
+---------------+

+---------------+
|               |
|               |
|   Secondary   |
|               |
|               |
+---------------+

Or is the secondary monitor on the left/top, and the primary monitor is on the bottom/right?

It looks like we're moving the alert to screen.availLeft + screen.availWidth - window.outerWidth and screen.availTop + screen.availHeight - window.outerHeight, minus a small margin. My understanding is the Screen API is not aware of multiple monitors, and these properties represent the combined width/height of the screen space. So I think that means notifications end up on whichever screen is bottommost and rightmost. I haven't had time to test this yet, though.

This is likely to do with the XUL alerts service fallback backend.

Component: Notifications and Alerts → Alerts Service

"notifications end up on whichever screen is bottommost and rightmost"
That would make sense! My monitor configuration is primary is on bottom and secondary on top.

However, I stopped using this XUL alerts and am starting to get used to Windows native notifications since it piles up if I miss the notifications (without having to do chrome styling and piling up on screen).

Honestly, may be fine to close this since the behavior is understood and since this alert system is being phased out.

You need to log in before you can comment on or make changes to this bug.