Closed Bug 1442249 Opened 2 years ago Closed 1 year ago

[Netmonitor] Add Copy context menu to json response

Categories

(DevTools :: Netmonitor, enhancement, P3)

60 Branch
enhancement

Tracking

(firefox60 wontfix, firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox60 --- wontfix
firefox68 --- fixed

People

(Reporter: nachtigall, Assigned: Laphets)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The console has a nice Copy context menu for JS objects / arrays. It would be nice if this context menu was also available in the Netmonitor response tab (and probably also in the JSON viewer that pops up when opening the request in a new tab). See screenshot.

I find myself often wanting to copy the json, or - important! - only part of it. For instance when the response would set state in React and I want to try out by copying it into my IDE.
I like the idea.

For now, you can right click on the request-entry and pick:
Copy -> Copy Response

Honza
Priority: -- → P3
Product: Firefox → DevTools

Would like to pick up this bug! :)

Assignee: nobody → wenqing4
Status: NEW → ASSIGNED

Will take time to review this, please NI me so that this will be in my queue :)

Flags: needinfo?(wenqing4)
Flags: needinfo?(wenqing4) → needinfo?(E0032242)

I just put some comments into Phabricator.
Honza

Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4b68c7d0429f
Add Copy context menu to PropertiesView. r=Honza
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Flags: needinfo?(E0032242)

Hello! I am using version 60.8.0esr (64-bit) and this context menu isn't appearing when I right-click in any of the sub-menus for the Network section of Developer Tools. I've tested on OSX and Windows and neither presents a context menu with the option to copy details as JSON. Some further information - this was working on 15 August 2019 but is not working today (22 August 2019).

(In reply to sujata.rao from comment #8)

Hello! I am using version 60.8.0esr (64-bit) and this context menu isn't appearing when I right-click in any of the sub-menus for the Network section of Developer Tools. I've tested on OSX and Windows and neither presents a context menu with the option to copy details as JSON. Some further information - this was working on 15 August 2019 but is not working today (22 August 2019).

Ignore the previous comment. Installing version 68.0.2 fixed the issue.

You need to log in before you can comment on or make changes to this bug.