-
Notifications
You must be signed in to change notification settings - Fork 400
Add lib to wrap mozAddonManager #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lib to wrap mozAddonManager #368
Conversation
src/disco/addonManager.js
Outdated
getAddon() { | ||
// Resolves a promise with the addon. | ||
// This will be falsey if the addon wasn't found. | ||
return this.mozAddonManager.getAddonByID(this.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should have this just reject if the addon is falsey?
src/disco/addonManager.js
Outdated
} | ||
// If uninstallation succeeded return the original | ||
// promise. | ||
return addonUninstall; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will return a promise that yields true
, then? Shouldn't this just return
, which would be a promise that resolves with no arguments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I guess that covers both now and the future cases equally.
r+wc |
Fixes mozilla/addons#9577