Open Bug 1598952 Opened 5 years ago Updated 2 years ago

DOM mutation breakpoints do not work in Web Components.

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: emilio, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

Because of this check, which doesn't pass for nodes in a shadow tree.

Bug 1575688 would allow that check to be changed isConnected (as nsIMutationObserver does fire for shadow tree mutations), and thus for shadow root to work.

Thanks for the report Emilio!

Can you please provide a simple test case that can be used to reproduce (and later verify) the issue?

Thanks,
Honza

Flags: needinfo?(emilio)
Priority: -- → P3
Attached file Simple test (obsolete) —

Sure, sorry :)

You can't attach mutation breakpoints in the shadow content.

Flags: needinfo?(emilio)

Whoops. This one does repro the issue.

Attachment #9112297 - Attachment is obsolete: true

Thanks for the test case!

Here are STRs

  1. Load http://janodvarko.cz/tests/bugzilla/1598952/
  2. Open DevTools and select the Inspector panel
  3. Right click on the <body> element and pick Break on -> Subtree modification, you should see a blue marker at the left side
  4. Right click on the <em> element (body->div->shadow-root->div->em) and pick Break on -> Subtree modification, you should see a blue marker at the left side. It isn't there -> BUG

Honza

Has STR: --- → yes
Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: