ttm / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 0 forks source link

Fix HTTPS cache problems on pages with certificate errors #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=11609

Original issue reported on code.google.com by czarek.t...@gmail.com on 27 May 2014 at 8:38

GoogleCodeExporter commented 9 years ago
The patch suggested in the linked topic works fine after making some minor 
changes.

File: net/http/http_cache_transaction.cc
Method: HttpCache::Transaction::WriteResponseInfoToEntry
---------------------------------------------------------------
- net::IsCertStatusError(response_.ssl_info.cert_status)) {
+ (!cache_->GetSession()->params().ignore_certificate_errors &&
+ net::IsCertStatusError(response_.ssl_info.cert_status))) {

Original comment by czarek.t...@gmail.com on 5 Jun 2014 at 3:54

GoogleCodeExporter commented 9 years ago
The patch was verified to work with CEF 3 branch 1650 revision 1646. The https 
web server was nginx running on Ubuntu.

Original comment by czarek.t...@gmail.com on 5 Jun 2014 at 4:14

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 5 Jun 2014 at 6:02