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

Add a pretty diagram for the references in "Garbage collection and browsing contexts" #3863

Open
domenic opened this issue Jul 30, 2018 · 6 comments
Labels

Comments

@domenic
Copy link
Member

domenic commented Jul 30, 2018

https://html.spec.whatwg.org/#garbage-collection-and-browsing-contexts

Something like this:

hand-drawn reference graph

@tabatkins
Copy link
Contributor

I was bored, here you go: https://www.xanthir.com/pictures/gc-diagram.svg

@domenic
Copy link
Member Author

domenic commented Feb 15, 2019

@annevk we may want to tackle this while it's all fresh in our heads. Probably after all your ongoing cleanup.

@annevk
Copy link
Member

annevk commented Feb 17, 2019

Ideally after #4361.

@domenic
Copy link
Member Author

domenic commented Feb 22, 2019

This is my current attempt after all the recent changes:
image

Dotted lines are "weak references", e.g. document's BC is defined as "the BC whose session history has this document", and environment settings object's BC and responsible document are defined via algorithms which indirect through the ESO's Window object.

I'm not super-happy with that version in general; probably needs some pruning or focusing or similar.

@annevk
Copy link
Member

annevk commented Feb 24, 2019

#4390 will further complicate this.

(The agent in your diagram will belong to an agent cluster that's hold by a map in the BCG, btw.)

@tabatkins
Copy link
Contributor

Ping me when you're done enough to put something into the spec, and I'll adjust my previous diagram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants