Open Bug 1885492 Opened 7 months ago Updated 5 months ago

Handling of HTML-Mailto-Forms with Thunderbird on Linux

Categories

(Core :: DOM: Forms, defect)

Firefox 124
defect

Tracking

()

UNCONFIRMED

People

(Reporter: sven.glueckspilz, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0

Steps to reproduce:

  1. Created an standard HTML file with form:

<form action="mailto:me@me.de" enctype="text/plain" method="get">
<div>
<label for="subject">Betreff</label>
<input type="text" name="subject" id="subject" placeholder="Betreff">
</div>
<div>
<label for="message">Nachricht</label>
<textarea name="body" id="body" cols="30" rows="10" placeholder=""Ihre Nachricht></textarea>
</div>
<div>
<button type="reset">Löschen</button>
<button type="submit" >Absenden</button>
</div>
</form>

  1. Opened the file in Firefox DEV Edition
  2. Filled out form with spacec in subject and a few linebreaks and spaces in body
  3. Clicked on Submit

Actual results:

Thunderbird openend, schowed new email form and filled in subject and message body. Original pace characters were replaced by + characters

Expected results:

Space characters should show up as spaces, not as +.
Works well e.g. in Chromium wit the same form and same OS/Thunderbird.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Forms' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Forms
Product: Firefox → Core

I just tested out in Chromium and it also replaces spaces with "+" for me. I wonder if this replaces to settings of clipboard or something.

Edgar, do you know why this happens?

Severity: -- → S3
Flags: needinfo?(echen)

This is about form submission and application/x-www-form-urlencoded serializer: https://url.spec.whatwg.org/#string-percent-encode-after-encoding replaces U+0020 (SP) with U+002B (+), and then https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-mailto-headers replaces U+002B (+) with U+0020 (SP) back. But I wonder if any browser replaces them back when submitting mailto as I also tested Chromium/Safari with Mail.app on macOS, they also replace space with "+".

Flags: needinfo?(echen)
See Also: → 1781264
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: