Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

expose non-mutable FrameManager on Target #182

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Conversation

jvatic
Copy link
Contributor

@jvatic jvatic commented Oct 13, 2023

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).

Copy link
Owner

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reasonable

@mattsse mattsse merged commit 88470ca into mattsse:main Oct 13, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants