Add certificate error handling to devtools

Desktop / Chromium - irisu [chromium.org] - 22 March 2017 03:46 EDT

This is necessary as headless chrome cannot show a UI warning for SSL certificate errors. Instead, we can expose the errors as DevTools events and control the action to take through a DevTools command.

BUG=659662

Review-Url: https://codereview.chromium.org/2639203003 Cr-Commit-Position: refs/heads/master@{#458673}

8452ddd6 Add certificate error handling to devtools.
chrome/browser/chrome_content_browser_client.cc | 2 +-
.../protocol/devtools_protocol_browsertest.cc | 115 +++++++++++++++++++++
.../browser/devtools/protocol/security_handler.cc | 59 +++++++++++
.../browser/devtools/protocol/security_handler.h | 28 ++++-
.../devtools/render_frame_devtools_agent_host.h | 2 +-
content/browser/ssl/ssl_manager.cc | 35 ++++++-
content/test/data/devtools/image.html | 6 ++
content/test/data/devtools/test.jpg | Bin 0 -> 3036 bytes
.../Source/core/inspector/browser_protocol.json | 30 ++++++
.../devtools/front_end/security/SecurityModel.js | 10 ++
10 files changed, 278 insertions(+), 9 deletions(-)

Upstream: git.chromium.org


  • Share