Closed Bug 1917991 Opened 1 year ago Closed 2 months ago

Implementation for highlightsFromPoint API

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
relnote-firefox --- 150+
firefox150 --- fixed

People

(Reporter: stephanie.zhang, Assigned: jjaschke)

References

()

Details

Attachments

(5 files, 1 obsolete file)

Steps to reproduce:

Filing this bug to track the implementation of the "highlightsFromPoint" API.

Mozilla Standards Position: https://github.com/mozilla/standards-positions/issues/1068

Summary: highlightsFromPoint → Implementation for highlightsFromPoint API
Assignee: nobody → jjaschke
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

This patch does not change any logic, it just
moves code, so that it can be used AbstractRange
as well as from nsRange.

Attachment #9476970 - Attachment description: Bug 1917991, part 1.3 - HighlightsFromPoint: Make `DOMRectList` behave like an array. r=emilio! → Bug 1917991, part 1.3 - HighlightsFromPoint: Add range iteration interface to `DOMRectList`. r=emilio!

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:jjaschke, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(jjaschke)
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Flags: needinfo?(jjaschke)

Test collapsed ranges, invalid StaticRanges, and overlapping ranges within the same highlight.

Attachment #9476970 - Attachment is obsolete: true
Pushed by jjaschke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9c569a79572e https://hg.mozilla.org/integration/autoland/rev/4b50c5314d35 part 1.1 - HighlightsFromPoint: Move GetClientRect into AbstractRange: Move`RangeSubtreeIterator` into `ContentIterator` file. r=emilio https://github.com/mozilla-firefox/firefox/commit/10c28cc41090 https://hg.mozilla.org/integration/autoland/rev/a437ad29a927 part 1.2 - HighlightsFromPoint: Move GetClientRect() into AbstractRange. r=emilio https://github.com/mozilla-firefox/firefox/commit/be1f3a6f50d2 https://hg.mozilla.org/integration/autoland/rev/140b42d7b91b part 2 - HighlightsFromPoint: Implement webidl interface. r=emilio,webidl,smaug https://github.com/mozilla-firefox/firefox/commit/6b88681d6426 https://hg.mozilla.org/integration/autoland/rev/8783b1dad258 part 3 - HighlightsFromPoint: Implement `HighlightsFromPoint()`. r=emilio https://github.com/mozilla-firefox/firefox/commit/53c20dba9cb7 https://hg.mozilla.org/integration/autoland/rev/41e1394d53b7 part 4 - HighlightsFromPoint: Add more test cases. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/58209 for changes under testing/web-platform/tests
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9075bc6e1706 https://hg.mozilla.org/integration/autoland/rev/8666bbfb98e0 Revert "Bug 1917991, part 4 - HighlightsFromPoint: Add more test cases. r=emilio" for causing bustages at Highlight.cpp.
Flags: needinfo?(jjaschke)
Pushed by jjaschke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/25d713905913 https://hg.mozilla.org/integration/autoland/rev/fcfe17b7e0e7 part 1.1 - HighlightsFromPoint: Move GetClientRect into AbstractRange: Move`RangeSubtreeIterator` into `ContentIterator` file. r=emilio https://github.com/mozilla-firefox/firefox/commit/525057feab71 https://hg.mozilla.org/integration/autoland/rev/bdaf498163df part 1.2 - HighlightsFromPoint: Move GetClientRect() into AbstractRange. r=emilio https://github.com/mozilla-firefox/firefox/commit/456c803c3e3c https://hg.mozilla.org/integration/autoland/rev/609d1534fc42 part 2 - HighlightsFromPoint: Implement webidl interface. r=emilio,webidl,smaug https://github.com/mozilla-firefox/firefox/commit/c041a52c4b15 https://hg.mozilla.org/integration/autoland/rev/0555bd0d1f1d part 3 - HighlightsFromPoint: Implement `HighlightsFromPoint()`. r=emilio https://github.com/mozilla-firefox/firefox/commit/9a23fe76ca0f https://hg.mozilla.org/integration/autoland/rev/8222648764f1 part 4 - HighlightsFromPoint: Add more test cases. r=emilio

:jjaschke is this something you want to mention in the Fx150 release notes? Feel free to nominate if so.

Flags: needinfo?(jjaschke)

Release Note Request (optional, but appreciated)
[Why is this notable]: highlightsFromPoint() allows web pages to interact with CSS Highlights by returning all Highlights at a given point.
[Affects Firefox for Android]: Yes
[Suggested wording]:
[Links (documentation, blog post, etc)]: MDN

relnote-firefox: --- → ?
Flags: needinfo?(jjaschke)
Upstream PR merged by moz-wptsync-bot
Upstream PR was closed without merging
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: