Skip to content

Commit 750a8bc

Browse files
committed
Added tests for HTTPS caching on sites with certificate errors.
1 parent 81cccea commit 750a8bc

4 files changed

Lines changed: 46 additions & 0 deletions

File tree

cefpython/cef3/linux/binaries_32bit/wxpython.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ <h2>Table of contents</h2>
5151
<li><a href="#cookie-tests">Cookie tests</a></li>
5252
<li><a href="#load-handler">Load handler</a></li>
5353
<li><a href="#javascript-dialog-handler">Javascript Dialog handler</a></li>
54+
<li><a href="#other-tests">Other tests</a></li>
5455
</ol>
5556

5657
<!-- ********************************************************************** -->
@@ -675,6 +676,25 @@ <h3>OnResetJavascriptDialogState</h3>
675676
<h3>OnJavascriptDialogClosed</h3>
676677
<script>ShowSource("OnJavascriptDialogClosed");</script>
677678

679+
<!-- ********************************************************************** -->
680+
<!-- Other tests -->
681+
<!-- ********************************************************************** -->
682+
683+
<a name="other-tests"></a>
684+
<h2>Other tests</h2>
685+
686+
<h3>HTTPS caching with SSL certificate errors</h3>
687+
Set ApplicationSettings["ignore_certificate_errors"] to True.
688+
689+
<ul>
690+
<li><a href="https://192.168.0.17/test.html">
691+
https://192.168.0.17/test.html</a></li>
692+
<li><a href="javascript:window.open('https://192.168.0.17/test.html')">
693+
window.open('https://192.168.0.17/test.html')</a></li>
694+
<li><a href="javascript:external.CreateAnotherBrowser('https://192.168.0.17/test.html')">
695+
external.CreateAnotherBrowser('https://192.168.0.17/test.html')</a>
696+
</ul>
697+
678698
<!-- ********************************************************************** -->
679699
<!-- Other -->
680700
<!-- ********************************************************************** -->

cefpython/cef3/linux/binaries_32bit/wxpython.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ def GetSources():
715715
"external_browser": True, # Open in external browser
716716
"devtools": True, # Developer Tools
717717
},
718+
# See also OnCertificateError which allows you to ignore
719+
# certificate errors for specific websites.
720+
"ignore_certificate_errors": False,
718721
}
719722

720723
# Browser settings. You may have different settings for each

cefpython/cef3/linux/binaries_64bit/wxpython.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ <h2>Table of contents</h2>
5151
<li><a href="#cookie-tests">Cookie tests</a></li>
5252
<li><a href="#load-handler">Load handler</a></li>
5353
<li><a href="#javascript-dialog-handler">Javascript Dialog handler</a></li>
54+
<li><a href="#other-tests">Other tests</a></li>
5455
</ol>
5556

5657
<!-- ********************************************************************** -->
@@ -675,6 +676,25 @@ <h3>OnResetJavascriptDialogState</h3>
675676
<h3>OnJavascriptDialogClosed</h3>
676677
<script>ShowSource("OnJavascriptDialogClosed");</script>
677678

679+
<!-- ********************************************************************** -->
680+
<!-- Other tests -->
681+
<!-- ********************************************************************** -->
682+
683+
<a name="other-tests"></a>
684+
<h2>Other tests</h2>
685+
686+
<h3>HTTPS caching with SSL certificate errors</h3>
687+
Set ApplicationSettings["ignore_certificate_errors"] to True.
688+
689+
<ul>
690+
<li><a href="https://192.168.0.17/test.html">
691+
https://192.168.0.17/test.html</a></li>
692+
<li><a href="javascript:window.open('https://192.168.0.17/test.html')">
693+
window.open('https://192.168.0.17/test.html')</a></li>
694+
<li><a href="javascript:external.CreateAnotherBrowser('https://192.168.0.17/test.html')">
695+
external.CreateAnotherBrowser('https://192.168.0.17/test.html')</a>
696+
</ul>
697+
678698
<!-- ********************************************************************** -->
679699
<!-- Other -->
680700
<!-- ********************************************************************** -->

cefpython/cef3/linux/binaries_64bit/wxpython.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ def GetSources():
715715
"external_browser": True, # Open in external browser
716716
"devtools": True, # Developer Tools
717717
},
718+
# See also OnCertificateError which allows you to ignore
719+
# certificate errors for specific websites.
720+
"ignore_certificate_errors": False,
718721
}
719722

720723
# Browser settings. You may have different settings for each

0 commit comments

Comments
 (0)