From 4dca39ae985b216ae5191dd0a84ab790aeaea79e Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 9 Sep 2014 18:01:07 -0400 Subject: [PATCH] Bug 1065109 - Remove the MOZ_ASSERT(IsControllingDocuments()) in ServiceWorkerManager CLOSED TREE, r=nsm --- dom/workers/ServiceWorkerManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index 32aa670c4f4..02c55b15a1b 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -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."); + } } //////////////////////////