Web Inspector: Network: add button to show system certificate dialog
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Controllers / NetworkManager.js
index 96e2ead..0344e55 100644 (file)
@@ -47,6 +47,13 @@ WI.NetworkManager = class NetworkManager extends WI.Object
         WI.Frame.addEventListener(WI.Frame.Event.MainResourceDidChange, this._handleFrameMainResourceDidChange, this);
     }
 
+    // Static
+
+    static supportsShowCertificate()
+    {
+        return InspectorFrontendHost.supportsShowCertificate && window.NetworkAgent && NetworkAgent.getSerializedCertificate;
+    }
+
     // Target
 
     initializeTarget(target)