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:
Kris Maglione 2017-07-19 22:28:09 -07:00
parent cbac5391f2
commit 0bf0dd53cc
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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);