Closed Bug 1574091 Opened 6 years ago Closed 6 years ago

Break on Node removal doesn't work

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: Honza, Unassigned)

References

Details

Break on "Node removal" doesn't break the execution for me.

Honza

Component: Netmonitor → Debugger

STR:

  1. Load this page: http://janodvarko.cz/tests/bugzilla/1574091/
  2. Follow instructions on the page

Honza

Has STR: --- → yes
Priority: -- → P2

:Honza, if you think that's a regression, then could you try to find a regression range in using for example mozregression?

Logan, can you reproduce the issue using my test case?
Is this a regression or the feature isn't just finished yet?

Honza

Flags: needinfo?(lsmyth)

Interestingly, now it works for me...
Could there be a racing issue?
Honza

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.

Flags: needinfo?(lsmyth)

+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).

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.