Bug 1386937 - Fix typo in initialization check. r=trivial, a=gchang
authorKris Maglione <maglione.k@gmail.com>
Wed, 02 Aug 2017 22:01:58 -0700
changeset 421153 9aad906a960fc09af929d838d6fbce660f8f3c58
parent 421152 5ee15d0b8f882d0f34d4aebd88fdc8bc9fd1316d
child 421154 d5f3be22810a35fe32b0f10ff69dccae45ad543d
push id7611
push userryanvm@gmail.com
push dateMon, 14 Aug 2017 13:07:50 +0000
treeherdermozilla-beta@3d1029848041 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial, gchang
bugs1386937
milestone56.0
Bug 1386937 - Fix typo in initialization check. r=trivial, a=gchang MozReview-Commit-ID: 7MD79wChHyG
toolkit/components/extensions/ExtensionContent.jsm
--- a/toolkit/components/extensions/ExtensionContent.jsm
+++ b/toolkit/components/extensions/ExtensionContent.jsm
@@ -529,17 +529,17 @@ defineLazyGetter(ContentScriptContextChi
 // scripts into them when new documents are created.
 DocumentManager = {
   // Map[windowId -> Map[ExtensionChild -> ContentScriptContextChild]]
   contexts: new Map(),
 
   initialized: false,
 
   lazyInit() {
-    if (this.initalized) {
+    if (this.initialized) {
       return;
     }
     this.initialized = true;
 
     Services.obs.addObserver(this, "inner-window-destroyed");
     Services.obs.addObserver(this, "memory-pressure");
   },