Accessing one add-on's data from another?

I’ve been googling for a while but can’t find anything about this, so I thought I’d ask.

There’s an add-on which stores data (a session manager). I want to implement some new functionality using that data, without altering the first add-on.

So: can I create a new add-on that would access the data from that other add-on?

Or is one add-on’s storage inaccessible from other add-ons?

1 Like

No, an extension cannot directly access or modify another extension’s storage. However, you can use runtime.connect() to send messages to and from another extension. This would allow you to create an API in your first extension that your second extension can connect to.

1 Like