Commit 961fa695 authored by tsergeant's avatar tsergeant Committed by Commit bot

Android: Fix Details link in Origin Info bubble not showing for some sites

The change to classify mixed content and SHA-1 certificates as insecure
meant that a details link would not appear for these sites.

BUG=568401

Review URL: https://codereview.chromium.org/1509193007

Cr-Commit-Position: refs/heads/master@{#364499}
parent 0ca92d66
......@@ -483,7 +483,10 @@ public class WebsiteSettingsPopup implements OnClickListener {
* HTTPS connections.
*/
private boolean isConnectionDetailsLinkVisible() {
return !mIsInternalPage && mSecurityLevel != ConnectionSecurityLevel.NONE;
// TODO(tsergeant): If this logic gets any more complicated from additional deprecations,
// change it to use something like |SchemeIsCryptographic|.
return !mIsInternalPage && (mSecurityLevel != ConnectionSecurityLevel.NONE
|| mPassiveMixedContentPresent || mDeprecatedSHA1Present);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment