Bug 1403154 - Don't MOZ_CRASH in PerformanceNavigationTiming::Type if the navigation type is TYPE_RESERVED r=baku draft
authorValentin Gosu <valentin.gosu@gmail.com>
Tue, 26 Sep 2017 17:16:48 +0200
changeset 670529 5f3087e23ed05ad9c6194c225f266e1d5db620f8
parent 670404 bc56729898954e32d3a3731d03d178ed78924c33
child 733256 0a1ffdef7b0f975b8cd85e02b4307f26c8bc072d
push id81654
push uservalentin.gosu@gmail.com
push dateTue, 26 Sep 2017 15:18:27 +0000
reviewersbaku
bugs1403154
milestone58.0a1
Bug 1403154 - Don't MOZ_CRASH in PerformanceNavigationTiming::Type if the navigation type is TYPE_RESERVED r=baku MozReview-Commit-ID: A9lwpjRb3G6
dom/performance/PerformanceNavigationTiming.cpp
--- a/dom/performance/PerformanceNavigationTiming.cpp
+++ b/dom/performance/PerformanceNavigationTiming.cpp
@@ -78,17 +78,16 @@ PerformanceNavigationTiming::Type()
       break;
     case nsDOMNavigationTiming::TYPE_RELOAD:
       return NavigationType::Reload;
       break;
     case nsDOMNavigationTiming::TYPE_BACK_FORWARD:
       return NavigationType::Back_forward;
       break;
     default:
-      MOZ_CRASH(); // Should not happen
       return NavigationType::Navigate;
   }
 }
 
 uint16_t
 PerformanceNavigationTiming::RedirectCount()
 {
   return mTiming->GetRedirectCount();