Skip to content

Can no longer step into methods exposed via contextBridge #45399

Open

Description

@pushkin-

Preflight Checklist

Electron Version

34.0.2

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 Version 24H2 (Os Build 26100.2894)

What arch are you using?

x64

Last Known Working Electron version

33.32

Expected Behavior

I expect to be able to step into functions that I expose via contextBridge.exposeInMainWorld

Actual Behavior

As of the latest stable version, I can no longer do this.

This isn't particularly important to me, but reporting in case this was an unintentional change.

Testcase Gist URL

https://gist.github.com/pushkin-/5b542e02e6ddbd130124cd6ea270f499

Additional Information

  1. start app
  2. In devtools, press ctrl+p to open renderer.js and set a breakpoint at __apis.foo()
  3. Click the "Click" button
  4. Press F11 to step into the code. This doesn't work anymore.

Activity

  1. added
    has-repro-gist
    on Jan 30, 2025
  2. moved this to 👀 Unsorted Items in 34-x-yon Jan 30, 2025
  3. nikwen commented on Jan 31, 2025

    @nikwen
    Member

    Good catch! debugger statements in functions exposed via the context bridge are also ignored (Fiddle gist).

    They work in v33.3.2 and are broken in v34.0.2 and v35.0.0-alpha.5.

  4. added
    status/confirmed
    and removed on Jan 31, 2025
  5. moved this to 👀 Unsorted Items in 35-x-yon Jan 31, 2025
  6. added
    bug/regression ↩️
    on Jan 31, 2025
  7. Nantris commented on Feb 1, 2025

    @Nantris
    Contributor

    There were changes to executeJavaScriptInIsolatedWorld which broke something in our setup and I suspect they're the underlying cause.

  8. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 35-x-yon Feb 5, 2025
  9. codebytere commented on Feb 6, 2025

    @codebytere
    Member
  10. samuelmaddock commented on Feb 6, 2025

    @samuelmaddock
    Member

    Changes between v33.3.2...v34.0.2 in context bridge related files:

    Both seem fairly minimal so I suspect this could be related to a change elsewhere.

  11. nikwen commented on Feb 6, 2025

    @nikwen
    Member

    It broke between v34.0.0-nightly.20241015 and v34.0.0-alpha.1.

    The only change was a Chrome roll: v34.0.0-nightly.20241015...v34.0.0-alpha.1

    Chrome roll PR: #44137

  12. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 34-x-yon Feb 12, 2025
  13. codebytere commented on Nov 3, 2025

    @codebytere
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    34-x-y35-x-ybug 🪲bug/regression ↩️component/devtoolscomponent/webframehas-repro-gistplatform/allstatus/confirmed

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions