Closed Bug 1324204 Opened 7 years ago Closed 7 years ago

Cert error page: Error code link in 'Technical details' shown as html code

Categories

(SeaMonkey :: General, defect)

SeaMonkey 2.50 Branch
defect
Not set
normal

Tracking

(seamonkey2.46 wontfix, seamonkey2.47 affected, seamonkey2.48 affected, seamonkey2.49esr affected, seamonkey2.50 fixed)

RESOLVED FIXED
seamonkey2.50
Tracking Status
seamonkey2.46 --- wontfix
seamonkey2.47 --- affected
seamonkey2.48 --- affected
seamonkey2.49esr --- affected
seamonkey2.50 --- fixed

People

(Reporter: philip.chee, Assigned: philip.chee)

References

Details

Attachments

(1 file)

STR:
1. Go to https://subdomain.preloaded-hsts.badssl.com/
2. Expand Technical Details

Expected:

subdomain.preloaded-hsts.badssl.com uses an invalid security certificate.

The certificate is only valid for the following names:
*.badssl.com, badssl.com

Error code: SSL_ERROR_BAD_CERT_DOMAIN

Actual:

subdomain.preloaded-hsts.badssl.com uses an invalid security certificate.

The certificate is only valid for the following names:
*.badssl.com, badssl.com 

Error code: <a id="errorCode"
title="SSL_ERROR_BAD_CERT_DOMAIN">SSL_ERROR_BAD_CERT_DOMAIN</a>

---------------------------------------------------------------
Notes:
Similar Android bug:
Bug 1238382 - cert error page: Error code link in 'Technical details' shown as html code.
Bug 1238382 Bring Android's about:certerror and about:neterror closer to the desktop versions.
https://hg.mozilla.org/mozilla-central/rev/1292ce950e07

Bug 431826 - Redesign certificate error page for Firefox as about:certerror.

addDomainErrorLink added in:
Bug 402210 - Should SSL Error page for domain mismatch hyperlink to correct site?

addDomainErrorLink() became addDomainErrorLinks() in:
Bug 1207146 - Add a link to expert technical information in the cert error page.
https://hg.mozilla.org/releases/mozilla-esr45/rev/de962dcbc06c
Which is also where the error code was introduced.
This patch DOES NOT implement the click event handler for the Error Code. I'm going to spin that into a new bug. This bug only fixes ONE ISSUE as per summary.
Attachment #8819542 - Flags: review?(iann_bugzilla)
Comment on attachment 8819542 [details] [diff] [review]
Patch v1.0 Proposed fix

>+  if (!firstResult) {
>+      sd.textContent = desc;
>+      return;

Do we need to set sd.textContent here as Firefox don't seem to?

r/a=me with that addressed/answered.
Attachment #8819542 - Flags: review?(iann_bugzilla) → review+
Pushed to comm-central
http://hg.mozilla.org/comm-central/rev/8bc108f04b93ea2a9d8fc2552f60b5205b6c2293
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: