From f5ca558b7a3957e472ea4a50dc61889079901772 Mon Sep 17 00:00:00 2001 From: David Rajchenbach-Teller Date: Mon, 1 Jul 2013 09:55:04 -0400 Subject: [PATCH] Bug 887288 - Make nsDOMMemoryFileDataOwnerMemoryReporter thread-safe. r=khuey --- content/base/src/nsDOMFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/base/src/nsDOMFile.cpp b/content/base/src/nsDOMFile.cpp index 583dbc2edcf4..65ad7537f015 100644 --- a/content/base/src/nsDOMFile.cpp +++ b/content/base/src/nsDOMFile.cpp @@ -706,12 +706,13 @@ class nsDOMMemoryFileDataOwnerMemoryReporter MOZ_FINAL } }; -NS_IMPL_ISUPPORTS1(nsDOMMemoryFileDataOwnerMemoryReporter, +NS_IMPL_THREADSAFE_ISUPPORTS1(nsDOMMemoryFileDataOwnerMemoryReporter, nsIMemoryMultiReporter) /* static */ void nsDOMMemoryFile::DataOwner::EnsureMemoryReporterRegistered() { + sDataOwnerMutex.AssertCurrentThreadOwns(); if (sMemoryReporterRegistered) { return; }