Break on Node removal doesn't work
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
People
(Reporter: Honza, Unassigned)
References
Details
Break on "Node removal" doesn't break the execution for me.
Honza
| Reporter | ||
Updated•6 years ago
|
| Reporter | ||
Comment 1•6 years ago
|
||
STR:
- Load this page: http://janodvarko.cz/tests/bugzilla/1574091/
- Follow instructions on the page
Honza
| Reporter | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
:Honza, if you think that's a regression, then could you try to find a regression range in using for example mozregression?
| Reporter | ||
Comment 3•6 years ago
|
||
Logan, can you reproduce the issue using my test case?
Is this a regression or the feature isn't just finished yet?
Honza
| Reporter | ||
Comment 4•6 years ago
|
||
Interestingly, now it works for me...
Could there be a racing issue?
Honza
Comment 5•6 years ago
|
||
This is expected behavior.
"Node Removal" runs only when the exact node that you've added the breakpoint to is removed. It does not run if the node's parent node is removed from the document, or if one of that node's children is removed (as in your example).
If you add the dom mutation BP to specifically the <li> in your list, then the breakpoint will stop properly.
Comment 6•6 years ago
|
||
+1, Node Removal only acts on the selected node (same in Chrome). For added/removed children, subtree modification will be the right option (and works).
Description
•