Storing Index database files for long paths from web extension

We are using index database storage for storing persistent data via web extension. These index database files are stored under a profile folder. For windows, profile folder path looks similar to -

C:\Users{userName}\AppData\Roaming\Mozilla\Firefox\Profiles{profileName}\storage\default\moz-extension+++32685a26-a0e5-4a5a-8151-71b89e65ddca^addonId=fd29864804c222152361d9a46fd6c98b7d88525e%40temporary-addon\idb{fileName}

This part has some variable components such as userName, profileName, fileName which would be different for different users & different machines. Windows has a restriction on max path length. We observed that storing into index database fails when this path length becomes greater that 238. The typical error that comes up while saving a file is :
“The operation failed for reasons unrelated to the database itself and not covered by any other error code.”

Our Web extension uses index database storage heavily and this bug will completely break the extension for some of the users. This bug exists on latest FF 50 and was present on earlier versions as well. Do you have work arounds for this issue and when can we expect a fix for this ?

This should be fixed, or at least ameliorated, by bug 1314361.

I have few questions

  1. Is this issue specific to windows ? Or it can happen on linux & mac as well ?
  2. We are already using latest FF 50. Can we ensure that next released version of firefox has this fix ?
    3 .Till the issue is fixed, is there any work around that we can suggest to our impacted users ?

Since the bug hasn’t been fixed yet, and it doesn’t appear to be considered critical, I wouldn’t expect it to land before Firefox 53. You should add yourself to the CC list on that bug to keep track of any updates.