STR: 1. Visit http://example.org/ (or probably any site) 2. Right-click some blank area, Inspect 3. In the inspector, right click `<html>` and choose "Break on: Attribute Modification" 4. Verify that step 3 made a difference -- right-click `<html>` again, and choose "Break on", and verify that "Attribute Modification" is shown checked. (Also, an arrow/label should be to the left of the html element in the inspector) 4. Ctrl+R to reload the page (keeping devtools inspector open) 5. Repeat steps 3 and 4. ACTUAL RESULTS: The "Break on: Attribute Modification" function stops working (i.e. it has no effect). It seems that it becomes broken and stays broken (i.e. I can't watch attribute modifications) after I reload. If I check Browser Console (ctrl shift J), I see the following error appear when I click "Break on: Attribute Modification": ``` TypeError: can't access property "update", container is undefined markup.js:467:7 ``` which points to [this line](https://searchfox.org/mozilla-central/rev/e94bcd536a2a4caad0597d1b2d624342e6a389c4/devtools/client/inspector/markup/markup.js#467). EXPECTED RESULTS: No TypeError; the breakpoint should be successfully added. Note: if I close and reopen devtools, then the issue seems to go away.
Bug 1863398 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
STR: 1. Visit http://example.org/ (or probably any site) 2. Right-click some blank area, Inspect 3. In the inspector, right click `<html>` and choose "Break on: Attribute Modification" 4. Verify that step 3 made a difference -- right-click `<html>` again, and choose "Break on", and verify that "Attribute Modification" is shown checked. (Also, an arrow/label should be to the left of the html element in the inspector) 4. Ctrl+R to reload the page (keeping devtools inspector open) 5. Repeat steps 3 and 4. ACTUAL RESULTS: The "Break on: Attribute Modification" function stops working (i.e. it has no effect). It seems that it becomes broken and stays broken (i.e. I can't watch attribute modifications) after I reload. If I check Browser Console (ctrl shift J), I see the following error appear when I click "Break on: Attribute Modification" (in step 5, i.e. after the previous successful watchpoint + reload): ``` TypeError: can't access property "update", container is undefined markup.js:467:7 ``` which points to [this line](https://searchfox.org/mozilla-central/rev/e94bcd536a2a4caad0597d1b2d624342e6a389c4/devtools/client/inspector/markup/markup.js#467). EXPECTED RESULTS: No TypeError; the breakpoint should be successfully added. Note: if I close and reopen devtools, then the issue seems to go away.