Closed Bug 1208544 Opened 9 years ago Closed 9 years ago

Make devtools inspector listen to mutations on pseudo elements with MutationObserver->nativeAnonymousChildList

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(firefox44 fixed)

RESOLVED FIXED
Firefox 44
Tracking Status
firefox44 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

(Blocks 1 open bug)

Details

(Whiteboard: [polish-backlog])

+++ This bug was initially created as a clone of Bug #1034110 +++

Breaking the devtools-specific work for this project into a separate bug.

Basically, if a style rule is removed that causes the pseudo element to no longer be an anonymous child of the parent, I'd like to know.  Likewise if a new style rule is added.  I've put together a basic test case here: https://bgrins.github.io/devtools-demos/inspector/pseudo.html.
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Brian, will this also fix the testcase from bug 185431 comment 33 ?
Flags: needinfo?(bgrinstead)
(In reply to :Gijs Kruitbosch from comment #1)
> Brian, will this also fix the testcase from bug 185431 comment 33 ?

The platform bits from Bug 1034110 should be reusable in DOMi if it's using a MutationObserver.  Then it would need to add nativeAnonymousChildList to the MutationObserverInit options, and treat that mutation similarly to a childList.
Flags: needinfo?(bgrinstead)
(In reply to Brian Grinstead [:bgrins] from comment #2)
> (In reply to :Gijs Kruitbosch from comment #1)
> > Brian, will this also fix the testcase from bug 185431 comment 33 ?
> 
> The platform bits from Bug 1034110 should be reusable in DOMi if it's using
> a MutationObserver.  Then it would need to add nativeAnonymousChildList to
> the MutationObserverInit options, and treat that mutation similarly to a
> childList.

Right, but the person who posted that testcase *actually* cares about Firefox's devtools Inspector instead of DOMI and just got confused about which bug they wanted... I'm asking if this frontend bit will fix this in inspector.
(In reply to :Gijs Kruitbosch from comment #3)
> (In reply to Brian Grinstead [:bgrins] from comment #2)
> > (In reply to :Gijs Kruitbosch from comment #1)
> > > Brian, will this also fix the testcase from bug 185431 comment 33 ?
> > 
> > The platform bits from Bug 1034110 should be reusable in DOMi if it's using
> > a MutationObserver.  Then it would need to add nativeAnonymousChildList to
> > the MutationObserverInit options, and treat that mutation similarly to a
> > childList.
> 
> Right, but the person who posted that testcase *actually* cares about
> Firefox's devtools Inspector instead of DOMI and just got confused about
> which bug they wanted... I'm asking if this frontend bit will fix this in
> inspector.

Ah, yeah this bug is to fix this in the DevTools frontend
https://hg.mozilla.org/mozilla-central/rev/d6b2e070b5d0
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Depends on: 1210375
Blocks: 1213833
Blocks: 1223389
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.