AddRDMTask doesn't await tests before altering prefs
Categories
(DevTools :: Responsive Design Mode, defect, P2)
Tracking
(firefox74 fixed)
| Tracking | Status | |
|---|---|---|
| firefox74 | --- | fixed |
People
(Reporter: bradwerth, Assigned: bradwerth)
References
Details
Attachments
(2 files)
The AddRDMTask function is designed to run a test task twice, and modify the prefs between the task invocation. Unfortunately, the test setup code uses add_task, and doesn't await the completion of the task. This means that the prefs are changing mid-task or not at all.
| Assignee | ||
Comment 1•6 years ago
|
||
To clarify, the issue is that the calls to add_task are only ordered relative to each other. The existing code intercuts these calls will changes to prefs. If the changes to the prefs are also done with a call to add_task, then things should happen in the proper order.
| Assignee | ||
Comment 2•6 years ago
|
||
This patch more strictly orders the work in the AddRDMTask function, so that
the pref changes happen at the appropriate times relative to the tests.
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
Depends on D60590
Comment 5•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/47c35b06c9cf
https://hg.mozilla.org/mozilla-central/rev/673452e098f1
Description
•