• Emily Stark's avatar
    Isolate cert decisions for non-default storage partition · 05b0dc3a
    Emily Stark authored
    Currently, all cert error decisions (i.e., when a user clicks through
    a certificate error) are stored in ContentSettings, associated with a
    Profile. This means that if a user clicks through a certificate error
    in a <webview> in a Chrome App, that decisions propagates to normal
    browsing. Persisting decisions within a <webview> is undesirable on
    its own (because there's no UI to remind the user that they've done so
    and to allow them to revoke the decision), and it's especially
    undesirable for that decision to affect normal browsing. Therefore,
    this CL isolates cert error decisions by storage partition. Decisions
    made for the default storage partition are remembered in the normal
    way (ContentSettings for the Profile); decisions for other storage
    partitions are remembered in memory only.
    
    Bug: 639173
    Change-Id: If1cca181c80f8d07f5411fbb0d3707cf3755c5a2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974698Reviewed-by: default avatarMustafa Emre Acer <meacer@chromium.org>
    Reviewed-by: default avatarBo <boliu@chromium.org>
    Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
    Commit-Queue: Emily Stark <estark@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#726607}
    05b0dc3a
ssl_host_state_delegate_impl.cc 3.24 KB