Bug 1540401 - Part 4: Convert MOZ_ASSERT to MOZ_DIAGNOSTIC_ASSERT to verify that bug 1541771 has been fixed; r=asuth
authorJan Varga <jan.varga@gmail.com>
Mon, 15 Apr 2019 13:55:42 +0200
changeset 533258 dad8b92996d58543ed200d08c8f733ff05bdaefc
parent 533229 6e4c58629a7cf3448d2d82a8287aef23ade8f6b5
child 533259 87325e3589128e149794637b698a51567b94f28b
push id11276
push userrgurzau@mozilla.com
push dateMon, 20 May 2019 13:11:24 +0000
treeherdermozilla-beta@847755a7c325 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1540401, 1541771
milestone68.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 1540401 - Part 4: Convert MOZ_ASSERT to MOZ_DIAGNOSTIC_ASSERT to verify that bug 1541771 has been fixed; r=asuth Differential Revision: https://phabricator.services.mozilla.com/D27494
dom/localstorage/ActorsParent.cpp
--- a/dom/localstorage/ActorsParent.cpp
+++ b/dom/localstorage/ActorsParent.cpp
@@ -2959,17 +2959,17 @@ void AssertIsOnConnectionThread() {
 
 void InitUsageForOrigin(const nsACString& aOrigin, int64_t aUsage) {
   AssertIsOnIOThread();
 
   if (!gUsages) {
     gUsages = new UsageHashtable();
   }
 
-  MOZ_ASSERT(!gUsages->Contains(aOrigin));
+  MOZ_DIAGNOSTIC_ASSERT(!gUsages->Contains(aOrigin));
   gUsages->Put(aOrigin, aUsage);
 }
 
 bool GetUsageForOrigin(const nsACString& aOrigin, int64_t& aUsage) {
   AssertIsOnIOThread();
 
   if (gUsages) {
     int64_t usage;