Closed Bug 1646678 Opened 5 years ago Closed 5 years ago

Add a mechanism to test server-side Resource listener while they're not enabled yet

Categories

(DevTools :: Framework, task)

task

Tracking

(firefox79 fixed)

RESOLVED FIXED
Firefox 79
Tracking Status
firefox79 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(1 file)

At the moment, the resource listeners we have on the server are disabled, which means we could break them without noticing it, as no test will trigger them.
We should have a mechanism to force the server side support from a given test, and use that at least in the devtools/shared/resources/tests/browser_resources_* tests which have both a legacy and a server listener.

This is done by getting the value of the devtools.testing.enableServerWatcherSupport
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/40dae06d5e4d Allow resource watcher tests to force server side support. r=ochameau.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b09c7ddea2a4 Allow resource watcher tests to force server side support. r=ochameau.
Flags: needinfo?(nchevobbe)
Whiteboard: dt-fission-m2-mvp
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98f3015f9020 Allow resource watcher tests to force server side support. r=ochameau.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: