:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS
347 matches across 11 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | shell/renderer/service_worker_data.h | 1 | // Copyright (c) 2025 Salesforce, Inc. |
| LOW | shell/renderer/renderer_client_base.h | 1 | // Copyright (c) 2017 GitHub, Inc. |
| LOW | shell/renderer/electron_api_service_impl.h | 1 | // Copyright (c) 2019 Slack Technologies, Inc. |
| LOW | shell/renderer/electron_autofill_agent.h | 1 | // Copyright (c) 2017 GitHub, Inc. |
| LOW | shell/renderer/electron_smooth_round_rect.h | 1 | // Copyright (c) 2024 Salesforce, Inc. |
| LOW | shell/renderer/api/electron_api_spell_check_client.h | 1 | // Copyright (c) 2014 GitHub, Inc. |
| LOW | shell/renderer/api/electron_api_spell_check_client.h | 81 | // (e.g. "word:word"). |
| LOW | shell/app/electron_crash_reporter_client.h | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
| LOW | shell/app/uv_stdio_fix.h | 1 | // Copyright (c) 2022 Slack Technologies, Inc. |
| LOW | shell/app/electron_library_main.mm | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/app/electron_main_delegate_mac.mm | 1 | // Copyright (c) 2014 GitHub, Inc. |
| LOW | shell/browser/file_select_helper.h | 1 | // Copyright (c) 2021 Microsoft. All rights reserved. |
| LOW | shell/browser/electron_browser_client.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/electron_browser_main_parts.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/electron_browser_main_parts_mac.mm | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/browser_observer.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/native_window_mac.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/electron_permission_manager.h | 1 | // Copyright (c) 2016 GitHub, Inc. |
| LOW | shell/browser/web_contents_permission_helper.h | 1 | // Copyright (c) 2016 GitHub, Inc. |
| LOW | shell/browser/feature_list_mac.mm | 1 | // Copyright (c) 2024 Salesforce, Inc. |
| LOW | shell/browser/web_view_guest_delegate.h | 1 | // Copyright (c) 2015 GitHub, Inc. |
| LOW | shell/browser/file_select_helper_mac.mm | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| LOW | shell/browser/browser_process_impl.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| LOW | shell/browser/web_contents_preferences.h | 1 | // Copyright (c) 2015 GitHub, Inc. |
| LOW | shell/browser/electron_api_ipc_handler_impl.h | 1 | // Copyright (c) 2022 Slack Technologies, Inc. |
| LOW | shell/browser/native_window.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/relauncher.h | 1 | // Copyright (c) 2016 GitHub, Inc. |
| LOW | shell/browser/relauncher.h | 21 | // start a relauncher process, giving it the "writer" side of a pipe that it |
| LOW | shell/browser/relauncher.h | 41 | |
| LOW | shell/browser/relauncher.h | 61 | // process, and allows additional arguments to be supplied to the relauncher |
| LOW | shell/browser/native_window_mac.mm | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/native_window_mac.mm | 21 | #include "content/public/browser/browser_accessibility_state.h" |
| LOW | shell/browser/native_window_mac.mm | 41 | #include "skia/ext/skia_utils_mac.h" |
| LOW | shell/browser/native_window_mac.mm | 121 | // hit-test-transparent except where one of its descendants covers the |
| LOW | shell/browser/native_window_mac.mm | 581 | // |
| LOW | shell/browser/renderer_startup_data.h | 1 | // Copyright (c) 2026 Anthropic, PBC. |
| LOW | shell/browser/native_window_views.h | 1 | // Copyright (c) 2014 GitHub, Inc. |
| LOW | shell/browser/electron_child_process_host_flags.h | 1 | // Copyright (c) 2026 Microsoft GmbH. All rights reserved. |
| LOW | shell/browser/browser.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/browser_mac.mm | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/browser_mac.mm | 21 | #include "electron/mas.h" |
| LOW | …l/browser/electron_web_contents_utility_handler_impl.h | 1 | // Copyright (c) 2022 Slack Technologies, Inc. |
| LOW | shell/browser/electron_browser_context.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/zoom_level_delegate.h | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| LOW | shell/browser/electron_api_sw_ipc_handler_impl.h | 1 | // Copyright (c) 2025 Salesforce, Inc. |
| LOW | shell/browser/web_contents_zoom_controller.h | 1 | // Copyright (c) 2017 GitHub, Inc. |
| LOW | shell/browser/web_contents_zoom_controller.h | 21 | // Manages the zoom changes of WebContents. |
| LOW | shell/browser/microtasks_runner.h | 1 | // Copyright (c) 2018 GitHub, Inc. |
| LOW | shell/browser/auto_updater_mac.mm | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/native_window_observer.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/preload_code_cache.h | 1 | // Copyright (c) 2026 Anthropic, PBC. |
| LOW | shell/browser/preload_code_cache.h | 21 | // Stale or corrupt blobs are not detected here. V8's CachedData validation |
| LOW | shell/browser/certificate_manager_model.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| LOW | shell/browser/event_emitter_mixin.h | 1 | // Copyright (c) 2019 Slack Technologies, Inc. |
| LOW | shell/browser/web_contents_zoom_observer.h | 1 | // Copyright (c) 2023 Microsoft, GmbH |
| LOW | shell/browser/electron_autofill_driver.h | 1 | // Copyright (c) 2019 GitHub, Inc. |
| LOW | shell/browser/ui/file_dialog.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/ui/file_dialog_mac.mm | 1 | // Copyright (c) 2013 GitHub, Inc. |
| LOW | shell/browser/ui/tray_icon_cocoa.mm | 1 | // Copyright (c) 2014 GitHub, Inc. |
| LOW | shell/browser/ui/message_box.h | 1 | // Copyright (c) 2013 GitHub, Inc. |
| 189 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | spec/api-session-spec.ts | 89 | expect(cookie).to.exist.and.to.have.property('value', value); |
| CRITICAL | spec/spellchecker-spec.ts | 111 | expect(contextMenuParams.dictionarySuggestions).to.have.length.of.at.least(1); |
| CRITICAL | spec/spellchecker-spec.ts | 126 | expect(contextMenuParams.dictionarySuggestions).to.have.length.of.at.least(1); |
| CRITICAL | spec/api-net-spec.ts | 1217 | expect(httpVersion).to.be.a('string').and.to.have.lengthOf.at.least(1); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | spec/asar-spec.ts | 136 | async function expectToThrowErrorWithCode(_func: Function, _code: string) { |
| LOW | spec/asar-spec.ts | 153 | async function expectToThrowErrorWithCode (func, code) { |
| LOW | spec/api-service-worker-main-spec.ts | 81 | async function unregisterAllServiceWorkers() { |
| LOW | spec/webview-spec.ts | 48 | async function loadWebViewAndWaitForEvent( |
| LOW | spec/webview-spec.ts | 63 | async function loadWebViewAndWaitForMessage(w: WebContents, attributes: Record<string, string>): Promise<string> { |
| LOW | spec/index.js | 76 | function isDescendantOfCurrentProcess(pid) { |
| LOW | spec/index.js | 94 | async function killOrphanedElectronProcesses(suiteName) { |
| LOW | spec/lib/xdg-helpers.ts | 20 | export function getXdgDataDirsWithFallback(xdgDataHome: string, xdgDataDirs = process.env.XDG_DATA_DIRS) { |
| LOW | spec/lib/xdg-helpers.ts | 65 | function spawnProtocolLookupWithXdgMock( |
| LOW | spec/lib/xdg-helpers.ts | 116 | export async function spawnProtocolNameWithXdgMock( |
| LOW | spec/lib/xdg-helpers.ts | 128 | export function spawnProtocolInfoWithXdgMock( |
| LOW | spec/lib/artifacts.ts | 25 | export async function createArtifactWithRandomId(makeFileName: (id: string) => string, data: Buffer): Promise<string> { |
| LOW | spec/lib/warning-helpers.ts | 54 | export async function expectDeprecationMessages(func: () => any, ...expected: ExpectedWarningMessage[]) { |
| LOW | spec/lib/msix-helpers.ts | 41 | export async function registerExecutableWithIdentity(executablePath: string): Promise<void> { |
| LOW | spec/lib/msix-helpers.ts | 75 | export async function unregisterExecutableWithIdentity(): Promise<void> { |
| LOW | spec/lib/spec-helpers.ts | 326 | export function isTestingBindingAvailable() { |
| LOW | script/spec-runner.js | 382 | async function runMainProcessElectronTests() { |
| LOW | script/run-clang-format.py | 106 | def run_clang_format_diff_wrapper(args, file_name): |
| LOW | script/release/release.ts | 393 | async function verifyDraftGitHubReleaseAssets(release: MinimalRelease) { |
| LOW | script/release/release.ts | 467 | async function validateFileHashesAgainstShaSumMapping( |
| LOW | script/release/release.ts | 482 | async function verifyShasumsForRemoteFiles(remoteFilesToHash: HashableFile[], filesAreNodeJSArtifacts = false) { |
| LOW | script/release/uploaders/upload.py | 194 | def get_electron_build_version(): |
| LOW | script/lib/git.py | 255 | def munge_subject_to_filename(subject): |
| LOW | script/lib/util.py | 188 | def get_buildtools_executable(name): |
| LOW | script/lib/util.py | 208 | def get_chromium_buildtools_path_value(): |
| LOW | script/lib/utils.js | 162 | function getChromiumVersionFromDEPS(depsContent) { |
| LOW | lib/sandboxed_renderer/preload.ts | 28 | export function createPreloadProcessObject(): NodeJS.Process { |
| LOW | lib/sandboxed_renderer/preload.ts | 98 | export function executeSandboxedPreloadScripts( |
| LOW | lib/browser/parse-features-string.ts | 71 | export function parseCommaSeparatedKeyValue(source: string) { |
| LOW | lib/browser/parse-features-string.ts | 83 | export function parseWebViewWebPreferences(preferences: string) { |
| LOW | lib/browser/api/shared-texture.ts | 30 | function scheduleCheckManagedSharedTextures() { |
| LOW | lib/browser/api/shared-texture.ts | 36 | function unscheduleCheckManagedSharedTextures() { |
| LOW | lib/browser/api/shared-texture.ts | 43 | function checkManagedSharedTextures() { |
| LOW | lib/browser/api/shared-texture.ts | 73 | function wrapperReleaseFromRenderer(id: string, frameTreeNodeId: number) { |
| LOW | lib/browser/api/menu-item-roles.ts | 385 | export function shouldOverrideCheckStatus(role: RoleId) { |
| LOW | lib/browser/api/menu-item-roles.ts | 394 | export function shouldRegisterAccelerator(role: RoleId) { |
| LOW | lib/browser/api/dialog.ts | 325 | export function showCertificateTrustDialog( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | spec/api-shared-texture-spec.ts | 69 | // Step 1: Input source of shared texture handle. |
| LOW | spec/api-shared-texture-spec.ts | 77 | // Step 2: Import as SharedTextureImported |
| LOW | spec/api-shared-texture-spec.ts | 80 | // Step 3: Prepare for transfer to another process (win's renderer) |
| LOW | spec/api-shared-texture-spec.ts | 86 | // Step 4: Send the shared texture to the renderer process (goto preload.js) |
| LOW | spec/api-shared-texture-spec.ts | 91 | // Step 12: Release the shared texture resources at main process |
| LOW | spec/api-shared-texture-spec.ts | 97 | // Step 13: Release the imported shared texture |
| LOW | spec/api-shared-texture-spec.ts | 99 | // Step 14: Release the shared texture once GPU is done |
| LOW | spec/api-shared-texture-spec.ts | 103 | // Step 15: Slightly timeout and capture the node screenshot |
| LOW | spec/api-shared-texture-spec.ts | 105 | // Step 16: Compare the captured image with the target image |
| LOW | spec/api-shared-texture-spec.ts | 113 | // Step 17: Resize the target image to match the captured image size, in case dpr != 1 |
| LOW | spec/api-shared-texture-spec.ts | 116 | // Step 18: nativeImage have error comparing pixel data when color space is different, |
| LOW | spec/api-shared-texture-spec.ts | 127 | // Step 22: Verify the result from renderer process |
| LOW | spec/api-shared-texture-spec.ts | 190 | // Step 1: Input source of shared texture handle. |
| LOW | spec/api-shared-texture-spec.ts | 199 | // Step 2: Import as SharedTextureImported |
| LOW | spec/api-shared-texture-spec.ts | 230 | // Step 3: Transfer to another process (win's renderer) |
| LOW | spec/api-shared-texture-spec.ts | 236 | // Step 4: Release the imported and wait for signal to release the source |
| LOW | script/spec-runner.js | 288 | // Step 3: Rerun each failed test individually |
| LOW | script/spec-runner.js | 325 | // Step 4: Summary |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | script/apply_all_patches.py | 56 | except Exception as e: # pylint: disable=broad-except |
| LOW | script/get-git-version.py | 31 | except Exception: |
| LOW | script/run-clang-format.py | 112 | except Exception as e: |
| MEDIUM | script/run-clang-format.py | 106 | def run_clang_format_diff_wrapper(args, file_name): |
| LOW | script/patches-mtime-cache.py | 138 | except Exception: |
| LOW | script/patches-mtime-cache.py | 145 | except Exception: |
| LOW | script/patches-mtime-cache.py | 163 | except Exception: |
| LOW | script/release/uploaders/upload-index-json.py | 45 | except Exception as e: |
| LOW | script/release/uploaders/upload-node-checksums.py | 78 | except Exception: |
| LOW | script/release/uploaders/upload.py | 211 | except Exception: |
| LOW | script/release/uploaders/upload-symbols.py | 84 | except Exception as e: |
| MEDIUM | script/release/uploaders/upload-symbols.py | 85 | print(f"An error occurred while adding '{pdb}' to SymStore: {str(e)}") |
| LOW | script/lib/native_tests.py | 262 | except Exception as exception: |
| MEDIUM | script/lib/native_tests.py | 264 | print(f"An error occurred while running '{self.binary_path}':", |
| LOW | script/node/generate_node_headers.py | 25 | except Exception as e: |
| LOW | script/zip_manifests/check-zip-manifest.py | 27 | except Exception as e: |
| LOW | script/zip_manifests/check-zip-manifest.py | 34 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | script/verify-mksnapshot.py | 18 | |
| LOW | script/zip-symbols.py | 16 | |
| LOW | script/run-clang-format.py | 36 | |
| LOW | script/run-clang-format.py | 52 | |
| LOW | script/run-clang-format.py | 161 | |
| LOW | script/run-clang-format.py | 200 | |
| LOW | script/patches-mtime-cache.py | 84 | |
| LOW | script/release/uploaders/upload.py | 48 | |
| LOW | script/release/uploaders/upload-symbols.py | 39 | |
| LOW | script/lib/git.py | 62 | |
| LOW | script/lib/git.py | 299 | |
| LOW | script/lib/util.py | 69 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | CONTRIBUTING.md | 71 | If you use AI tools in any way to contribute to our project, please read our [AI Tool Policy](https://github.com/electro |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | spec/api-app-spec.ts | 410 | fs.writeFileSync(file, 'Lorem Ipsum'); |
| LOW | docs/tutorial/recent-documents.md | 42 | fs.writeFile(fileName, 'Lorem Ipsum', () => { |
| LOW | docs/tutorial/tutorial-2-first-app.md | 100 | "author": "Jane Doe", |
| LOW | docs/tutorial/tutorial-2-first-app.md | 160 | "author": "Jane Doe", |
| LOW | docs/fiddles/features/recent-documents/main.js | 15 | fs.writeFile(fileName, 'Lorem Ipsum', () => { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .devcontainer/on-create-command.sh | 11 | # Create the persisted buildtools config folder |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | script/lib/git.py | 55 | # Check if we're in the root folder already. |
| LOW | .github/workflows/rerun-apply-patches.yml | 71 | # Check if the workflow is currently in progress |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | script/run-clang-format.py | 11 |