electron/docs/api
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
..
structures feat: enable Windows Control Overlay on Linux (#41769) 2024-06-27 14:56:36 +02:00
accelerator.md
app.md feat: Implement password delegate for NSS (#41205) 2024-07-17 09:48:03 -04:00
auto-updater.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
base-window.md feat: enable Windows Control Overlay on Linux (#41769) 2024-06-27 14:56:36 +02:00
browser-view.md
browser-window.md feat: enable Windows Control Overlay on Linux (#41769) 2024-06-27 14:56:36 +02:00
client-request.md build: add Markdown lint check for unescaped angle brackets (#41753) 2024-04-04 14:50:35 -04:00
clipboard.md
command-line-switches.md docs: add backticks around example URL (#42536) 2024-06-17 16:35:26 -07:00
command-line.md
content-tracing.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
context-bridge.md chore: update @electron/lint-roller to 2.1.0 (#42078) 2024-05-10 11:00:15 +02:00
cookies.md
crash-reporter.md docs: backslash escape parametrized TypeScript types (#41575) 2024-03-25 11:19:44 +01:00
debugger.md
desktop-capturer.md
dialog.md docs: correct the return value for canceled showSaveDialog (#41926) 2024-04-23 11:29:14 -04:00
dock.md docs: fix the Apple HIG link for Dock context menu (#42450) 2024-06-13 15:24:05 -05:00
download-item.md feat: add `getPercentComplete` / `getCurrentBytesPerSecond` / `getEndTime` to DownloadItem (#42805) 2024-07-15 19:32:44 -04:00
environment-variables.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
extensions.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
global-shortcut.md
in-app-purchase.md
incoming-message.md
ipc-main.md docs: backslash escape parametrized TypeScript types (#41575) 2024-03-25 11:19:44 +01:00
ipc-renderer.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
menu-item.md docs: use "id" instead of "label" for positions (#41843) 2024-04-14 17:10:09 -07:00
menu.md docs: use "id" instead of "label" for positions (#41843) 2024-04-14 17:10:09 -07:00
message-channel-main.md
message-port-main.md
native-image.md docs: `nativeImage` api cleanup (#41519) 2024-03-12 12:33:56 -04:00
native-theme.md
navigation-history.md feat: duplicate navigation related APIs to `contents.navigationHistory` (#41752) 2024-06-05 09:34:47 -07:00
net-log.md
net.md docs - Update net.md (#42691) 2024-07-01 14:45:49 -04:00
notification.md
parent-port.md
power-monitor.md
power-save-blocker.md
process.md chore: bump chromium to 124.0.6323.0 (main) (#41412) 2024-02-29 10:31:13 +01:00
protocol.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
push-notifications.md docs: backslash escape parametrized TypeScript types (#41575) 2024-03-25 11:19:44 +01:00
safe-storage.md docs: clarify security semantics of safeStorage (#42666) 2024-06-26 13:24:06 -07:00
screen.md
service-workers.md
session.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
share-menu.md
shell.md
system-preferences.md feat: expose system preferences to utility process (#42203) 2024-06-20 11:15:57 -04:00
touch-bar-button.md
touch-bar-color-picker.md
touch-bar-group.md
touch-bar-label.md
touch-bar-other-items-proxy.md
touch-bar-popover.md
touch-bar-scrubber.md
touch-bar-segmented-control.md
touch-bar-slider.md
touch-bar-spacer.md
touch-bar.md
tray.md docs: `nativeImage` api cleanup (#41519) 2024-03-12 12:33:56 -04:00
utility-process.md docs: Properly document runAsNode utility process option (#41255) 2024-02-06 15:54:36 -08:00
view.md feat: customize border radius of Views (#42320) 2024-07-16 20:16:25 -04:00
web-contents-view.md feat: Allow WebContentsView to accept webContents object. (#42086) 2024-05-30 12:45:35 -07:00
web-contents.md docs: grammar fix in isBeingCaptured docs (#42692) 2024-07-01 15:01:27 -04:00
web-frame-main.md docs: ensure all links are on a single line (#42235) 2024-05-28 11:15:18 -07:00
web-frame.md
web-request.md docs: backslash escape parametrized TypeScript types (#41575) 2024-03-25 11:19:44 +01:00
web-utils.md
webview-tag.md fix: fixed the type of `WebviewTag.webpreferences` (#42275) 2024-05-25 22:06:06 -07:00
window-open.md