зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1778109 - Convert toolkit/components/certviewer/ to ES modules. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D172796
This commit is contained in:
Родитель
022869c142
Коммит
762c0bc10d
|
@ -3,10 +3,6 @@
|
|||
* 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 = ["AboutCertViewerChild"];
|
||||
import { RemotePageChild } from "resource://gre/actors/RemotePageChild.sys.mjs";
|
||||
|
||||
const { RemotePageChild } = ChromeUtils.importESModule(
|
||||
"resource://gre/actors/RemotePageChild.sys.mjs"
|
||||
);
|
||||
|
||||
class AboutCertViewerChild extends RemotePageChild {}
|
||||
export class AboutCertViewerChild extends RemotePageChild {}
|
|
@ -2,16 +2,12 @@
|
|||
* 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";
|
||||
|
||||
var EXPORTED_SYMBOLS = ["AboutCertViewerParent"];
|
||||
|
||||
const TYPE_CA = 1;
|
||||
const TYPE_USER = 2;
|
||||
const TYPE_EMAIL = 4;
|
||||
const TYPE_SERVER = 8;
|
||||
|
||||
class AboutCertViewerParent extends JSWindowActorParent {
|
||||
export class AboutCertViewerParent extends JSWindowActorParent {
|
||||
getCertificates() {
|
||||
let certs = {
|
||||
[TYPE_CA]: [],
|
|
@ -11,8 +11,8 @@ BROWSER_CHROME_MANIFESTS += ["tests/browser/browser.ini"]
|
|||
MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.ini"]
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
"AboutCertViewerChild.jsm",
|
||||
"AboutCertViewerParent.jsm",
|
||||
"AboutCertViewerChild.sys.mjs",
|
||||
"AboutCertViewerParent.sys.mjs",
|
||||
]
|
||||
|
||||
with Files("**"):
|
||||
|
|
|
@ -62,10 +62,10 @@ let JSPROCESSACTORS = {
|
|||
let JSWINDOWACTORS = {
|
||||
AboutCertViewer: {
|
||||
parent: {
|
||||
moduleURI: "resource://gre/modules/AboutCertViewerParent.jsm",
|
||||
esModuleURI: "resource://gre/modules/AboutCertViewerParent.sys.mjs",
|
||||
},
|
||||
child: {
|
||||
moduleURI: "resource://gre/modules/AboutCertViewerChild.jsm",
|
||||
esModuleURI: "resource://gre/modules/AboutCertViewerChild.sys.mjs",
|
||||
|
||||
events: {
|
||||
DOMDocElementInserted: { capture: true },
|
||||
|
|
Загрузка…
Ссылка в новой задаче