The request body parser needs to change to match DOM changes
Categories
(WebExtensions :: Request Handling, task, P2)
Tracking
(firefox90 fixed)
| Tracking | Status | |
|---|---|---|
| firefox90 | --- | fixed |
People
(Reporter: andreu, Assigned: andreu)
References
Details
Attachments
(1 file)
Bug 1686765 is changing some details of form serialization, and in particular, it changes the way names and filenames are serialized in multipart/form-data payloads. As they are currently serialized, newlines are converted into spaces, and double quotes are escaped with a backslash. This is being changed to match Chrome's behavior, with newlines (CR and LF) and double quotes being percent-escaped.
This change breaks toolkit/components/extensions/test/mochitest/test_ext_webrequest_upload.html because the WebExtensions code that parses request bodies on webRequest.onBeforeRequest decodes quotes escaped with a backslash but lets percent escapes through. I checked Chrome's behavior here, and it decodes all percent-escapes, not only those produced by the serialization.
Comment 1•4 years ago
|
||
Andreu, is there a target release version for this change? Will you be able to update the handling in webRequest[1]?
| Assignee | ||
Comment 2•4 years ago
|
||
There isn't a target release version, yet at the very least. I'll be fixing the handling in a separate commit in the same Phabricator revision, if that's okay.
| Assignee | ||
Comment 3•4 years ago
|
||
This will also make the parser compatible with the changes to the multipart/form-data serializer in bug 1686765.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:abb, could you have a look please?
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 5•4 years ago
|
||
The patch for this bug cannot be merged before the one for bug 1686765, which is still waiting for a review.
Comment 7•4 years ago
|
||
| bugherder | ||
Updated•1 year ago
|
Description
•