[Bug]: Preload script not running on child-window "top" frame #38844
Labels
25-x-y
26-x-y
bug 🪲
component/BrowserWindow
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/all
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
16.0.5
What operating system are you using?
Ubuntu
Operating System Version
20.04
What arch are you using?
x64
Last Known Working Electron version
16.0.4
Expected Behavior
I have an app that uses the preload script on some contexts.
Recently I found out that in some scenarios the preload script is not running.
Im using the setWindowOpenHandler function in order to use the same preload in all future child window that will be created.
Electron fiddle gist is added for refrence.
Bug flow:
Actual Behavior
Bug flow:
Testcase Gist URL
https://gist.github.com/cbb4249641359cce34b87c0203b55d8a
Additional Information
Tested also 26.0.0-alpha.7 to make sure its not something that was fixed in newer versions
Looking at the release notes this PR seems to be what's causing this bug: #32108
The text was updated successfully, but these errors were encountered: