electron/lib
arno renevier 81bdba67ec
feat: Implement password delegate for NSS (#41205)
* feat: Implement password delegate for NSS (#41188)

Introduce an app event client-certificate-request-password. It allows
the user to display a UI to prompt for the password.

An alternative would have been to implement a class similar to
CryptoModulePasswordDialogView, to provide the UI. This might have been
simpler for the user, comparing to letting them implement the UI. But it
seems like electron does not have an i18n framework, so it's not
possible to provide a locale aware UI.

* fix lint:markdown error

* address review comments

* use a trampoline handler in JS. The api exposed is now app.setClientCertRequestPasswordHandler
* use properties on the Event object instead of positional parameters
* remove ChromeNSSCryptoModuleDelegate::OnPassword in favor of args->GetNext(&password_)

* address review comments second round

- backslash escape parametrized TypeScript
- rename hostName param to hostname
- use base::ScopedAllowBaseSyncPrimitivesForTesting
- and then, rename ChromeNSSCryptoModuleDelegate to ElectronNSSCryptoModuleDelegate

* Update docs/api/app.md

Co-authored-by: Sam Maddock <samuel.maddock@gmail.com>

* Update docs/api/app.md

Co-authored-by: Erick Zhao <erick@hotmail.ca>

---------

Co-authored-by: Arno Renevier <arnaud@switchboard.app>
Co-authored-by: Sam Maddock <samuel.maddock@gmail.com>
Co-authored-by: Erick Zhao <erick@hotmail.ca>
2024-07-17 09:48:03 -04:00
..
browser feat: Implement password delegate for NSS (#41205) 2024-07-17 09:48:03 -04:00
common fix: recognize 'undefined' header value in ClientRequest (#41615) 2024-03-27 16:46:07 -07:00
isolated_renderer refactor: cleanup global variable declarations (#38410) 2023-05-24 20:01:07 +02:00
node fix: missing fetch-dependent interfaces in Node.js (#42419) 2024-06-11 16:59:53 -05:00
renderer chore: bump node to v20.13.1 (main) (#42088) 2024-05-13 11:43:14 -04:00
sandboxed_renderer refactor: type-safe module imports / requires (#41192) 2024-02-05 16:36:28 +09:00
utility feat: expose system preferences to utility process (#42203) 2024-06-20 11:15:57 -04:00
worker fix: fetch-dependent interfaces in Web Workers (#42579) 2024-06-20 11:01:50 -04:00