Bug 1065109 - Remove the MOZ_ASSERT(IsControllingDocuments()) in ServiceWorkerManager CLOSED TREE, r=nsm

This commit is contained in:
Andrea Marchesini 2014-09-09 18:01:07 -04:00
parent d25223c7c0
commit 4dca39ae98

View File

@ -343,7 +343,9 @@ ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(const nsACString& a
ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo()
{
MOZ_ASSERT(!IsControllingDocuments());
if (IsControllingDocuments()) {
NS_WARNING("ServiceWorkerRegistrationInfo is still controlling documents. This can be a bug or a leak in ServiceWorker API or in any other API that takes the document alive.");
}
}
//////////////////////////