Open Bug 1719435 Opened 3 years ago Updated 1 year ago

Add a test to check that Remote preferences are correctly reset after quitting Firefox

Categories

(Remote Protocol :: Marionette, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

Details

See https://phabricator.services.mozilla.com/D119071#3874636

In Bug 1717145 we are moving the preference cleanup for both CDP and Marionette to earlier events (quit-application) because the current cleanup happens too late and preferences are not correctly reset when quitting Firefox.

It would be nice to add a test for that, at least for Marionette. Since both implementations will end up using the same shared RecommendedPreferences module in Bug 1693803, it should cover both use cases.

Quote from :whimboo in the phabricator review on how such a test could be written

There is self.marionette.quit() for Marionette unit tests. For example take a look here:
https://searchfox.org/mozilla-central/rev/5b3444ad300e244b5af4214212e22bd9e4b7088a/testing/marionette/harness/marionette_harness/tests/unit/test_profile_management.py#79-82

With the profile path retrieved we should be able to grep the preferences file.

Given that the test needs to be done via Marionette the bug should be in its component.

Component: Agent → Marionette
Product: Remote Protocol → Testing
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.