Closed Bug 1879087 Opened 2 months ago Closed 2 months ago

Add option in the tracer to track all DOM Mutations

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(3 files)

Bug 1848179 added tracking all the DOM events.
We could also track all the DOM Mutations in the tracer.
This would help identify changes made to the DOM, as well as discover the callsites modifying the DOM.

For some unexplained reason, conn could be null.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

Also allow logging trace whenever any DOM Element get added, removed or modified.
For now this is exposed only via the console command via:
:tracer --dom-mutations (for all types of mutation)
:tracer --dom-mutations add,attributes,remove (coma separated list of mutation types you want to listen for)

Also revise the handling of "isWorker" so that all checks have the best possible check.

We weren't consistant in all places checking for the worker codepath.

Also move the initialization of "wait for next user interaction" out of the contructor.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ae72731d9172
[devtools] Avoid exception on page reload with the tracer enabled. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/752268d6f3e7
[devtools] Unify all isWorker checks in tracer.jsm. r=nchevobbe,devtools-reviewers
https://hg.mozilla.org/integration/autoland/rev/172bebc247d6
[devtools] Trace DOM mutations. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: