diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-29 13:07:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-29 13:07:33 +0200 |
commit | 58a55be1f11fa798b6cc2a4d19eda9deabd1574f (patch) | |
tree | 28f2f4d0b5bd3bcbfdf29f76c8467022076a8ecf /toolkit/mozapps/extensions/amIAddonPathService.idl | |
parent | 11caf6ecb3cb8c84d2355a6c6e9580a290147e92 (diff) | |
parent | 77e7fcac500629602059ad573c4ff6a9ff4d93b7 (diff) | |
download | UXP-58a55be1f11fa798b6cc2a4d19eda9deabd1574f.tar UXP-58a55be1f11fa798b6cc2a4d19eda9deabd1574f.tar.gz UXP-58a55be1f11fa798b6cc2a4d19eda9deabd1574f.tar.lz UXP-58a55be1f11fa798b6cc2a4d19eda9deabd1574f.tar.xz UXP-58a55be1f11fa798b6cc2a4d19eda9deabd1574f.zip |
Merge pull request #281 from janekptacijarabaci/pm_devtools_storage_mapURIToAddonId_1
[PALEMOON] [DevTools] Storage inspector throws "AddonPathService.mapURIToAddonId is not a function" when url changes
Diffstat (limited to 'toolkit/mozapps/extensions/amIAddonPathService.idl')
-rw-r--r-- | toolkit/mozapps/extensions/amIAddonPathService.idl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/amIAddonPathService.idl b/toolkit/mozapps/extensions/amIAddonPathService.idl index 863689858..9c9197a61 100644 --- a/toolkit/mozapps/extensions/amIAddonPathService.idl +++ b/toolkit/mozapps/extensions/amIAddonPathService.idl @@ -5,6 +5,8 @@ #include "nsISupports.idl" +interface nsIURI; + /** * This service maps file system paths where add-ons reside to the ID * of the add-on. Paths are added by the add-on manager. They can @@ -26,4 +28,10 @@ interface amIAddonPathService : nsISupports * associated with the given add-on ID. */ void insertPath(in AString path, in AString addonId); + + /** + * Given a URI to a file, return the ID of the add-on that the file belongs + * to. Returns an empty string if there is no add-on there. + */ + AString mapURIToAddonId(in nsIURI aURI); }; |