Bug 617909 - Broken instanceof check in XPIProvider.jsm. r+a=dtownsend
authorDão Gottwald <dao@mozilla.com>
Fri, 10 Dec 2010 21:26:46 +0100
changeset 59087 3c780ef02d6f48044abe714306227e3aa3f8328c
parent 59086 e8d00d32b03200d0324772a4829c2a7f026a8ded
child 59088 52d7d86feada4f68e6266862f6212dba1d914169
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs617909
milestone2.0b8pre
Bug 617909 - Broken instanceof check in XPIProvider.jsm. r+a=dtownsend
toolkit/mozapps/extensions/XPIProvider.jsm
--- a/toolkit/mozapps/extensions/XPIProvider.jsm
+++ b/toolkit/mozapps/extensions/XPIProvider.jsm
@@ -6684,17 +6684,17 @@ DirectoryInstallLocation.prototype = {
    * Finds all the add-ons installed in this location.
    */
   _readAddons: function DirInstallLocation__readAddons() {
     let entries = this._directory.directoryEntries
                                  .QueryInterface(Ci.nsIDirectoryEnumerator);
     let entry;
     while (entry = entries.nextFile) {
       // Should never happen really
-      if (!entry instanceof Ci.nsILocalFile)
+      if (!(entry instanceof Ci.nsILocalFile))
         continue;
 
       let id = entry.leafName;
 
       if (id == DIR_STAGE || id == DIR_XPI_STAGE || id == DIR_TRASH)
         continue;
 
       let directLoad = false;