Notifications API Notifications Appear at Top-Right of Screen or Off-Screen
Categories
(Toolkit Graveyard :: Notifications and Alerts, defect)
Tracking
(firefox-esr52 wontfix, firefox-esr68 wontfix, firefox58 wontfix, firefox59 wontfix, firefox60 wontfix, firefox61 wontfix, firefox74 wontfix, firefox75 wontfix, firefox76 verified, firefox77 verified)
People
(Reporter: bugzilla-2, Unassigned)
References
()
Details
(Keywords: regression, regressionwindow-wanted)
Attachments
(4 files)
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Updated•8 years ago
|
Updated•8 years ago
|
Reporter | ||
Comment 1•7 years ago
|
||
Comment 6•7 years ago
|
||
Reporter | ||
Comment 8•7 years ago
|
||
Reporter | ||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment hidden (off-topic) |
Comment hidden (off-topic) |
Comment 15•7 years ago
|
||
Updated•7 years ago
|
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Updated•7 years ago
|
Comment 21•7 years ago
|
||
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
Comment 24•7 years ago
|
||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
I experience this bug all the time as well. Currently using Firefox 64.0.2.
Comment 30•6 years ago
|
||
Please look into this this. I get several Youtube notifications at once when I start Firefox and they all appear off-screen at the top-right, but you can click the shadow. That not only means that I can't see them, but that they also get on top of the Close button of all my applications, so I have a hard time closing any application without accidentally clicking the popup and opening a new tab with the video.
#1263155 seems to be a dupe of this.
It seems I'm also hit by another bug (not sure if it has been reported) where the notifications will never close unless I click the X or the notification itself. Yes, this also means that the notifications at the top-right won't close until I click them all in succession or I close the browser. As you can imagine, it gets annoying quickly.
User agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Build ID: 20190507214514
Comment 31•5 years ago
|
||
I think, I have valuable information:
I wrote an extension (lets call it A), that is showing notifications using promises. Because it did not work under webkit (Of course Opera and not Chrome! :) for this reason, I decided to rewrite it with the old API, instead of using a polyfill (polyfills are too inconvenient to me...). I created a new extension for this. Lets call it B.
Here is the result:
extension A (with promises): works fine! *)
extension B (old API): notification are out of screen most of the time (maybe to 98%)
*) Only if a notification is already out of the screen (from extension B), extension A does also stack it's notifications to that one and therefore is also out of the screen.
Can the other reporters confirm this?
=> Please fix this bug, before developing new features. - It is really annoying!
Comment 32•5 years ago
|
||
PS - I guess I should mention also following:
The goal of this extension was, to test messaging. - On a browserAction click the background script is sending a message to the content script, which is doing then two things:
- responding direktly
- sending a new message back to the background script
In both cases a notification is shown (for debugging, since console outputs are not available in the background script). This means, that there are always two notifications right after each other. - After the reports above, this should also be important to know...
Comment 33•5 years ago
|
||
Sorry, I have to correct myself!
It has nothing to do with using promises or not. My test webextension, which is using promises did raise just one notification. The one using the old API creates two of them as explained above... If I remove one notification in that extension, it is working fine too.
-> So the problem occures almost every time, when notifications are raised too fast after each other. Please fix this Mozillians.
Comment 34•5 years ago
•
|
||
There are multiple issue here:
Initially, the shadow of the combination was shown (regression in comment 18). Later, the lower part of a notification gets shown here (tested with Windows 8.1). For that, the regression range is https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=76733110704b975154ac0fa779445e6eae5da559&tochange=ac338559876df7b2e81388f2aac28d2e95ceb5ff this should be from bug 1240085 (not adding it as a regression because it's not the initial one).
With a dual screen setup (second screen above primary one):
Until the regression range with bug 1240085 landed, the widgets are shown on the primary if Firefox is on the secondary one and align vertically and start from the bottom. After it landed, they are shown on the primary screen and not aligned, either on the center left (1920x1080 screen, Windows 8.1) or at the bottom left and partially cut off (4K, Windows 10).
This behavior is also triggered if e.g. Google Calendar contains two events and fires a notification for each at the same time.
Requesting re-triage.
Steps to reproduce:
- Open a page which allows script execution (no restriction by CSP), e.g. https://wiki.mozilla.org/
- Open the Web Console: Press Ctrl+Shift+K
- Run this in the console:
Notification.requestPermission();
- If it is a recent Firefox version: Click onto the speech bubble in the location bar on the left and allow notifications.
- Run this in the console:
var n1 = new Notification("Hi! 1");
var n2 = new Notification("Hi! 2");
Updated•5 years ago
|
Comment 35•5 years ago
|
||
(In reply to Sebastian Hengst [:aryx] from comment #34)
There are multiple issue here:
Initially, the shadow of the combination was shown (regression in comment 18). Later, the lower part of a notification gets shown here (tested with Windows 8.1). For that, the regression range is https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=76733110704b975154ac0fa779445e6eae5da559&tochange=ac338559876df7b2e81388f2aac28d2e95ceb5ff this should be from bug 1240085 (not adding it as a regression because it's not the initial one).
This should be fixed by bug 1007344 in the next Nightly.
With a dual screen setup (second screen above primary one):
Until the regression range with bug 1240085 landed, the widgets are shown on the primary if Firefox is on the secondary one and align vertically and start from the bottom. After it landed, they are shown on the primary screen and not aligned, either on the center left (1920x1080 screen, Windows 8.1) or at the bottom left and partially cut off (4K, Windows 10).
Can you check if this is also fixed, if not, maybe morph this bug to be about it if that makes sense? (I didn't read all the history)
Comment 36•5 years ago
|
||
Multiple notifications are also aligned to the bottom left.
Patrick, do you still observe the issue with the latest Nightly build downloaded from https://www.mozilla.org/en-US/firefox/channel/desktop/ ?
Reporter | ||
Updated•5 years ago
|
Comment 37•5 years ago
|
||
Resolving as fixed. Please create a new bug if you still experience issues with desktop notifications. Thank you.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 38•5 years ago
|
||
Successfully reproduced the issue on Nightly (2018-01-20) under Windows 7 following the steps from Comment 0 and notifications were top right offscreen.
The issue is fixed on Firefox 76.0b7 and Nightly 77.0a1 (2020-04-23). Tests were performed under Windows 7 (x64) and Windows 10 (x64).
Comment 39•3 years ago
|
||
I'm experiencing this issue on Fx 97.0.1 under Manjaro KDE and alerts.useSystemBackend = false
because I don't like native OS notification. Notifications are showing up top right instead of bottom right.
Should I open a new issue or should this one be reopened?
Comment 40•3 years ago
|
||
:aryx said open a new issue.
if this is relevant, then reference it in the new one
Updated•1 year ago
|
Description
•