Skip to content

Commit

Permalink
Bug 1948550 - test_permmanager_remote.js needs to account for shipped…
Browse files Browse the repository at this point in the history
… remote settings. r=maltejur

If Thunderbird ships permissions, this test fails since the test doesn't account for that.
Firefox runs the test without Firefox profile settings (meaning no remote settings available) so
it's not a problem there.

Differential Revision: https://phabricator.services.mozilla.com/D239492
  • Loading branch information
mkmelin committed Feb 25, 2025
1 parent 8269814 commit b9ead6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/permissions/test/unit/test_permmanager_remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ add_setup(async function () {

await rps.isInitialized;

// Make sure we start off "empty". Any RemoteSettings values must be
// purged now to comply with test expectations.
Services.obs.notifyObservers(null, "testonly-reload-permissions-from-disk");

registerCleanupFunction(async () => {
info("Cleaning up");
rps.testAllowedPermissionValues = originalPermissionValues;
Expand Down

0 comments on commit b9ead6c

Please sign in to comment.