Bug 1452307: Follow-up: Fix typeo. r=aswan
authorKris Maglione <maglione.k@gmail.com>
Mon, 16 Apr 2018 14:21:02 -0700
changeset 467525 515bfde909c6b8345709b55d467ea9c18d145847
parent 467524 50091ebf491862711c143ae5dfbbd26000103eb9
child 467526 912b68cc5aaf15e949756e38bc6e6ec2d764b877
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaswan
bugs1452307
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1452307: Follow-up: Fix typeo. r=aswan MozReview-Commit-ID: BZgxGULJHIb
toolkit/components/extensions/Schemas.jsm
--- a/toolkit/components/extensions/Schemas.jsm
+++ b/toolkit/components/extensions/Schemas.jsm
@@ -3052,17 +3052,17 @@ this.Schemas = {
         if (typeof data.get === "function") {
           // Create a new Map so we're sure it's in the same compartment.
           [this.schemaJSON, data] = [new Map(data), this.schemaJSON];
         }
 
         for (let [url, schema] of data) {
           this.schemaJSON.set(url, schema);
         }
-        if (this._rootScheam) {
+        if (this._rootSchema) {
           throw new Error("Schema loaded after root schema populated");
         }
         break;
     }
   },
 
   _loadCachedSchemasPromise: null,
   loadCachedSchemas() {
@@ -3084,17 +3084,17 @@ this.Schemas = {
       let data = Services.ppmm.initialProcessData;
       data["Extension:Schemas"] = this.contentSchemaJSON;
 
       Services.ppmm.broadcastAsyncMessage("Schema:Add", [[url, schema]]);
     } else if (this.schemaHook) {
       this.schemaHook([[url, schema]]);
     }
 
-    if (this._rootScheam) {
+    if (this._rootSchema) {
       throw new Error("Schema loaded after root schema populated");
     }
   },
 
   fetch(url) {
     return readJSONAndBlobbify(url);
   },