Triple-click line selection no longer works properly on unstyled (tree view) XML sitemaps
Categories
(Core :: DOM: Selection, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| relnote-firefox | --- | 139+ |
| firefox-esr115 | --- | unaffected |
| firefox-esr128 | --- | unaffected |
| firefox139 | --- | verified |
| firefox140 | --- | verified |
| firefox141 | --- | verified |
People
(Reporter: pokechu022, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-release+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0
Steps to reproduce:
- Navigate to e.g. https://example.myshopify.com/sitemap.xml
- Triple-click the text "https://example.myshopify.com/sitemap_products_1.xml?from=4450&to=4450"
Actual results:
A word gets selected on the second click, and then the selection gets cleared on the 3rd click (Firefox 139)/the full page appears to be selected but isn't (Nightly 141).
Expected results:
The line should be selected. (Since the sitemap has no styles, this is the only way to actually select the text to navigate to the other sitemap). In prior versions, this might include or exclude the <loc> tags depending on if the text was wrapped (see https://example.myshopify.com/sitemap_products_1.xml?from=4450&to=4450 for an example); IMO it would be better to never include the surrounding tags.
This regressed with https://phabricator.services.mozilla.com/D244519 / bug 1958639 (for Firefox 139), and further regressed with bug 1932150 (mozregression points to https://phabricator.services.mozilla.com/D231591 but I think it's a different change associated with that ticket).
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Yeah..thanks for the bug report. I'll take a look about this.
Comment 2•1 year ago
|
||
Probably I should let emilio to handle this bug because the change made in bug 1958639 was the cause here..
Should we allow NAC for static XML document to be paragraph selected ?
Thoughts Emilio?
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
| bugherder | ||
| Reporter | ||
Comment 6•1 year ago
|
||
This is actually something I use surprisingly often, on the order of multiple times a day (though I imagine I'm the exception and the vast majority of people never even look at an XML sitemap, let alone try to select something in it). Is there any chance that this could be included in the next 139 release (assuming one happens), or is it too niche for that?
| Assignee | ||
Comment 7•1 year ago
|
||
Comment on attachment 9491504 [details]
Bug 1969100 - Don't ignore UA-widget nodes for paragraph selection. r=masayuki,sefeng,#layout
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: One liner fix for a regression recently introduced.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 0
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): One-liner.
- String changes made/needed: none
- Is Android affected?: Yes
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 8•1 year ago
|
||
Comment on attachment 9491504 [details]
Bug 1969100 - Don't ignore UA-widget nodes for paragraph selection. r=masayuki,sefeng,#layout
Approved for 140.0b4.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 10•1 year ago
|
||
I was able to reproduce this issue on an affected Nightly build from 2025-05-28 on Windows 10. I have verified that the issue is fixed in both Nightly 141.0a1 (20250602211130) and Firefox 140.0b4 (20250602090557) across multiple platforms: Windows 10, Windows 11, macOS 11, and Ubuntu 22.04. Triple-click selection now works correctly, selecting the entire line as expected.
Comment 11•1 year ago
|
||
Comment on attachment 9491504 [details]
Bug 1969100 - Don't ignore UA-widget nodes for paragraph selection. r=masayuki,sefeng,#layout
Approved for 139.0.4
Updated•1 year ago
|
Comment 12•1 year ago
|
||
| uplift | ||
Comment 13•1 year ago
|
||
Added to the 139.0.4 relnotes.
Fixed various selection issues when triple-clicking text in some situations.
Comment 14•1 year ago
|
||
Verified as fixed using Firefox 139.0.4-build1 (20250609112858) on Windows 10, Windows 11, macOS 11, and Ubuntu 22.04.
Triple-clicking now correctly selects the entire line as expected.
Updated•1 year ago
|
Description
•