Open Bug 1003107 Opened 10 years ago Updated 2 years ago

Remove reflow logging from the webconsole

Categories

(DevTools :: Console, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: pbro, Unassigned)

References

Details

(Keywords: dev-doc-needed, Whiteboard: [btpp-backlog])

Bug 997198 brings a new Reflow actor that sends events when reflows occur.

The web console already observes reflows on the server-side (http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/webconsole/utils.js#1687).

Instead of adding 2 observers, we should just use the new actor.
So, either the web console instantiates a new front to track reflows, or we put the existing front (instantiated by the layoutview) in common.
Depends on: 997198
I might work on this. Important things to keep in mind:
- the webconsole needs more information than what the reflowactor currently exposes: filename, lineNumber, ...
- we need to make sure events are sent only once from the actor to the front, in other words, there should only be one shared front in the toolbox
We show reflows in the webconsole because there were no better place. But now the timeline is coming, I would just kill this feature.
(In reply to Paul Rouget [:paul] (slow to respond. Ping me on IRC) from comment #2)
> We show reflows in the webconsole because there were no better place. But
> now the timeline is coming, I would just kill this feature.

You're right, I didn't think of that. Better not work on this bug then.
There are new webconsole filtering designs in flight that may give us a reason to remove this feature from the console
Priority: -- → P3
Summary: Reflow logging to use the new standalone reflow actor → Consider removing reflow logging from the webconsole
Whiteboard: [btpp-backlog]
We should probably decide on this before tackling https://github.com/devtools-html/gecko-dev/issues/198
Flags: needinfo?(bgrinstead)
Discussed on the list: https://groups.google.com/d/msg/mozilla.dev.developer-tools/LU3_mcyUfdE/NQavwYARAwAJ.  Let's proceed with removing the feature in this bug.  There's the server piece, filter button UI and pref, handleReflowActivity callbacks in client/webconsole.js, and any tests.
Flags: needinfo?(bgrinstead)
Summary: Consider removing reflow logging from the webconsole → Remove reflow logging from the webconsole
@Evan, can you please take a look at this bug?

Honza
Flags: needinfo?(evan)
Hi Honza,

Sorry for that. In the mean time, I don't have time for the bug. We might need to find another contributor to fix it.

Once I have time for dev tools, I'll be back.
Flags: needinfo?(evan)
See Also: → 1406022
Product: Firefox → DevTools
Type: defect → task
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.