mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1381687: Follow-up: Fix bustage where theme code is touching raw schema JSON that it shouldn't be.
MozReview-Commit-ID: 9Uwfbml0Ria --HG-- extra : rebase_source : f082a9a049cc18ab85b0a965e4ab63560d47f922
This commit is contained in:
parent
cbac5391f2
commit
0bf0dd53cc
@ -1514,7 +1514,7 @@ var ExtensionParent = {
|
||||
return gBaseManifestProperties;
|
||||
}
|
||||
|
||||
let types = Schemas.schemaJSON.get(BASE_SCHEMA)[0].types;
|
||||
let types = Schemas.schemaJSON.get(BASE_SCHEMA).deserialize({})[0].types;
|
||||
let manifest = types.find(type => type.id === "WebExtensionManifest");
|
||||
if (!manifest) {
|
||||
throw new Error("Unable to find base manifest properties");
|
||||
|
@ -38,7 +38,7 @@ async function getAdditionalInvalidManifestProperties() {
|
||||
for (let [name, url] of XPCOMUtils.enumerateCategoryEntries(CATEGORY_EXTENSION_SCHEMAS)) {
|
||||
if (name !== "theme") {
|
||||
await Schemas.load(url);
|
||||
let types = Schemas.schemaJSON.get(url)[0].types;
|
||||
let types = Schemas.schemaJSON.get(url).deserialize({})[0].types;
|
||||
types.forEach(type => {
|
||||
if (type.$extend == "WebExtensionManifest") {
|
||||
let properties = Object.getOwnPropertyNames(type.properties);
|
||||
|
Loading…
Reference in New Issue
Block a user