Open Bug 1976237 Opened 1 month ago Updated 28 days ago

"View Selection Source" does not show the whole selection in some cases

Categories

(Toolkit :: View Source, defect, P3)

Firefox 140
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vincent-moz, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

  1. Open an arbitrary Wikipedia page with sections, e.g. https://en.wikipedia.org/w/index.php?title=Rounding&oldid=1299406326
  2. Select the title of a section and the beginning of this section, e.g. "Types of rounding Typical rounding".
  3. Open the context menu with a right click and choose "View Selection Source".

Actual results:

At Step 2, "[edit]" is not selected, which is surprising. And I Step 3, I just get

<div class="mw-heading mw-heading2"><h2 id="Types_of_rounding">Types of rounding</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Rounding&action=edit&section=1" title="Edit section: Types of rounding"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div>

where only the h2 part is selected. The beginning of the section does not appear.

Expected results:

I suppose that "[edit]" should have been selected. And the beginning of the section should have appeared with "Typical rounding" selected. As what I get when I select the whole page and do "View Selection Source":

<div class="mw-heading mw-heading2"><h2 id="Types_of_rounding">Types of rounding</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Rounding&action=edit&section=1" title="Edit section: Types of rounding"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div>
<p>Typical rounding problems include:

I cannot reproduce this issue when I save the page locally.

Hmm... I see that the various &amp; have been changed to & in the pasted HTML code above.

Regression window:
https://hg-edge.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=643b371e51df&tochange=299911e6983b

Good build, The entire page source is displayed, and the relevant selection is highlighted.
Bad build: this bug behavior.

Keywords: regression
Regressed by: 739396
See Also: → 1488717

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

For more information, please visit BugBot documentation.

Flags: needinfo?(nchevobbe)
Severity: -- → S3
Flags: needinfo?(nchevobbe)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.