Files
firefox/devtools/client/aboutdebugging/modules/addon.js
T
Alexandre Poirot 3e32f9edd3 Bug 1506546 - Refactor about:debuggings. r=yulia,jdescottes
I did a dedicated patch for converting both about:debuggings as it is slightly more
complex as we have to tweak redux data, wrappers, mocks.
This patch also convert a manual "reload" request being done by about:debugging
and instead use protocol.js front to do it.
Also, I moved isLegacyTemporaryExtension to the front as it depends on accessing the form
and it should be better to keep form processing to the fronts, if possible.

MozReview-Commit-ID: 16qZkuCBp9b

Depends on D12576

Differential Revision: https://phabricator.services.mozilla.com/D12577
2018-11-27 19:17:11 +00:00

39 lines
1.2 KiB
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
loader.lazyImporter(this, "AddonManagerPrivate", "resource://gre/modules/AddonManager.jsm");
const {
debugLocalAddon,
debugRemoteAddon,
getExtensionUuid,
openTemporaryExtension,
parseFileUri,
uninstallAddon,
} = require("devtools/client/aboutdebugging-new/src/modules/extensions-helper");
/**
* Most of the implementation for this module has been moved to
* devtools/client/aboutdebugging-new/src/modules/extensions-helper.js
* The only methods implemented here are the ones used in the old aboutdebugging only.
*/
exports.isTemporaryID = function(addonID) {
return AddonManagerPrivate.isTemporaryInstallID(addonID);
};
/**
* See JSDoc in devtools/client/aboutdebugging-new/src/modules/extensions-helper for all
* the methods exposed below.
*/
exports.debugLocalAddon = debugLocalAddon;
exports.debugRemoteAddon = debugRemoteAddon;
exports.getExtensionUuid = getExtensionUuid;
exports.openTemporaryExtension = openTemporaryExtension;
exports.parseFileUri = parseFileUri;
exports.uninstallAddon = uninstallAddon;