I’ve been using ‘Application.storage’ in many of my extensions. Apparently this has been deprecated around Fx 40. I get a warning message in the console that reads:
Thu Aug 13 2015 16:37:22
Error: DEPRECATION WARNING: FUEL is deprecated, you should use the add-on SDK instead.
You may find more details about this deprecation at: https://developer.mozilla.org/Add-ons/SDK/
jar:file:///C:/Program%20Files%20(x86)/Firefox%20Developer%20Edition/browser/omni.ja!/components/fuelApplication.js 1458 Application
jar:file:///C:/Program%20Files%20(x86)/Firefox%20Developer%20Edition/browser/omni.ja!/components/fuelApplication.js 726 af_ci
chrome://febe/content/febe.js 11437 FEBE.errorConsole
chrome://febe/content/febe.js 358 FEBE.febeLoad
chrome://febe/content/febe.js 28 null
null 0 null
Source file: resource://gre/modules/Deprecated.jsm
Line: 79
I looked briefly at the documentation for the SDK but didn’t see anything that might replace ‘Application.storage’. Besides, I was under the impression that the SDK was for writing ‘restart-less’ extensions. I’m still developing with XUL overlays so I’m not sure the SDK applies to me.
I’m assuming that ‘Application.storage’ is part of the FUEL implementation (even though I don’t specifically load it (e.g., ‘var Application = Components.classes["@mozilla.org/fuel/application;1"].getService(Components.interfaces.fuelIApplication);’).
Is there another acceptable way to emulate what the ‘Application.storage’ functions do?