Bug 1821927 - Convert toolkit/components/tooltiptext to ES modules. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D172515
This commit is contained in:
Noah 2023-03-14 14:34:57 +00:00
parent 156df8f509
commit 4352e1cc2c
3 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,7 @@
* 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/. */
function TooltipTextProvider() {}
export function TooltipTextProvider() {}
TooltipTextProvider.prototype = {
getNodeText(tipElement, textOut, directionOut) {
@ -170,5 +170,3 @@ TooltipTextProvider.prototype = {
classID: Components.ID("{f376627f-0bbc-47b8-887e-fc92574cc91f}"),
QueryInterface: ChromeUtils.generateQI(["nsITooltipTextProvider"]),
};
var EXPORTED_SYMBOLS = ["TooltipTextProvider"];

View File

@ -8,7 +8,7 @@ Classes = [
{
'cid': '{f376627f-0bbc-47b8-887e-fc92574cc91f}',
'contract_ids': ['@mozilla.org/embedcomp/default-tooltiptextprovider;1'],
'jsm': 'resource://gre/modules/TooltipTextProvider.jsm',
'esModule': 'resource://gre/modules/TooltipTextProvider.sys.mjs',
'constructor': 'TooltipTextProvider',
},
]

View File

@ -7,7 +7,7 @@
BROWSER_CHROME_MANIFESTS += ["tests/browser.ini"]
EXTRA_JS_MODULES += [
"TooltipTextProvider.jsm",
"TooltipTextProvider.sys.mjs",
]
XPCOM_MANIFESTS += [