Anyone wrote polyfill for the `chrome.storage.session` API?

Since Firefox uses persistent background script, implementing a polyfill should be possible and pretty straightforward.
Except for two complications:

  • to access the data from other contexts like options page/extension page, one would have to open a port to background script and ask for the data
  • replace browser.storage.onChanged with a Proxy and extend it with session areaName - and also broadcast changes to other contexts

https://developer.chrome.com/docs/extensions/reference/storage/#property-session
https://bugs.chromium.org/p/chromium/issues/detail?id=1185226

Or would it be better to create a bug in bugzilla and implement it directly in Firefox?
I don’t really know how these things works under the hood…

EDIT:
Found the bugzilla bug: