Closed Bug 1610588 Opened 6 years ago Closed 6 years ago

AddRDMTask doesn't await tests before altering prefs

Categories

(DevTools :: Responsive Design Mode, defect, P2)

defect

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
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.

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.

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.

Attachment #9122192 - Attachment description: Bug 1610588: Make pref changes in AddRDMTask be ordered relative to the test functions themselves. → Bug 1610588 Part 1: Make pref changes in AddRDMTask be ordered relative to the test functions themselves.
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47c35b06c9cf Part 1: Make pref changes in AddRDMTask be ordered relative to the test functions themselves. r=mtigley https://hg.mozilla.org/integration/autoland/rev/673452e098f1 Part 2: Disable failing tests for enabled browser UI r=mtigley
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: