Bug 1524688: Part 60 - Convert PaymentUIService to static registration. r=MattN

Differential Revision: https://phabricator.services.mozilla.com/D18470

--HG--
rename : browser/components/payments/paymentUIService.js => browser/components/payments/PaymentUIService.jsm
extra : rebase_source : 278a88c5b75067614913526fa6144435d6cc6794
This commit is contained in:
Kris Maglione 2019-01-30 11:56:05 -08:00
Родитель 07995a4aaa
Коммит 04a862d41a
5 изменённых файлов: 21 добавлений и 10 удалений

Просмотреть файл

@ -301,4 +301,4 @@ PaymentUIService.prototype = {
},
};
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([PaymentUIService]);
var EXPORTED_SYMBOLS = ["PaymentUIService"];

Просмотреть файл

@ -0,0 +1,14 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
Classes = [
{
'cid': '{01f8bd55-9017-438b-85ec-7c15d2b35cdc}',
'contract_ids': ['@mozilla.org/dom/payments/payment-ui-service;1'],
'jsm': 'resource:///modules/PaymentUIService.jsm',
'constructor': 'PaymentUIService',
},
]

Просмотреть файл

@ -9,9 +9,12 @@ BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
with Files('**'):
BUG_COMPONENT = ('Firefox', 'WebPayments UI')
EXTRA_COMPONENTS += [
'payments.manifest',
'paymentUIService.js',
EXTRA_JS_MODULES += [
'PaymentUIService.jsm',
]
XPCOM_MANIFESTS += [
'components.conf',
]
JAR_MANIFESTS += ['jar.mn']

Просмотреть файл

@ -1,2 +0,0 @@
component {01f8bd55-9017-438b-85ec-7c15d2b35cdc} paymentUIService.js
contract @mozilla.org/dom/payments/payment-ui-service;1 {01f8bd55-9017-438b-85ec-7c15d2b35cdc}

Просмотреть файл

@ -167,10 +167,6 @@
@RESPATH@/browser/components/EnterprisePoliciesContent.js
@RESPATH@/browser/components/EnterprisePolicies.manifest
@RESPATH@/components/toolkitsearch.manifest
#ifdef NIGHTLY_BUILD
@RESPATH@/browser/components/payments.manifest
@RESPATH@/browser/components/paymentUIService.js
#endif
@RESPATH@/components/WebVTT.manifest
@RESPATH@/components/WebVTTParserWrapper.js
@RESPATH@/components/nsHelperAppDlg.manifest