Can Firefox kill my background script if it's out of memory?

(Juraj Masiar) #1


For many weeks I’m trying to solve one strange bug that is being reported by several users every day, but I’m unable to reproduce it.

After releasing several new versions with improved error reporting I identified the issue as this:

  • my add-on sends message to the background script (requesting few megabytes of images) and it will receive one of these two errors:
    "Could not establish connection. Receiving end does not exist."
    "A request was aborted, for example through a call to IDBTransaction.abort."

These errors tends to happen to the users running 32-bit version of Firefox 58, this means they don’t have enough memory since Firefox is now upgrading to 64-bit automatically now if you have at least 4GB or RAM.

So my question is, can Firefox kill my background script (and cause the first error) or abort pulling images from IndexedDB, due to insufficient resources?