Open
Bug 1258569
Opened 8 years ago
Updated 2 years ago
Inspector "Search HTML" finds additional invisible elements if a pseudoelement contains the user's text (with showAllAnonymousContent enabled)
Categories
(DevTools :: Inspector, defect, P3)
DevTools
Inspector
Tracking
(firefox48 affected)
NEW
Tracking | Status | |
---|---|---|
firefox48 | --- | affected |
People
(Reporter: arni2033, Unassigned)
References
()
Details
(Whiteboard: [btpp-backlog])
>>> My Info: Win7_64, Nightly 48, 32bit, ID 20160320030409 STR: 1. Open about:config, set "devtools.inspector.showAllAnonymousContent" to true 2. Open the following link in a new tab: > data:text/html,<script>var S="";for(i=0;i<90;i++)S+="<div></div>";document.write(S);</script><div class="A"></div><style>.A::after{content:"_span_"} 3. Open inspector, type "span" in the field "Search HTML" 4. Press Enter 5. Press Enter AR: After Step 4 pseudoelement ::after is selected in markup. The counter shows "1 of 3" matches After Step 5 No elements are selected. The counter shows "2 of 3" matches. The markup is scrolled to the up a bit (I saw the same in bug 1184525, bug 1228675. Is there a way to disable that once and for all in cases when "Search HTML" can't select an element?) ER: Anything better, really. I have 3 options (X, Y, Z) in mind, but I don't know the state of development in this direction, so they are useless. X) The same behavior as with showAllAnonymousContent disabled Y) Show pseudoelement's content in markup (at the right of the pseudoelement) if showAllAnonymousContent is enabled. In this case the counter should still show only 2 matches Z) Show pseudoelement's content as child node of pseudoelement in markup and select it in Step 5
Comment 1•8 years ago
|
||
With devtools.inspector.showAllAnonymousContent set to true, it looks like the inIDeepTreeWalker that we use in the walker backend (https://dxr.mozilla.org/mozilla-central/source/devtools/server/actors/inspector.js#4029-4049) causes the search tool to find 2 search matches in the test page provided: First, the ::after pseudo-element And second, a text node inside this pseudo-element.
Priority: -- → P3
Whiteboard: [btpp-backlog]
Not reproducible on the last build before bug 835896. Reproducible on the 1st build after bug 835896. First bad 437545b472e74a71ca112f4b4a300ae0a646288b (fx-team) Last good f00a24682d57e48a287e11bcfc72e562929fd007 (mozilla-inbound) Also good 43f23a377c8510f29aa9546453b3b3bcb7810b07 (fx-team) > regression-range 1 (mozilla-inbound) https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=f00a24682d57e48a287e11bcfc72e562929fd007&tochange=961911623a6f2ec1d036c7b12a5117ebbeff45d8 > regression-range 2 (fx-team) https://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=43f23a377c8510f29aa9546453b3b3bcb7810b07&tochange=437545b472e74a71ca112f4b4a300ae0a646288b
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•