mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
712 stars 69 forks source link

expose non-mutable FrameManager on Target #182

Closed jvatic closed 8 months ago

jvatic commented 8 months ago

I couldn't find another way of getting an ExecutionContextId for a FrameId (i.e. to run commands targeting a specific frame within a page) without this patch to expose a non-mutable &FrameManager through &Target (mut Handler.targets() -> &Target -> &FrameManager -> &Frame -> &DOMWorld -> ExecutionContextId).