Open
Bug 1914665
Opened 1 year ago
Updated 1 year ago
Developer Toolbox: "Edit as XML" on a XUL Element deletes the Element
Categories
(DevTools :: General, defect, P3)
DevTools
General
Tracking
(Not tracked)
NEW
People
(Reporter: WoofGrrrr, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Steps to reproduce:
128.1.1esr on WIn 11 Pro x-64
- Open Developer Toolbox Inspector
- Find a XUL Element, e.g <treecol>
- Right-click on it
- Select "Edit as XML"
- Add an attribute to the Element
- right-click on any other Element to close the edit
In my case the XUL Element was this:
<treecol xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="unifinder-search-results-tree-col-title"
persist="hidden ordinal width"
style="flex: 1 1 auto; order: 1; width: 552px;"
closemenu="none"
itemproperty="title"
data-l10n-id="calendar-event-listing-column-title"
label="Title"
tooltiptext="Sort by title"
ordinal="1"
width="552">
<label class="treecol-text" flex="1" crop="end" value="Title"/>
<image class="treecol-sortdirection"/>
</treecol>
I added Attribute class="abc"
Actual results:
The XUL Element gets completely deleted.
I see these message in the Console:
13:27:32.159 Flattening unsafe node (descendants are preserved). Element: treecol. walker.js:1604:7
13:27:32.159 Flattening unsafe node (descendants are preserved). Element: label. walker.js:1604:7
13:27:32.159 Flattening unsafe node (descendants are preserved). Element: image. walker.js:1604:7
Expected results:
The XUL Elements should not get deleted
The DevTools come from Firefox, this bug should be moved to Product: DevTools.
Updated•1 year ago
|
Component: Untriaged → General
Product: Thunderbird → DevTools
Version: Thunderbird 128 → unspecified
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•