Closed Bug 1823393 Opened 2 years ago Closed 2 years ago

Clear Cache add-on no longer shows (Windows native) notification on success

Categories

(Toolkit Graveyard :: Notifications and Alerts, defect)

Firefox 111
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1822817

People

(Reporter: glen.vee, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Steps to reproduce:

Upon upgrading to Firefox 111.0, both the Empty Cache Button add-on and the Firefox-recommended add-on Clear Cache stopped working, even after removal and re-installation. This has also been reported by other users of Clear Cache add-on in its main page.

Actual results:

Nothing at all, no notification from add-on

Expected results:

Add-on normally gives a notification upon success clearing cache

Both these add-ons worked flawlessly for years, until I upgraded to Firefox 111.0

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

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

Further investigation: both these add-ons appear to be emptying the cache, but no longer give any notification of success after completion. Checking the cache folder manually before and after using the add-ons, and also checking via about:cache in Firefox, I confirmed that the files are being correctly deleted from cache with the add-ons, but Firefox 111.0 is preventing any notification from the add-ons to verify success.

(In reply to glenvee from comment #3)

Further investigation: both these add-ons appear to be emptying the cache, but no longer give any notification of success after completion. Checking the cache folder manually before and after using the add-ons, and also checking via about:cache in Firefox, I confirmed that the files are being correctly deleted from cache with the add-ons, but Firefox 111.0 is preventing any notification from the add-ons to verify success.

Interesting! Firefox 111 defaults to using Windows native notifications, which is clearly not working for you. I just tested on my Windows 10 device and everything works fine. Can you see if you get notifications from a web site like https://bgrins.github.io/devtools-demos/misc/notifications.html? Also, what version of Windows are you using? We're tracking some issue with Windows 8/8.1 that may be the same issue. Thanks!

Flags: needinfo?(glen.vee)
Summary: add-on stopped working → Clear Cache add-on no longer shows (Windows native) notification on success

OK, well this gets interesting. Firstly, I am using Windows 8.1 where this issue presents. Up through Firefox 110.0.1, the "Success! Cache has been cleared" notification box popped up in Firefox after clicking the button. It stopped in Firefox 111 and 111.0.1.

If I go to https://bgrins.github.io/devtools-demos/misc/notifications.html and click the Send Notification button there, I get a Firefox popup asking for permission for that site to send notifications. I click Allow, and the notification from that page will appear every time I press the Send Notification button, and the Close existing notification button will close them.

Once I have allowed that website permission, the Empty Cache button will show a Success notification popup every time I use it in any tab. Once I close the browser and re-open it, the Cache notification stops working, even though the website still has permission to open its notifications.

When I go to https://bgrins.github.io/devtools-demos/misc/notifications.html again in the new browser session and click the Send Notification button there, its notification pops right up since the web page already has permission in Firefox now. Once I have opened that notification on that site again, the Empty Cache button shows notifications again for the rest of the browser session.

Weird

On my Windows 10 computer, the notifications work but they changed where they come up. In Firefox 110.01, they came up in a box in Firefox. Starting in Firefox 111, the notifications pop out from the Windows 10 notification area in the lower right corner of Windows 10, and a number 1 shows up momentarily in the notification corner of Windows. So clearly you changed how and where the notifications are coming for the add on, to use the Windows 10 notification area. I suspect something in that change is affecting the notifications in the older operating systems.

Flags: needinfo?(glen.vee)

Your description matches Bug 1822817. Essentially we moved to using Windows native notifications in the action center by default, but in the process of getting that working we introduced issues for Windows 8.

Marking this as a duplicate as resolving that will also fix this.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1822817
Resolution: --- → DUPLICATE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.