Closed Bug 159786 Opened 22 years ago Closed 22 years ago

mailto form should accept more than just text/plain encoding

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: mozilla, Assigned: alexsavulov)

Details

(Whiteboard: fixed_on_trunk)

Attachments

(1 file, 2 obsolete files)

The fix for bug 61893 requires that the enctype text/plain be used in order for the form to be passed to the mail client. We should support others (at least url-encoded -- the default) ala NS4.x Apparently IE requires text/plain and most tutorials recommend it (because it is human readable) but there may be some people using NS4 who don't want to have to rewrite their pages. (think internal IS departments and intranets) Looking at the code it should be a relativly simple fix to just add url-encoded encoding to the list we check for, but there may be issues with keeping the path open for other encodings down the line. Note also that there is a request to attach files at some point through "file" input elements which would entail the acceptance of multipart-form-encoded That is bug 135980
Priority: -- → P3
Attached patch fix for the bug (actually enhancement) (obsolete) (deleted) — Splinter Review
the patch adds the desired functionality and moves some code to a local function to avoid code duplication.
Comment on attachment 93371 [details] [diff] [review] fix for the bug (actually enhancement) 1. Make HandleSubject static to avoid polluting the linker namespace, and change the name to something like CreateMailtoSubject or HandleMailtoSubject. 2. hasSubject, hasParams, paramSep no longer need to be declared down where you removed the stuff you put into HandleSubject.
Attached patch improved fix (obsolete) (deleted) — Splinter Review
added jkeiser's requirements
Attachment #93371 - Attachment is obsolete: true
Comment on attachment 93375 [details] [diff] [review] improved fix r=jkeiser
Attachment #93375 - Flags: review+
Comment on attachment 93375 [details] [diff] [review] improved fix > +HandleMailtoSubject(nsCAutoString& aPath) { Make that take a nsCString& (which is not as specific) and sr=bzbarsky
Attachment #93375 - Flags: superreview+
Attached patch replaced autostring with string (deleted) — Splinter Review
improved patch
Attachment #93375 - Attachment is obsolete: true
Comment on attachment 93605 [details] [diff] [review] replaced autostring with string trnsferring review flags
Attachment #93605 - Flags: superreview+
Attachment #93605 - Flags: review+
Comment on attachment 93605 [details] [diff] [review] replaced autostring with string a=asa (on behalf of drivers) for checkin to 1.1
Attachment #93605 - Flags: approval+
fixed on trunk
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: fixed on trunk
Whiteboard: fixed on trunk → fixed_on_trunk
verifying build 2002-08-05-08-trunk
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: