Entering searchmode via keyword in the address bar double highlights the keyword
Categories
(Core :: DOM: Selection, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox122 | --- | wontfix |
firefox123 | --- | wontfix |
firefox124 | --- | wontfix |
firefox125 | --- | fix-optional |
People
(Reporter: oardelean, Assigned: jjaschke)
References
(Regression)
Details
(Keywords: regression)
Attachments
(4 files)
Found in
- Firefox Nightly 124.0a1;
Affected versions
- Firefox Nightly 124.0a1;
- Firefox 123.0b7;
- Firefox 122.0.1;
Tested platforms
- Windows 10;
- Ubuntu 22;
- macOS 12;
Affected platforms
- Windows 10;
Unaffected platforms
- macOS 12;
- Ubuntu 22;
Steps to reproduce
- Launch Firefox.
- Focus the address bar and start typing a searchmode keyword, such as `@google’.
Expected result
- Keyword is properly highlighted.
Actual result
- Keyword is doubly highlighted.
Regression range
Mozregression point to:
- last good: 2023-10-26
- first bad: 2023-10-27
- pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=21cb54edc5f62850f2a894190cc74f3ed97caafe&tochange=5e91ccb036dcc938a829cba0e590941fb65a0bdf
- potentially regressed by: bug 1860377
Comment 1•5 months ago
|
||
Set release status flags based on info from the regressing bug 1860377
:jjaschke, since you are the author of the regressor, bug 1860377, could you take a look?
For more information, please visit BugBot documentation.
Assignee | ||
Comment 2•5 months ago
|
||
Yeah, looks like a regression of Bug 1860377. (not sure if DOM::Selection or Layout is the right component. It's related to Selection / Custom Highlight API, but the code responsible lives in layout)
I'm on PTO at the moment. If it's super urgent, I can try to come up with a fix right away, otherwise I'll start working on this on Feb 19.
(keeping the ni?).
Assignee | ||
Updated•5 months ago
|
Updated•5 months ago
|
Comment 3•4 months ago
|
||
Set release status flags based on info from the regressing bug 1860377
Updated•4 months ago
|
Comment 4•9 days ago
|
||
We still need to have better understanding and investigation here.
Assignee | ||
Comment 5•9 days ago
|
||
Attached an image which shows the expected behavior. This is taken from Nightly 2022-01-01.
Assignee | ||
Comment 6•9 days ago
|
||
Adding a bit more context here. Bug 1860377 added support for painting overlapping selections, which is needed for Custom Highlight API (which uses selection code to paint ranges). The algorithm that's responsible for painting the overlap does this for all selection types. I assume that we need to change this so that painting overlapping ranges is only done for highlight ranges.
Assignee | ||
Comment 7•9 days ago
|
||
I will try and reincorporate the code from before Bug 1811823, so that non-highlight selections are painted the same way as before.
Assignee | ||
Comment 8•9 days ago
|
||
Assignee | ||
Comment 9•9 days ago
|
||
Added a screenshot of local windows build with attached patch incorporated.
Updated•8 days ago
|
Assignee | ||
Comment 10•8 days ago
|
||
Here's a try run.
The attached patch reduces the amount of selection ranges per segment to one per selection type / one per highlight with same name. This way, the double-highlighting visible in the original post are gone, while overlapping selections (e.g. normal selection over find-in-page, selection over custom highlight, ...) are still possible. Patch goes non-wip if the test results look green.
Updated•8 days ago
|
Description
•