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 1625755] Make HTMLEditor::DoInsertHTMLWithContext() check whether inserted content stays at expected point before modifying next insertion point #22668

Merged
merged 1 commit into from Apr 3, 2020

Conversation

moz-wptsync-bot
Copy link
Collaborator

I'm still not sure how the crash occurs especially on Thunderbird. However,
it could be possible if pointToInsert is modified with an orphan node (i.e.,
when pointToInsert.GetContainer() returns nullptr). Therefore, this patch
makes it check whether the inserted node stays at expected position or not,
and if it's not, make it keep inserting next content nodes to previous position
because it must look like odd that inserting to different position.

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1625755
gecko-commit: 2839bb5efce7296af4e4ab2ac0c316c1e1c3563a
gecko-integration-branch: autoland
gecko-reviewers: m_kato

…ontent stays at expected point before modifying next insertion point

I'm still not sure how the crash occurs especially on Thunderbird.  However,
it could be possible if `pointToInsert` is modified with an orphan node (i.e.,
when `pointToInsert.GetContainer()` returns `nullptr`).  Therefore, this patch
makes it check whether the inserted node stays at expected position or not,
and if it's not, make it keep inserting next content nodes to previous position
because it must look like odd that inserting to different position.

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1625755
gecko-commit: 2839bb5efce7296af4e4ab2ac0c316c1e1c3563a
gecko-integration-branch: autoland
gecko-reviewers: m_kato
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.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit 441cc9a into master Apr 3, 2020
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1625755 branch April 3, 2020 14:09
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