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 1816039] Make HTMLEditor handle selection ranges which starts from or ends in `<foo inert #38533

Merged
merged 1 commit into from Feb 16, 2023

Conversation

moz-wptsync-bot
Copy link
Collaborator

According to the WPTs and their result in the other browsers, we should:

  • do not work with a range anchored from a node in an element which has inert.
  • collapse the range first when it ends at a node in an element which has inert.

See new WPT for the detail.

Note that inert with contenteditable must not be so major cases. Therefore,
this patch does not fix the edge cases like the nsFrameSelection use cases
and replacing Selection cases of the other edit commands/operations.

Depends on D169037

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1816039
gecko-commit: e91291cda07a215c99f1b36e8d8d1e28935a0d9e
gecko-reviewers: m_kato

…n `<foo inert

According to the WPTs and their result in the other browsers, we should:
* do not work with a range anchored from a node in an element which has `inert`.
* collapse the range first when it ends at a node in an element which has `inert`.

See new WPT for the detail.

Note that `inert` with `contenteditable` must not be so major cases.  Therefore,
this patch does not fix the edge cases like the `nsFrameSelection` use cases
and replacing `Selection` cases of the other edit commands/operations.

Depends on D169037

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1816039
gecko-commit: e91291cda07a215c99f1b36e8d8d1e28935a0d9e
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 3b7244a into master Feb 16, 2023
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1816039 branch February 16, 2023 13:02
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