Network query params with symbol + , urlEncoded %2B, are missing
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(firefox76 fixed)
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: Fenricage, Assigned: basavaraj.bugzilla)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug)
Attachments
(2 files, 2 obsolete files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Steps to reproduce:
I Just send request, one of params is comma-separated string, its has +, and its doesnt displaying in tenwork tab in Mozilla. I check last versions of developer edition, nightly, and default browser.
Also i checked browser my friend, he has 60 version, os is debian. Its work there
Actual results:
Symbol plus, didnt dispay in network tab -> params -> my query string
i send "+namespace:value", but network tab show me "namespace:value" without +
Expected results:
i should see all my query string, i suspect that it because network tab doesnt parse urlencoded symbols, like %CA, and replace it on spaces
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 3•5 years ago
|
||
Thanks for the report!
I can reproduce the problem.
Honza
Comment 4•5 years ago
|
||
Some instructions for anyone who's interested in fixing this bug:
- Parsed query string is rendered in the Params side panel
This line is interesting, it parses the query string:
https://searchfox.org/mozilla-central/rev/f43ae7e1c43a4a940b658381157a6ea6c5a185c1/devtools/client/netmonitor/src/components/ParamsPanel.js#146
That line returns namespace:value
parseQueryString
is implemented here:
https://searchfox.org/mozilla-central/rev/f43ae7e1c43a4a940b658381157a6ea6c5a185c1/devtools/client/netmonitor/src/utils/request-utils.js#324
Could the problem be in this function?
Could we take some inspiration from this parseQueryString
implementation?
https://searchfox.org/mozilla-central/rev/f43ae7e1c43a4a940b658381157a6ea6c5a185c1/browser/extensions/pdfjs/content/web/viewer.js#2614
Honza
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
r=honza
Comment 7•5 years ago
|
||
Assigned to you, thanks for the help!
Honza
Hello Honza, the bug has been fixed. As advised by you, I have kept the code similar to the other parseQueryString function and only made small modifications. Kindly review the code. Thanks.
Assignee | ||
Comment 10•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/818c4f0fe7d5
https://hg.mozilla.org/mozilla-central/rev/048bcce2918f
Updated•5 years ago
|
Description
•