зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
591 B
JavaScript
17 строки
591 B
JavaScript
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
"use strict";
|
|
|
|
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
|
|
|
const { XPCOMUtils } = Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
const paymentSrv = Cc["@mozilla.org/dom/payments/payment-request-service;1"].getService(Ci.nsIPaymentRequestService);
|
|
|
|
addMessageListener("teardown", function() {
|
|
paymentSrv.cleanup();
|
|
paymentSrv.setTestingUIService(null);
|
|
sendAsyncMessage('teardown-complete');
|
|
});
|