WebBrowser/WebBrowserPage.py

branch
QtWebEngine
changeset 4725
b19ff70ba509
parent 4717
5841f229baf7
child 4726
c26e2a2dc0cb
--- a/WebBrowser/WebBrowserPage.py	Fri Feb 05 20:02:09 2016 +0100
+++ b/WebBrowser/WebBrowserPage.py	Sat Feb 06 17:43:59 2016 +0100
@@ -771,3 +771,15 @@
         if oldChannel:
             del oldChannel.registeredObjects["eric_object"]
             del oldChannel
+    
+    def certificateError(self, error):
+        """
+        Protected method to handle SSL certificate errors.
+        
+        @param error object containing the certificate error information
+        @type QWebEngineCertificateError
+        @return flag indicating to ignore this error
+        @rtype bool
+        """
+        return WebBrowser.WebBrowserWindow.WebBrowserWindow.networkManager()\
+            .certificateError(error, self.view())

eric ide

mercurial