Closed Bug 188795 Opened 22 years ago Closed 19 years ago

missing error page descriptions

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: peterhenderson, Assigned: csthomas)

References

()

Details

Attachments

(2 files, 1 obsolete file)

Bug 156997 fixed the error pages to be rendered with nice XHTML and a CSS stylesheet. One minor error that the review missed is that dnsNotFound is included twice. It does not get displayed twice, but it is included in the source XHTML twice. It is an error for two elements to have the same id. Actual results: chrome://global/content/netError.xhtml does not validate because it contains both a duplicate <div> with the id et_dnsNotFound and another pair of <div>s with the id ld_dnsNotFound. Solution: Remove the second et_dnsNotFound and ld_dnsNotFound.
Attached patch Patch v1 (obsolete) — Splinter Review
removes the second <div> from each place it's duplicated
Attachment #111351 - Flags: superreview?(bzbarsky)
Attachment #111351 - Flags: review?(adamlock)
Attachment #111351 - Flags: superreview?(bzbarsky) → superreview+
Thanks for catching this, however I think the duplicate dnsNotFound should actually be a netReset instead which is listed in the DTD but has no entry in the XHTML. Can you update your patch?
Fixes it as Adam said, but I looked up the docshell code that assigns the error message names: http://lxr.mozilla.org/seamonkey/source/docshell/base/nsDocShell.cpp#2472 and there are still a bunch missing, one of which I hit yesterday (netInterrupt). Also, they are in a different order; we might want to be consistent, although it doesn't matter. The ones missing are: - netInterrupt - unknownSocketType (Doc failed to load because PSM is not installed) - isprinting (Doc navigation attempted while Printing or Print Preview) - deniedPortAccess (Port blocked for security reasons) - proxyResolveFailure (Proxy hostname could not be resolved.) - proxyConnectFailure (Proxy connection was refused.) I don't think we should have an error page for isprinting since the error is that navigation was attempted, and loading the page would be more navigation. I haven't encountered any of the others, but I think they should probably be included for completeness. If someone could write nice descriptions, I can make another patch.
Attachment #111351 - Attachment is obsolete: true
Comment on attachment 111399 [details] [diff] [review] Patch v2 (checked in) r=adamlock
Attachment #111399 - Flags: superreview+
Attachment #111399 - Flags: review+
I've checked in this patch for you. I'll keep the bug open and rename it to cover the other missing entries.
Blocks: errorpages
Summary: dnsNotFound included twice in new error pages → missing error page descriptions
Attachment #111351 - Flags: review?(adamlock)
So, the other descriptions are still missing. There are short descriptions from the dialog box error messages in appstrings.properties http://lxr.mozilla.org/seamonkey/source/docshell/resources/locale/en-US/appstrings.properties I can add those to the XHTML page but I don't know what to use for the long descriptions. Adam, I believe you wrote or at least compiled the existing error descriptions. Up for writing some more?
Assignee: adamlock → cst
Target Milestone: --- → mozilla1.8beta3
Attachment #111399 - Attachment filename: patch → patch (checked in)
Attachment #111399 - Attachment description: Patch v2 → Patch v2 (checked in)
Attachment #111399 - Attachment filename: patch (checked in) → patch
This patch adds descriptions for netInterrupt, deniedPortAccess, proxyResolveFailure, and proxyConnectFailure. I don't know what the actual long description text should be for the proxy cases, so with this patch, the proxy pages display the same error text twice. (sorry for all the bugspam)
Whiteboard: [cst: need better messages?]
Remaining issues will be handled in bug 301208. Marking this one as FIXED now.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [cst: need better messages?]
Target Milestone: mozilla1.8beta3 → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: