Text-Fragments: Create Text Fragment from a range if there are other matches on the page
Categories
(Core :: DOM: Navigation, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: jjaschke, Assigned: jjaschke)
References
(Blocks 2 open bugs)
Details
Attachments
(5 files)
This bug is a follow-up to 1934825 and covers more complex cases for creating a text fragment from a range:
- Determine if it's impossible to create a text fragment because the context terms cannot be unique
- Select appropriate context terms which are short enough but point to the correct range
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
This is a prerequisite commit and introduces a data structure that is used in the following patches.
This patch introduces a helper function that converts the content of a nsRange into a fold case string.
Furthermore, it introduces a hashmap-based cache, which keeps the fold case representations accessible by nsRange pointer.
| Assignee | ||
Comment 3•1 year ago
|
||
This is a prerequisite commit which introduces helper algorithms required for the following patches.
Given two strings in fold case representation, the algorithms determine the common start or common end sub strings.
| Assignee | ||
Comment 4•1 year ago
|
||
This is a prerequisite commit for the following patches.
| Assignee | ||
Comment 5•1 year ago
|
||
This patch uses an iterative approach to identify valid context terms to ensure that a text directive points to the correct range:
For each candidate which would match the currently selected candidate, new candidates are created by extending each context term until the candidate does not match anymore.
Then, each of these candidates is matched against all remaining candidates to assess the quality of the candidate.
Then the candidate which has the smallest amount of matches is chosen as current candidate.
Comment 8•1 year ago
|
||
Backed out for causing build bustages
Backout link: https://hg.mozilla.org/integration/autoland/rev/c758d2df5740085083ebe05782b46a40510f4f9b
| Assignee | ||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3a660933d356
https://hg.mozilla.org/mozilla-central/rev/4d6a127a87d4
https://hg.mozilla.org/mozilla-central/rev/47d12af58cc9
https://hg.mozilla.org/mozilla-central/rev/bce86afcab54
https://hg.mozilla.org/mozilla-central/rev/f8857d2987af
https://hg.mozilla.org/mozilla-central/rev/87a98810be58
Description
•