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

Remove i-amphtml-element class on forced disconnect #19858

Merged
merged 1 commit into from Dec 13, 2018

Conversation

jridgewell
Copy link
Contributor

When an FIE is being removed, it calls Resource.p.disconnect on all contained child resources. This deletes the Resource association.

But some elements (ownership elements), during disconnect, ferry signals down to children. This is usually done by querying the DOM for .i-amphtml-element. Elements with this class are supposed to have a Resource instance, and we usually attempt to get the Resource from the element.

But we just deleted it. Hence, bugs.

Fixes #18207
Fixes #18483
Fixes #16032

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

Successfully merging this pull request may close these issues.

None yet

3 participants