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:
committed by
pchevrel@mozilla.com
parent
76a867fb4d
commit
2c2503b6e6
@@ -659,7 +659,8 @@
|
|||||||
"optional": true,
|
"optional": true,
|
||||||
"default": []
|
"default": []
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": { "$ref": "UnrecognizedProperty" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": { "$ref": "UnrecognizedProperty" }
|
"additionalProperties": { "$ref": "UnrecognizedProperty" }
|
||||||
|
|||||||
@@ -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();
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user