Bug 1126413 - Part 1: Expose nsISSLStatus for broken secure pages. r=keeler
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Tue, 10 Feb 2015 04:16:22 +0900
changeset 228135 f6594816e867bd5c36186c065479602dc0dc1480
parent 228134 6a393700a62d3f7d44f9f1167bc05ab62ba69774
child 228136 8d1bb05dffa7592834c3d1d5c0151bb2f858bb88
push id55335
push userVYV03354@nifty.ne.jp
push dateMon, 09 Feb 2015 19:16:39 +0000
treeherdermozilla-inbound@8d1bb05dffa7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler
bugs1126413
milestone38.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 1126413 - Part 1: Expose nsISSLStatus for broken secure pages. r=keeler
security/manager/boot/src/nsSecureBrowserUIImpl.cpp
--- a/security/manager/boot/src/nsSecureBrowserUIImpl.cpp
+++ b/security/manager/boot/src/nsSecureBrowserUIImpl.cpp
@@ -1393,24 +1393,24 @@ NS_IMETHODIMP
 nsSecureBrowserUIImpl::GetSSLStatus(nsISSLStatus** _result)
 {
   NS_ENSURE_ARG_POINTER(_result);
 
   ReentrantMonitorAutoEnter lock(mReentrantMonitor);
 
   switch (mNotifiedSecurityState)
   {
+    case lis_broken_security:
     case lis_mixed_security:
     case lis_high_security:
       break;
 
     default:
       NS_NOTREACHED("if this is reached you must add more entries to the switch");
     case lis_no_security:
-    case lis_broken_security:
       *_result = nullptr;
       return NS_OK;
   }
  
   *_result = mSSLStatus;
   NS_IF_ADDREF(*_result);
 
   return NS_OK;