Skip to content

Instantly share code, notes, and snippets.

diff --git a/toolkit/mozapps/extensions/internal/XPIProviderUtils.js b/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
--- a/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
+++ b/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
@@ -614,24 +614,21 @@ this.XPIDatabase = {
else {
this.rebuildUnreadableDB(e, aRebuildOnError);
}
}
finally {
if (fstream)
@rhelmer
rhelmer / async.diff
Last active November 15, 2016 19:19
diff --git a/toolkit/mozapps/extensions/internal/XPIProviderUtils.js b/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
--- a/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
+++ b/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
@@ -614,24 +614,21 @@ this.XPIDatabase = {
else {
this.rebuildUnreadableDB(e, aRebuildOnError);
}
}
finally {
if (fstream)
let install = AddonManager.getInstall({
"url": "/tmp/test.xpi",
"hash": "..."
});
install.then(...);
class SystemAddonInstallLocation extends DirectoryInstallLocation {
/**
* @param aName
* The string identifier for the install location
* @param aDirectory
* The nsIFile directory for the install location
* @param aScope
* The scope of add-ons installed in this location
* @param aResetSet
* True to throw away the current add-on set
diff --git a/client/ui/components/forms/AddonGroupForm.jsx b/client/ui/components/forms/AddonGroupForm.jsx
index 53037c9..f091fc0 100644
--- a/client/ui/components/forms/AddonGroupForm.jsx
+++ b/client/ui/components/forms/AddonGroupForm.jsx
@@ -33,7 +33,7 @@ class AddonGroupForm extends React.Component {
pk: pt.string,
saveAddonGroup: pt.func.isRequired,
saveRequest: pt.object,
- syncAddonGroup: pt.func.isRequired,
+ syncAddonGroups: pt.func.isRequired,
diff --git a/toolkit/mozapps/extensions/.eslintrc.js b/toolkit/mozapps/extensions/.eslintrc.js
--- a/toolkit/mozapps/extensions/.eslintrc.js
+++ b/toolkit/mozapps/extensions/.eslintrc.js
@@ -1,8 +1,11 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
+ "parserOptions": {
+ "ecmaVersion": 8,
+ },
{
"vendors": {},
"hashFunction": "sha512",
"name": "SystemAddons-no-update",
"schema_version": 1000
}
let install = yield new Promise(
resolve => AddonInstall.createInstall(resolve, addon._sourceBundle)
);
// Make the new install own its temporary file
install.ownsTempFile = true;
install.downloadCompleted();
"use strict";
Components.utils.import("resource://gre/modules/AddonManager.jsm");
const AddonBox = React.createClass({
getInitialState: function() {
return {data: []};
},
componentDidMount: function() {
AddonManager.getAddonsByTypes(["extension"], a => this.setState(a));
$ npm run build
> morgoth@ build /Users/rhelmer/src/morgoth
> webpack --config ./webpack.config.js
Hash: 281c3271bc39ad0bc486
Version: webpack 1.13.2
Child
Hash: 281c3271bc39ad0bc486
Version: webpack 1.13.2