summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-29 13:07:33 +0200
committerGitHub <noreply@github.com>2018-04-29 13:07:33 +0200
commit58a55be1f11fa798b6cc2a4d19eda9deabd1574f (patch)
tree28f2f4d0b5bd3bcbfdf29f76c8467022076a8ecf /toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
parent11caf6ecb3cb8c84d2355a6c6e9580a290147e92 (diff)
parent77e7fcac500629602059ad573c4ff6a9ff4d93b7 (diff)
downloadUXP-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/test/xpcshell/test_mapURIToAddonID.js')
-rw-r--r--toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js b/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
index a6f9c8052..a153256dc 100644
--- a/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
@@ -95,8 +95,10 @@ function run_test_early() {
"resource://gre/modules/addons/XPIProvider.jsm", {});
// Make the early API call.
- do_check_null(s.XPIProvider.mapURIToAddonID(uri));
+ // AddonManager still misses its provider and so doesn't work yet.
do_check_null(AddonManager.mapURIToAddonID(uri));
+ // But calling XPIProvider directly works immediately
+ do_check_eq(s.XPIProvider.mapURIToAddonID(uri), id);
// Actually start up the manager.
startupManager(false);