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

[Gecko Bug 1032124] Use the referenced element to check whether to ignore a mutation event #17330

Merged
merged 1 commit into from Jun 14, 2019

Conversation

moz-wptsync-bot
Copy link
Collaborator

Using nsContentUtils::IsInSameAnonymousTree(this, aElement) to check will ignore all mutation notification for anonymous which will happen when is nested. This is the cause that second-level isn't properly synced with element mutation.

We should use the referenced element instead of this in the check condition.

Differential Revision: https://phabricator.services.mozilla.com/D34284

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1032124
gecko-commit: 96b0fd9c79cd30dfe59597a8a77564862eb30091
gecko-integration-branch: autoland
gecko-reviewers: emilio, longsonr

Using `nsContentUtils::IsInSameAnonymousTree(this, aElement)` to check will ignore all mutation notification for anonymous <use> which will happen when <use> is nested. This is the cause that second-level <use> isn't properly synced with element mutation.

We should use the referenced element instead of `this` in the check condition.

Differential Revision: https://phabricator.services.mozilla.com/D34284

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1032124
gecko-commit: 96b0fd9c79cd30dfe59597a8a77564862eb30091
gecko-integration-branch: autoland
gecko-reviewers: emilio, longsonr
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

Already reviewed downstream.

@moz-wptsync-bot moz-wptsync-bot merged commit e698502 into master Jun 14, 2019
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1032124 branch June 14, 2019 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants