Open Bug 1948588 Opened 1 month ago Updated 19 days ago

View-source of selection only shows the first range if the selection consists of several ranges

Categories

(Toolkit :: View Source, defect, P3)

defect

Tracking

()

People

(Reporter: jjaschke, Unassigned)

References

Details

This can be reproduced either by selecting multiple ranges (using CTRL), or by selecting something that will be represented by multiple ranges internally. Example: Select several bugzilla comments in a page.

Expected: All ranges should be visible in the view-source view.
Actual: Only the first range is shown.

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(odvarko)
Flags: needinfo?(odvarko)
Whiteboard: [devtools-triage]

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(odvarko)

Seems like we only handle a single selection range at https://searchfox.org/mozilla-central/rev/9c395b6371eaea0d15f9c8a37889022be350cf0b/toolkit/actors/ViewSourcePageChild.sys.mjs#285

STRs:

  • select multiple ranges in a page, possibly in different elements (using CTRL or CMD while selecting)
  • right click
  • click on "View selection source"
Severity: -- → S3
Flags: needinfo?(odvarko)
Priority: -- → P3
Whiteboard: [devtools-triage]
You need to log in before you can comment on or make changes to this bug.