Closed
Bug 1452209
Opened 7 years ago
Closed 1 year ago
DOM tree search is unreliable and confusing
Categories
(DevTools :: Inspector, defect, P2)
DevTools
Inspector
Tracking
(firefox61 affected)
RESOLVED
WORKSFORME
| Tracking | Status | |
|---|---|---|
| firefox61 | --- | affected |
People
(Reporter: mstange, Unassigned)
References
(Blocks 1 open bug)
Details
STR:
1. Open the Browser Toolbox for a Firefox browser window.
2. Enter "remote" into the searchbar, press exit to close the autocomplete that pops up, and press enter to start the search.
3. Keep pressing enter to go through the search results.
At some point, things will break: No element will be selected, and the DOM view will be scrolled to a random position. For me, the bad behavior starts at result 36 of 57.
Comment 1•7 years ago
|
||
I reproduce, the behavior is very strange from the first results for me.
As a data point, this seems to work fine in the Inspector for normal Web Page, I tried searching for "style" in this bugzilla page and it worked properly.
Component: Developer Tools → Developer Tools: Inspector
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 2•7 years ago
|
||
Thanks for filing Markus. I suspect the treewalker we use to search isn't the same one we use to display the DOM in the panel. So at some point, results come in that the inspector just doesn't know how to display.
This will require more investigation though, just a guess for now.
Priority: -- → P2
Comment 3•7 years ago
|
||
For more details, I think the problem is in the walker-search.js module, around these lines:
https://searchfox.org/mozilla-central/rev/d0a41d2e7770fc00df7844d5f840067cc35ba26f/devtools/server/actors/utils/walker-search.js#83-117
In order to find nodes, this uses `this.walker.getDocumentWalker`, so the document walker that we use to display nodes in the DOM too, but we probably just don't give it the right options for it to filter in or out the right nodes.
Updated•3 years ago
|
Severity: normal → S3
Comment 4•1 year ago
|
||
The provided STR does seem to work well for me, maybe things improved with all the work that was done for Fission?
Blocks: meta-inspector-search
| Reporter | ||
Comment 5•1 year ago
|
||
The STR work well for me now, too.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•