Skip to content

Invoking DevTools from native menu bar via Menu -> View -> Toggle Developer Tools throws "JavaScript error ... in main process" #45386

@projektorius96

Description

@projektorius96

Preflight Checklist

Electron Version

34.0.1

What operating system(s) are you using?

Windows

Operating System Version

10.0.19045 Build 19045

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Expected behaviour to see DevTools, such as :

Image

Actual Behavior

As titled; the bloody error I get (see screenshot below)

Image

Testcase Gist URL

https://gist.github.com/projektorius96/745bc4a7640b0b60443a814db475a666

Additional Information

Consider it is accepted as bug, perhaps if there is some way (I am not aware of) to tell Electron during the application lifecycle, that web contents were attached to some View and its ready to be shown, it may be solved without actual bugfix, don't know, just speaking my mind, I am kindly requesting a feedback, whatsoever ! 👼🏼

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions