Closed Bug 1881097 Opened 4 months ago Closed 2 months ago

Ensure nsRange::ComparePoint works for a given node that is in the shadow selection

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: sefeng, Assigned: sefeng)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

No description provided.
Summary: Ensure nsRange::ComparePoint works for a give node that is in the shadow selection → Ensure nsRange::ComparePoint works for a given node that is in the shadow selection

The patch tweaks a few functions along the call stack, the goal here
is to make sure nsContentUtils::IsPointInSelection can detect points
in ShadowDOM selection.

There's an additional change to SelectionUtils.sys.mjs to make sure
the correct context menu items are displayed when the current selection
crosses the boundary.

Assignee: nobody → sefeng
Status: NEW → ASSIGNED
Pushed by sefeng@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/02fb4b67c7e1
Ensure nsContentUtils::IsPointInSelection works for point in selection that crosses the boundary r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/45713 for changes under testing/web-platform/tests
Regressions: 1891515
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1891711
Regressions: 1891714
Regressions: 1891724
Type: enhancement → task
Regressions: 1896225
Depends on: 1900426
No longer depends on: 1900426
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: