Zend certified PHP/Magento developer

Where does Firefox store push notifications?

I made a NodeJS script a while ago that can read Chromium notifications by reading the LevelDB database where they’re stored. I use it to have more granularity when handling notifications, and to sync them with my phone.

Problem is, in the coming months Chromium browsers will drop support for MV2, and with it some extensions I made, so I’ll need to move to Firefox soon.

So I need to know if/where Firefox stores its push notifications, so I can make the script compatible with Firefox, otherwise I’ll have to leave Chrome running in the background just for the script to work, which isn’t ideal.

I’ve tried going through the Firefox source code to see if I can find a way of intercepting/reading the notifications, but I don’t know C++, so that’s a shot in the dark.

I did find these files which could be important:

https://hg.mozilla.org/releases/mozilla-release/file/c61f5f5ead48c78a80c80db5c489bdc7cfaf8175/toolkit/components/alerts/resources/content/alert.js
https://hg.mozilla.org/releases/mozilla-release/file/c61f5f5ead48c78a80c80db5c489bdc7cfaf8175/services/fxaccounts/FxAccountsPush.js
https://hg.mozilla.org/releases/mozilla-release/file/c61f5f5ead48c78a80c80db5c489bdc7cfaf8175/toolkit/components/alerts/AlertNotification.cpp