Bug 1813034 - Port bug 1811633: Use our own asn1js bundle without depending on m-c. r=freaktechnik

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

--HG--
extra : amend_source : 42ed69fa269b522a338ad3f936d697e5f380dbf4
This commit is contained in:
Ping Chen 2023-02-09 21:39:19 +11:00
Родитель efd5de2e2a
Коммит 936387d0f8
6 изменённых файлов: 17 добавлений и 3 удалений

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

@ -37,6 +37,7 @@ chat/chat-prefs.js
# third-party code
chat/protocols/matrix/lib/**
chat/protocols/xmpp/lib/**
third_party
# preprocessed files
chat/content/imtooltip.xml

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

@ -48,3 +48,6 @@ mozilla
# Ignore Storybook generated files
^mail/components/storybook/node_modules/
^mail/components/storybook/storybook-static/
# Ignore third_party npm files
third_party/asn1js/node_modules/

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

@ -10,9 +10,7 @@ const EXPORTED_SYMBOLS = [
"LDAPResponse",
];
var {
asn1js: { asn1js },
} = ChromeUtils.import("chrome://global/content/certviewer/asn1js_bundle.jsm");
var { asn1js } = ChromeUtils.importESModule("resource:///modules/asn1js.mjs");
/**
* A base class for all LDAP request and response messages, see

7
third_party/asn1js/moz.build поставляемый Normal file
Просмотреть файл

@ -0,0 +1,7 @@
# 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/.
EXTRA_JS_MODULES += [
"asn1js.mjs",
]

4
third_party/moz.build поставляемый
Просмотреть файл

@ -3,6 +3,10 @@
# 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/.
DIRS += [
"asn1js",
]
if CONFIG["TB_LIBOTR_PREBUILT"]:
DEFINES["TB_LIBOTR_PREBUILT"] = CONFIG["TB_LIBOTR_PREBUILT"]

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

@ -2,6 +2,7 @@ comm/chat/protocols/matrix/lib
comm/chat/protocols/xmpp/lib
comm/mail/components/storybook/storybook-static
comm/mailnews/mapi/include
comm/third_party/asn1js
comm/third_party/botan
comm/third_party/bzip2
comm/third_party/json-c