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)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
People
(Reporter: mozilla, Assigned: alexsavulov)
Details
(Whiteboard: fixed_on_trunk)
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
alexsavulov
:
review+
alexsavulov
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
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
Updated•22 years ago
|
Priority: -- → P3
Assignee | ||
Comment 1•22 years ago
|
||
the patch adds the desired functionality and moves some code to a local
function to avoid code duplication.
Comment 2•22 years ago
|
||
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.
Assignee | ||
Comment 3•22 years ago
|
||
added jkeiser's requirements
Attachment #93371 -
Attachment is obsolete: true
Comment 4•22 years ago
|
||
Comment on attachment 93375 [details] [diff] [review]
improved fix
r=jkeiser
Attachment #93375 -
Flags: review+
Comment 5•22 years ago
|
||
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+
Assignee | ||
Comment 6•22 years ago
|
||
improved patch
Assignee | ||
Updated•22 years ago
|
Attachment #93375 -
Attachment is obsolete: true
Assignee | ||
Comment 7•22 years ago
|
||
Comment on attachment 93605 [details] [diff] [review]
replaced autostring with string
trnsferring review flags
Attachment #93605 -
Flags: superreview+
Attachment #93605 -
Flags: review+
Comment 8•22 years ago
|
||
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+
Assignee | ||
Comment 9•22 years ago
|
||
fixed on trunk
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: fixed on trunk
Assignee | ||
Updated•22 years ago
|
Whiteboard: fixed on trunk → fixed_on_trunk
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•