Bug 1351117 Part 1: Change an assert on nsLayoutStylesheetCache::Shutdown into a warning, since it only notes that the cache was never used. draft
authorBrad Werth <bwerth@mozilla.com>
Mon, 05 Jun 2017 13:57:36 -0700
changeset 589223 6e7eb592892d0f7254ec576bb0164139ba703b17
parent 589054 b7dfffc23174d96c9f85ce362f96c3751be7d113
child 631794 3691648964776569ea2966da1cd14f32990e7151
push id62279
push userbwerth@mozilla.com
push dateMon, 05 Jun 2017 20:57:52 +0000
bugs1351117
milestone55.0a1
Bug 1351117 Part 1: Change an assert on nsLayoutStylesheetCache::Shutdown into a warning, since it only notes that the cache was never used. MozReview-Commit-ID: 5dHMnjE8ufl
layout/style/nsLayoutStylesheetCache.cpp
--- a/layout/style/nsLayoutStylesheetCache.cpp
+++ b/layout/style/nsLayoutStylesheetCache.cpp
@@ -251,20 +251,20 @@ nsLayoutStylesheetCache::DesignModeSheet
   return mDesignModeSheet;
 }
 
 void
 nsLayoutStylesheetCache::Shutdown()
 {
   gCSSLoader_Gecko = nullptr;
   gCSSLoader_Servo = nullptr;
-  MOZ_ASSERT(!gStyleCache_Gecko || !gUserContentSheetURL_Gecko,
-             "Got the URL but never used by Gecko?");
-  MOZ_ASSERT(!gStyleCache_Servo || !gUserContentSheetURL_Servo,
-             "Got the URL but never used by Servo?");
+  NS_WARNING_ASSERTION(!gStyleCache_Gecko || !gUserContentSheetURL_Gecko,
+                       "Got the URL but never used by Gecko?");
+  NS_WARNING_ASSERTION(!gStyleCache_Servo || !gUserContentSheetURL_Servo,
+                       "Got the URL but never used by Servo?");
   gStyleCache_Gecko = nullptr;
   gStyleCache_Servo = nullptr;
   gUserContentSheetURL_Gecko = nullptr;
   gUserContentSheetURL_Servo = nullptr;
 }
 
 void
 nsLayoutStylesheetCache::SetUserContentCSSURL(nsIURI* aURI)