Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

LibWeb: Return a representation of an 'Agent' in 'relevant agent' #3142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shannonbooth
Copy link
Contributor

This makes it more convenient to use the 'relvant agent' concept,
instead of the awkward dynamic casts we needed to do for every call
site.

@shannonbooth shannonbooth force-pushed the relevant-agent-cumbersome branch 2 times, most recently from 410f794 to 32c6262 Compare January 4, 2025 21:11
@shannonbooth shannonbooth force-pushed the relevant-agent-cumbersome branch from 32c6262 to b68b5f6 Compare January 4, 2025 23:07

// https://dom.spec.whatwg.org/#mutation-observer-list
// FIXME: This should be a set.
Vector<GC::Ref<DOM::MutationObserver>> mutation_observers;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I think CI might be complaining from this not being visited? I'm not sure what makes this any different from a GC perspective though..? It was a Vector<GC:Ref<T>> beforehand, so not sure how this would become a problem now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that turned out to be the issue, wonder why it didnt come up before

@shannonbooth shannonbooth force-pushed the relevant-agent-cumbersome branch from b68b5f6 to 3a776dc Compare January 5, 2025 01:58
This makes it more convenient to use the 'relvant agent' concept,
instead of the awkward dynamic casts we needed to do for every call
site.

mutation_observers is also changed to hold a GC::Root instead of raw
GC::Ptr. Somehow this was not causing problems before, but trips up CI
after these changes.
@shannonbooth shannonbooth force-pushed the relevant-agent-cumbersome branch from 3a776dc to 8fd9f0c Compare January 5, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant