Closed Bug 295279 Opened 20 years ago Closed 20 years ago

provide origin charset of original URI to error page

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: chpe, Assigned: chpe)

Details

Attachments

(1 file, 1 obsolete file)

I want to provide my own error page implementation instead of using the mozilla ones. The original URI is provided to the error page in the query string, but not the origin charset of the original URI. The origin charset is needed to unescape the address. The origin charset could simply be provided in the query string too.
Attachment #184402 - Flags: superreview?(bzbarsky)
Attachment #184402 - Flags: review+
Comment on attachment 184402 [details] [diff] [review] add charset parameter to error page URL This leaks; escapedCharset is never freed.
Attachment #184402 - Flags: superreview?(bzbarsky) → superreview-
Free the escaped charset after use. (Transferring biesi's r+)
Attachment #184402 - Attachment is obsolete: true
Attachment #184414 - Flags: superreview?(bzbarsky)
Attachment #184414 - Flags: review+
Attachment #184414 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 184414 [details] [diff] [review] add charset parameter to error page URL This is a simple addition for embedders who want to override the error pages. There's no risk, since error pages are not enabled by default.
Attachment #184414 - Flags: approval1.8b3?
Comment on attachment 184414 [details] [diff] [review] add charset parameter to error page URL I thought we were getting rid of this query-string passing, myself, but that doesn't affect the merits of this when-in-rome patch. a=shaver
Attachment #184414 - Flags: approval1.8b3? → approval1.8b3+
Assignee: cbiesinger → chpe
OS: Linux → All
Hardware: PC → All
Checking in docshell/base/nsDocShell.cpp; /cvsroot/mozilla/docshell/base/nsDocShell.cpp,v <-- nsDocShell.cpp new revision: 1.684; previous revision: 1.683 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: