Closed Bug 1601688 Opened 4 years ago Closed 4 years ago

If an event is only needed in tests, only emit it when in test

Categories

(DevTools :: Console, task, P1)

task

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

we saw in the past that emitting events could add some overhead, so let's try to not emit them when it's not needed

The tests are now using mutation observer to check
when the dom is updated instead.

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9aa05612f10f
Don't rely on new-messages event in webconsole DAMP tests. r=ochameau.
https://hg.mozilla.org/integration/autoland/rev/27cec4c76272
Use emitForTests when events are only used in tests. r=Honza.

Sorry about that, I'll provide a fix in the next minutes

Flags: needinfo?(nchevobbe)
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1f6d5888aa5d
Don't rely on new-messages event in webconsole DAMP tests. r=ochameau.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3438f1628cb7
Use emitForTests when events are only used in tests. r=Honza.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: