Closed Bug 1461271 Opened 6 years ago Closed 6 years ago

Copy POST data labelled wrongly for POST request in network tab

Categories

(DevTools :: Netmonitor, defect, P3)

60 Branch
x86_64
Linux
defect

Tracking

(firefox63 fixed)

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

(Reporter: andre.jaenisch, Assigned: abhinav.koppula, Mentored)

Details

(Keywords: good-first-bug, Whiteboard: good-first-bug)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180509235650

Steps to reproduce:

Open Developer Tools and switch to network tab.

Send a PATCH request to an endpoint (you can try it with https://jsonplaceholder.typicode.com/).

The request shows up in the DevTools. Rightclick it and select „Copy” from the context menu.


Actual results:

An option „Copy POST Data” is shown.


Expected results:

The option should be labelled „Copy PATCH Data”.
This is most likely true for PUT requests, too.
Component: Untriaged → Developer Tools: Netmonitor
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Product: Firefox → DevTools
Thanks for the report!

The string needs to be fixed here:
https://searchfox.org/mozilla-central/rev/93d2b9860b3d341258c7c5dcd4e278dea544432b/devtools/client/netmonitor/src/widgets/RequestListContextMenu.js#74

Honza
Mentor: odvarko
Keywords: good-first-bug
Priority: -- → P3
Whiteboard: good-first-bug
Comment on attachment 8987154 [details]
Bug 1461271 - Copy POST data labelled wrongly for PUT/PATCH requests in network tab.

https://reviewboard.mozilla.org/r/252386/#review259116

Thanks for the patch Abhinav!

Looks good and fixes the issue nicely.

R+ assuming try is green.

Honza
Attachment #8987154 - Flags: review?(odvarko) → review+
Hi Honza,
I have pushed to TRY, there are 2 failures, are those by any chance related to this patch?
https://treeherder.mozilla.org/#/jobs?repo=try&revision=31062b1959af8b7d2806ca5a58b86b8b431b1b92
Flags: needinfo?(odvarko)
(In reply to Abhinav Koppula from comment #4)
> Hi Honza,
> I have pushed to TRY, there are 2 failures, are those by any chance related
> to this patch?
> https://treeherder.mozilla.org/#/
> jobs?repo=try&revision=31062b1959af8b7d2806ca5a58b86b8b431b1b92

I don't think they are related, but I re-triggered them and let's see what are the results.
Honza
Flags: needinfo?(odvarko)
@Abhinav: Looks good, the other runs are green.

I think that the patch is ready to land :-)

Honza
Assignee: nobody → abhinav.koppula
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: checkin-needed
Pushed by nerli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/93b74e218e64
Copy POST data labelled wrongly for PUT/PATCH requests in network tab.r=Honza
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/93b74e218e64
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Thank you, Abhinav, for working on this :-)
Thank you, Honza, for reviewing it.

Looking forward to Firefox 63 :-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: