Bug 1484496: Follow-up: Fix more NoQueryNeeded assertions. r=bustage
authorKris Maglione <maglione.k@gmail.com>
Thu, 23 Aug 2018 17:15:41 -0700
changeset 488349 d1049dde16ddb13fbb7b05d362a028a9aa24839f
parent 488348 7d4ae67397e207d28f6fa51cadef94a14d482d85
child 488350 602fa2f2e75da226a632f65700c9a1db8baf89ae
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1484496
milestone63.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 1484496: Follow-up: Fix more NoQueryNeeded assertions. r=bustage
netwerk/cache2/CacheFileIOManager.cpp
--- a/netwerk/cache2/CacheFileIOManager.cpp
+++ b/netwerk/cache2/CacheFileIOManager.cpp
@@ -3849,17 +3849,17 @@ CacheFileIOManager::GetDoomedFile(nsIFil
 
 nsresult
 CacheFileIOManager::IsEmptyDirectory(nsIFile *aFile, bool *_retval)
 {
   MOZ_ASSERT(mIOThread->IsCurrentThread());
 
   nsresult rv;
 
-  nsCOMPtr<nsISimpleEnumerator> enumerator;
+  nsCOMPtr<nsIDirectoryEnumerator> enumerator;
   rv = aFile->GetDirectoryEntries(getter_AddRefs(enumerator));
   NS_ENSURE_SUCCESS(rv, rv);
 
   bool hasMoreElements = false;
   rv = enumerator->HasMoreElements(&hasMoreElements);
   NS_ENSURE_SUCCESS(rv, rv);
 
   *_retval = !hasMoreElements;