Network monitor params plain text
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(firefox67 fixed)
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: reachrammy, Assigned: hemakshis, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: good-first-bug)
Attachments
(1 file, 1 obsolete file)
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Thanks for the report! I can reproduce that on my machine.
Some instructions for anyone interested in fixing this:
-
Here is the place where the panel content is generated:
https://searchfox.org/mozilla-central/rev/76fe4bb385348d3f45bbebcf69ba8c7283dfcec7/devtools/client/netmonitor/src/components/ParamsPanel.js#139 -
It looks like both JSON_SCOPE_NAME and PARAMS_POST_PAYLOAD should be used.
-
We need a test for this, look e.g. here:
https://searchfox.org/mozilla-central/source/devtools/client/netmonitor/test/browser_net_post-data-02.js
Honza
| Assignee | ||
Comment 2•7 years ago
|
||
Hi @honza
I would like to take up this issue. Just need some help in reproducing it (a way to make a dummy JSON post request).
Thank you!
Hemakshi
Comment 3•7 years ago
|
||
(In reply to Hemakshi Sachdev [:hemakshis] she/her from comment #2)
I would like to take up this issue. Just need some help in reproducing it (a way to make a dummy JSON post request).
I create a simple test page here:
http://janodvarko.cz/tests/bugzilla/1514750/
Click the button on the page to generate JSON POST request.
Thanks!
Honza
| Assignee | ||
Comment 4•7 years ago
|
||
The current changes, shows the JSON Body in a plain text view in the Params Panel
| Assignee | ||
Comment 5•7 years ago
|
||
I think this test resembles more to our requirements. What do you think?
| Assignee | ||
Updated•7 years ago
|
Comment 6•7 years ago
|
||
There are some failures on Try when I apply your patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9d82abe47a8379a74f2ac7162a493c3be164f76e&selectedJob=226181532
Probably just related to the UI change.
(In reply to Hemakshi Sachdev [:hemakshis] she/her from comment #5)
I think this test resembles more to our requirements. What do you think?
Yep, looks like we should adopt it to test that the JSON plain text is there.
Honza
| Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] (need-info? me) from comment #6)
There are some failures on Try when I apply your patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9d82abe47a8379a74f2ac7162a493c3be164f76e&selectedJob=226181532Probably just related to the UI change.
So to resolve these failures we need to change the tests...? * I guess *
Comment 8•7 years ago
|
||
(In reply to Hemakshi Sachdev [:hemakshis] she/her from comment #7)
So to resolve these failures we need to change the tests...? * I guess *
Yes
Honza
| Assignee | ||
Comment 9•7 years ago
|
||
Updated•7 years ago
|
Comment 10•7 years ago
|
||
This is ready to land, thanks!
Honza
| Assignee | ||
Comment 11•7 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #10)
This is ready to land, thanks!
Honza
Thank you :)
So, what should be the next step? Should I add a checkin-needed keyword or something in Phabricator?
Comment 12•7 years ago
|
||
I just landed that manually through Phabricator.
Honza
Comment 13•7 years ago
|
||
| Assignee | ||
Comment 14•7 years ago
|
||
Cool! Thank you so much :)
Hemakshi
Comment 15•7 years ago
|
||
| bugherder | ||
Description
•