Bug 1287007 - Mark all browserAction methods as async r=billm

E.g. browser.browserAction.enable(...).then(...) now works as expected.
Removed a Promise.resolve() because that is the default.

MozReview-Commit-ID: 4Shxtn0rjYH
This commit is contained in:
Rob Wu
2016-09-02 14:22:09 -07:00
parent 58cc11a650
commit a87111ce7c
2 changed files with 42 additions and 1 deletions

View File

@@ -461,7 +461,6 @@ extensions.registerSchemaAPI("browserAction", "addon_parent", context => {
let icon = IconDetails.normalize(details, extension, context);
BrowserAction.for(extension).setProperty(tab, "icon", icon);
return Promise.resolve();
},
setBadgeText: function(details) {