Closed Bug 1969100 Opened 1 year ago Closed 1 year ago

Triple-click line selection no longer works properly on unstyled (tree view) XML sitemaps

Categories

(Core :: DOM: Selection, defect)

Firefox 139
defect

Tracking

()

VERIFIED FIXED
141 Branch
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)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0

Steps to reproduce:

  1. Navigate to e.g. https://example.myshopify.com/sitemap.xml
  2. 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).

Component: Untriaged → DOM: Selection
Keywords: regression
Product: Firefox → Core
Regressed by: 1958639, 1932150

Yeah..thanks for the bug report. I'll take a look about this.

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?

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(emilio)
Attachment #9491504 - Attachment description: WIP: Bug 1969100 - Don't ignore UA-widget nodes for paragraph selection. → Bug 1969100 - Don't ignore UA-widget nodes for paragraph selection. r=masayuki,sefeng,#layout
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b2999dac529f Don't ignore UA-widget nodes for paragraph selection. r=sefeng
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch

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?

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
Attachment #9491504 - Flags: approval-mozilla-release?
Attachment #9491504 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9491504 [details]
Bug 1969100 - Don't ignore UA-widget nodes for paragraph selection. r=masayuki,sefeng,#layout

Approved for 140.0b4.

Attachment #9491504 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [uplift] [qa-ver-needed-c141/b140]
No longer regressed by: 1932150

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.

Has STR: --- → yes
Flags: qe-verify+
QA Contact: csasca → gmoldovan

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

Attachment #9491504 - Flags: approval-mozilla-release? → approval-mozilla-release+

Added to the 139.0.4 relnotes.

Fixed various selection issues when triple-clicking text in some situations.

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.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift] [qa-ver-needed-c141/b140] → [uplift] [qa-ver-needed-c141/b140] [qa-ver-done-c141/b140]
QA Whiteboard: [uplift] [qa-ver-needed-c141/b140] [qa-ver-done-c141/b140] → [uplift] [qa-ver-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: