electron/docs/api
Nilay Arya 32ae696ee0
feat: add --disable-geolocation command-line flag for macOS (#45934)
* feat(macos): add --disable-geolocation-mac command-line flag

* internally deny geolocation requests if flag set

e

* wrap PermissionRequestHandler instead

* wrap custom handler and deny regardless of response

* Update docs/api/command-line-switches.md

Co-authored-by: Will Anderson <will@itsananderson.com>

* resolving conflicts during rebase

* tests added

* tests added: minor changes

* move IsGeolocationDisabledViaCommandLine inside ElectronPermissionManager as a static member

* test: inject fixturesPath via --boot-eval

* Update shell/browser/electron_permission_manager.cc

Co-authored-by: Robo <hop2deep@gmail.com>

* chore: Fixup after merge

* fixup after merge

---------

Co-authored-by: Will Anderson <will@itsananderson.com>
Co-authored-by: Robo <hop2deep@gmail.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
2025-11-13 10:39:03 -05:00
..
structures feat: add sharedTexture module to import shared texture (#47317) 2025-11-07 09:50:28 +01:00
app.md docs: clarify BrowserWindow and App API support status on Wayland (#48740) 2025-10-31 16:35:08 -05:00
auto-updater.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
base-window.md feat: enable resetting accent color (#48274) 2025-10-21 10:49:08 -04:00
browser-view.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
browser-window.md docs: clarify BrowserWindow and App API support status on Wayland (#48740) 2025-10-31 16:35:08 -05:00
client-request.md feat: add bypassCustomProtocolHandlers option to net.request (#47331) 2025-11-10 16:37:29 -05:00
clipboard.md docs: deprecate clipboard API access from renderer processes (#48877) 2025-11-12 10:16:31 -05:00
command-line-switches.md feat: add --disable-geolocation command-line flag for macOS (#45934) 2025-11-13 10:39:03 -05:00
command-line.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
content-tracing.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
context-bridge.md feat: context bridge support VideoFrame (#47316) 2025-08-07 16:41:49 -04:00
cookies.md refactor: revert url::DomainIs() for cookie domains (#44153) 2024-10-08 18:39:37 -07:00
corner-smoothing-css.md fix: corner smoothing feature gate crash (#47759) 2025-07-16 08:39:17 -07:00
crash-reporter.md docs: recommend calling renderer process modules from preload script (#48427) 2025-10-04 18:44:10 +02:00
debugger.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
desktop-capturer.md docs: add caveats for Electron PipeWire implementation (#48242) 2025-10-28 12:39:12 -07:00
dialog.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
dock.md docs: add Menu module tutorials (#47268) 2025-07-15 15:09:32 -07:00
download-item.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
environment-variables.md fix: position window titlebar buttons correctly in Ubuntu on Wayland (#48490) 2025-10-20 12:42:23 -07:00
extensions-api.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
extensions.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
global-shortcut.md docs: add Menu module tutorials (#47268) 2025-07-15 15:09:32 -07:00
image-view.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
in-app-purchase.md docs: transactions-updated event type (#45527) 2025-02-10 10:12:17 -05:00
incoming-message.md build: update some build dependencies (#43882) 2024-09-26 00:12:11 -07:00
ipc-main-service-worker.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
ipc-main.md docs: Make ipcRenderer and ipcMain listener API docs consistent (#44651) 2024-11-18 14:44:30 -08:00
ipc-renderer.md docs: recommend calling renderer process modules from preload script (#48427) 2025-10-04 18:44:10 +02:00
menu-item.md docs: clarify meaning of string value for menu item icon (#48919) 2025-11-13 16:10:18 +01:00
menu.md docs: add Menu module tutorials (#47268) 2025-07-15 15:09:32 -07:00
message-channel-main.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
message-port-main.md docs: fix broken links (#36519) 2022-12-05 13:18:57 -05:00
native-image.md feat: add SF Symbol support to NativeImage::CreateFromNamedImage (#48203) 2025-11-04 11:15:34 +01:00
native-theme.md feat: expose nativeTheme.shouldUseDarkColorsForSystemIntegratedUI (#46438) 2025-04-10 12:08:29 +02:00
navigation-history.md docs: clarify navigationhistory offsets (#45616) 2025-02-21 17:35:17 -06:00
net-log.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
net.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
notification.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
parent-port.md docs: fix broken links (#36519) 2022-12-05 13:18:57 -05:00
power-monitor.md docs: fix powerMonitor event types (#45518) 2025-02-10 10:13:11 -05:00
power-save-blocker.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
process.md feat: add fileBacked and purgeable fields to process.getSystemMemoryInfo() for macOS (#47628) 2025-08-20 09:49:41 +02:00
protocol.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
push-notifications.md fix: APNS token ids are lowercase ASCII (#46101) 2025-03-20 07:57:50 +01:00
safe-storage.md docs: mention kwallet6 command line option (#47427) 2025-06-10 16:12:31 -04:00
screen.md docs: add note on DIP and DPI (#47080) 2025-05-15 16:51:49 -05:00
service-worker-main.md docs: fix some module headings (#48177) 2025-08-27 14:52:26 -07:00
service-workers.md chore: lint code blocks in docs with ESLint (#42113) 2025-05-29 12:45:26 -07:00
session.md docs: security.md use runnable examples for permissions and csp (#43248) 2025-10-27 16:56:53 -04:00
share-menu.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
shared-texture.md feat: add sharedTexture module to import shared texture (#47317) 2025-11-07 09:50:28 +01:00
shell.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
system-preferences.md feat: Add getAccentColor on Linux (#48027) 2025-10-21 14:26:30 -04:00
touch-bar-button.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-color-picker.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-group.md fix: ensure the typescript definitions only export correct value types (#28712) 2021-06-15 13:50:31 -07:00
touch-bar-label.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-other-items-proxy.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
touch-bar-popover.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-scrubber.md fix: documentation spelling errors (#43366) 2024-08-22 15:44:55 +02:00
touch-bar-segmented-control.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-slider.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar-spacer.md docs: type names changed from wrapper to primitive (#31752) 2021-11-15 22:13:18 -06:00
touch-bar.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
tray.md feat: allow macOS tray to maintain position (#47838) 2025-08-07 19:25:50 +02:00
utility-process.md docs: unify [!NOTE] structure (#46893) 2025-05-09 14:36:42 -07:00
view.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
web-contents-view.md docs: no class inheritance (#47403) 2025-06-10 10:00:06 +02:00
web-contents.md chore: bump chromium to 140.0.7281.0 (main) (#47616) 2025-07-14 13:42:37 -07:00
web-frame-main.md feat: webFrameMain.fromFrameToken (#47850) 2025-07-31 16:41:44 -04:00
web-frame.md docs: recommend calling renderer process modules from preload script (#48427) 2025-10-04 18:44:10 +02:00
web-request.md feat: add excludeUrls and modify urls in WebRequestFilter for better URL filtering (#44692) 2025-02-17 12:40:47 -08:00
web-utils.md docs: recommend calling renderer process modules from preload script (#48427) 2025-10-04 18:44:10 +02:00
webview-tag.md chore: bump chromium to 140.0.7281.0 (main) (#47616) 2025-07-14 13:42:37 -07:00
window-open.md docs: update allowed window.open options (#48428) 2025-10-03 01:29:26 +02:00