You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, sometimes i cant evaluate scripts inside an iframe. The context doesnt show up.
If I open devtools i cant cleary see there is an context but the protocol doesnt provide access to it, at least not via Runtime.executionContextCreated
Call Target.setDiscoverTargets with dicover as true initially
When targets are created you will be a given a sessionId to interact with, you need to listen to Target.attachedToTarget events to get these, which should be fired due to setAutoAttach. (In my experience this doesn't always work with iframe targets, you might need to call attachToTarget explicitly)
You should call Runtime.enable with any new sessionIds from targets to ensure executionContextCreated is fired from within that session
Environment
Is the client running in a container? NO
Description
Hi, sometimes i cant evaluate scripts inside an iframe. The context doesnt show up.
If I open devtools i cant cleary see there is an context but the protocol doesnt provide access to it, at least not via
Runtime.executionContextCreated
Example
The text was updated successfully, but these errors were encountered: