⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 185795 in webkit


Ignore:
Timestamp:
Jun 20, 2015, 9:06:23 AM (11 years ago)
Author:
Michael Catanzaro
Message:

Check for SHA1 certificates ignores subresources
https://bugs.webkit.org/show_bug.cgi?id=146159

Reviewed by Dan Bernstein.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didCommitLoadForFrame): Call
PageLoadState::didDisplayOrRunInsecureContent if a certificate chain contains a non-root
SHA1 certificate when the frame is not the main frame.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r185794 r185795  
     12015-06-20  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Check for SHA1 certificates ignores subresources
     4        https://bugs.webkit.org/show_bug.cgi?id=146159
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * UIProcess/WebPageProxy.cpp:
     9        (WebKit::WebPageProxy::didCommitLoadForFrame): Call
     10        PageLoadState::didDisplayOrRunInsecureContent if a certificate chain contains a non-root
     11        SHA1 certificate when the frame is not the main frame.
     12
    1132015-06-20  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r185721 r185795  
    29422942
    29432943    auto transaction = m_pageLoadState.transaction();
    2944 
    2945     if (frame->isMainFrame()) {
    2946         bool hasInsecureCertificateChain = m_treatsSHA1CertificatesAsInsecure && certificateInfo.containsNonRootSHA1SignedCertificate();
    2947         m_pageLoadState.didCommitLoad(transaction, hasInsecureCertificateChain);
    2948     }
     2944    bool markPageInsecure = m_treatsSHA1CertificatesAsInsecure && certificateInfo.containsNonRootSHA1SignedCertificate();
     2945    if (frame->isMainFrame())
     2946        m_pageLoadState.didCommitLoad(transaction, markPageInsecure);
     2947    else if (markPageInsecure)
     2948        m_pageLoadState.didDisplayOrRunInsecureContent(transaction);
    29492949
    29502950#if USE(APPKIT)
Note: See TracChangeset for help on using the changeset viewer.