Bug 1102537 - Remove "which is run by *unknown*" block from non-EV site identity message. r=mcomella
This commit is contained in:
@@ -159,7 +159,7 @@ public class SiteIdentity {
|
||||
|
||||
try {
|
||||
mHost = identityData.getString("host");
|
||||
mOwner = identityData.getString("owner");
|
||||
mOwner = identityData.optString("owner", null);
|
||||
mSupplemental = identityData.optString("supplemental", null);
|
||||
mVerifier = identityData.getString("verifier");
|
||||
mEncrypted = identityData.getString("encrypted");
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
android:textColor="@color/doorhanger_text"
|
||||
android:textStyle="bold"/>
|
||||
|
||||
<TextView android:layout_width="wrap_content"
|
||||
<TextView android:id="@+id/owner_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/doorhanger_text"
|
||||
|
||||
@@ -49,6 +49,7 @@ public class SiteIdentityPopup extends ArrowPopup {
|
||||
private LinearLayout mIdentityUnknownContainer;
|
||||
|
||||
private TextView mHost;
|
||||
private TextView mOwnerLabel;
|
||||
private TextView mOwner;
|
||||
private TextView mVerifier;
|
||||
|
||||
@@ -81,6 +82,7 @@ public class SiteIdentityPopup extends ArrowPopup {
|
||||
(LinearLayout) mIdentity.findViewById(R.id.site_identity_unknown_container);
|
||||
|
||||
mHost = (TextView) mIdentityKnownContainer.findViewById(R.id.host);
|
||||
mOwnerLabel = (TextView) mIdentityKnownContainer.findViewById(R.id.owner_label);
|
||||
mOwner = (TextView) mIdentityKnownContainer.findViewById(R.id.owner);
|
||||
mVerifier = (TextView) mIdentityKnownContainer.findViewById(R.id.verifier);
|
||||
}
|
||||
@@ -126,13 +128,20 @@ public class SiteIdentityPopup extends ArrowPopup {
|
||||
mHost.setText(siteIdentity.getHost());
|
||||
|
||||
String owner = siteIdentity.getOwner();
|
||||
if (owner == null) {
|
||||
mOwnerLabel.setVisibility(View.GONE);
|
||||
mOwner.setVisibility(View.GONE);
|
||||
} else {
|
||||
mOwnerLabel.setVisibility(View.VISIBLE);
|
||||
mOwner.setVisibility(View.VISIBLE);
|
||||
|
||||
// Supplemental data is optional.
|
||||
final String supplemental = siteIdentity.getSupplemental();
|
||||
if (!TextUtils.isEmpty(supplemental)) {
|
||||
owner += "\n" + supplemental;
|
||||
// Supplemental data is optional.
|
||||
final String supplemental = siteIdentity.getSupplemental();
|
||||
if (!TextUtils.isEmpty(supplemental)) {
|
||||
owner += "\n" + supplemental;
|
||||
}
|
||||
mOwner.setText(owner);
|
||||
}
|
||||
mOwner.setText(owner);
|
||||
|
||||
final String verifier = siteIdentity.getVerifier();
|
||||
final String encrypted = siteIdentity.getEncrypted();
|
||||
|
||||
@@ -6815,9 +6815,6 @@ var IdentityHandler = {
|
||||
return result;
|
||||
}
|
||||
|
||||
// Otherwise, we don't know the cert owner
|
||||
result.owner = Strings.browser.GetStringFromName("identity.ownerUnknown3");
|
||||
|
||||
// Cache the override service the first time we need to check it
|
||||
if (!this._overrideService)
|
||||
this._overrideService = Cc["@mozilla.org/security/certoverride;1"].getService(Ci.nsICertOverrideService);
|
||||
|
||||
@@ -91,7 +91,6 @@ identity.identified.verified_by_you=You have added a security exception for this
|
||||
identity.identified.state_and_country=%S, %S
|
||||
identity.identified.title_with_country=%S (%S)
|
||||
identity.encrypted2=Encrypted
|
||||
identity.ownerUnknown3=unknown
|
||||
|
||||
# Geolocation UI
|
||||
geolocation.allow=Share
|
||||
|
||||
Reference in New Issue
Block a user