Bug 1995530 - Allow unrecognized props in bss.gecko.data_collection_permissions. r=robwu,rpl a=pascalc DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D269385
This commit is contained in:
William Durand
2025-10-21 12:07:06 +00:00
committed by pchevrel@mozilla.com
parent 76a867fb4d
commit 2c2503b6e6
2 changed files with 27 additions and 1 deletions

View File

@@ -659,7 +659,8 @@
"optional": true,
"default": []
}
}
},
"additionalProperties": { "$ref": "UnrecognizedProperty" }
}
},
"additionalProperties": { "$ref": "UnrecognizedProperty" }

View File

@@ -227,3 +227,28 @@ add_task(async function test_permissions_have_localization_strings() {
}
}
});
add_task(async function test_allow_unknown_props() {
const extension = await getExtension({
manifest: {
browser_specific_settings: {
gecko: {
data_collection_permissions: {
required: ["none"],
unknown_prop: true,
},
},
},
},
});
Assert.ok(
extension.warnings[0]?.includes(
"Warning processing browser_specific_settings.gecko.data_collection_permissions.unknown_prop: " +
"An unexpected property was found in the WebExtension manifest."
),
`Expected a warning about the unknown property`
);
await extension.cleanupGeneratedFile();
});