mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 17:55:15 -10:00
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
39 lines
1.2 KiB
JavaScript
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;
|