mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
256003368d
This commit also fixes a race in `test_error_reporting.html`, where the push service would initialize and attach its listeners after `sessionstore-windows-restored`. Even though the test replaces the real service with a mock, the former keeps listening for pref changes. When the test calls `setupPrefs` to enable the push connection, the real service tries to connect to the push server, which asserts in automation because non-local connections aren't allowed. We work around this by ensuring that `replacePushService` and `restorePushService` always wait for the service to shut down before replacing it with a mock, or restoring the real implementation. Finally, this commit removes a test that's no longer relevant, since we don't need to fetch all subscriptions at startup. Differential Revision: https://phabricator.services.mozilla.com/D20085 --HG-- extra : moz-landing-system : lando