81bdba67ec
* 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> |
||
---|---|---|
.. | ||
auto-updater | ||
exports | ||
views | ||
app.ts | ||
auto-updater.ts | ||
base-window.ts | ||
browser-view.ts | ||
browser-window.ts | ||
clipboard.ts | ||
content-tracing.ts | ||
crash-reporter.ts | ||
desktop-capturer.ts | ||
dialog.ts | ||
global-shortcut.ts | ||
in-app-purchase.ts | ||
ipc-main.ts | ||
menu-item-roles.ts | ||
menu-item.ts | ||
menu-utils.ts | ||
menu.ts | ||
message-channel.ts | ||
module-list.ts | ||
native-theme.ts | ||
net-fetch.ts | ||
net-log.ts | ||
net.ts | ||
notification.ts | ||
power-monitor.ts | ||
power-save-blocker.ts | ||
protocol.ts | ||
push-notifications.ts | ||
safe-storage.ts | ||
screen.ts | ||
session.ts | ||
share-menu.ts | ||
system-preferences.ts | ||
touch-bar.ts | ||
tray.ts | ||
utility-process.ts | ||
view.ts | ||
web-contents-view.ts | ||
web-contents.ts | ||
web-frame-main.ts |