зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1817015 - Convert JSM in browser/components/protocolhandler to ESM r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D172829
This commit is contained in:
Родитель
b114e49ce6
Коммит
4f6766932f
|
@ -3,11 +3,9 @@
|
|||
* 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/. */
|
||||
|
||||
var EXPORTED_SYMBOLS = ["WebProtocolHandlerRegistrar"];
|
||||
|
||||
const STRING_BUNDLE_URI = "chrome://browser/locale/feeds/subscribe.properties";
|
||||
|
||||
function WebProtocolHandlerRegistrar() {}
|
||||
export function WebProtocolHandlerRegistrar() {}
|
||||
|
||||
WebProtocolHandlerRegistrar.prototype = {
|
||||
get stringBundle() {
|
|
@ -8,7 +8,7 @@ Classes = [
|
|||
{
|
||||
'cid': '{efbd7b87-9b15-4684-abf0-dc2679daadb1}',
|
||||
'contract_ids': ['@mozilla.org/embeddor.implemented/web-protocol-handler-registrar;1'],
|
||||
'jsm': 'resource:///modules/WebProtocolHandlerRegistrar.jsm',
|
||||
'esModule': 'resource:///modules/WebProtocolHandlerRegistrar.sys.mjs',
|
||||
'constructor': 'WebProtocolHandlerRegistrar',
|
||||
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
||||
},
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
BROWSER_CHROME_MANIFESTS += ["test/browser/browser.ini"]
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
"WebProtocolHandlerRegistrar.jsm",
|
||||
"WebProtocolHandlerRegistrar.sys.mjs",
|
||||
]
|
||||
|
||||
XPCOM_MANIFESTS += [
|
||||
|
|
Загрузка…
Ссылка в новой задаче