"View Selection Source" does not show the whole selection in some cases
Categories
(Toolkit :: View Source, defect, P3)
Tracking
()
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:
- Open an arbitrary Wikipedia page with sections, e.g. https://en.wikipedia.org/w/index.php?title=Rounding&oldid=1299406326
- Select the title of a section and the beginning of this section, e.g. "Types of rounding Typical rounding".
- 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§ion=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§ion=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.
Reporter | ||
Comment 1•1 month ago
|
||
Hmm... I see that the various &
have been changed to &
in the pasted HTML code above.
![]() |
||
Comment 2•1 month ago
|
||
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.
Comment 3•28 days ago
|
||
The severity field is not set for this bug.
:nchevobbe, could you have a look please?
For more information, please visit BugBot documentation.
Updated•28 days ago
|
Description
•