Closed
Bug 955933
Opened 11 years ago
Closed 10 years ago
Allow copying the network response string
Categories
(DevTools :: Netmonitor, defect, P1)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: mossop, Assigned: gl)
References
Details
(Whiteboard: [polish-backlog][difficulty=easy])
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
gl
:
review+
|
Details | Diff | Splinter Review |
After a JSON request I can see the JSON data in the right panel of the network monitor. Clicking a value opens a text box with the value selected. Right clicking shows a menu with the usual edit commands. Clicking copy doesn't add the value to the clipboard though.
Comment 1•10 years ago
|
||
This patch adds a "Copy Response as String" item to the network request context menu.
The item is hidden if the response is not ready yet or doesn't have a text representation.
Comment 2•10 years ago
|
||
Comment on attachment 8443939 [details] [diff] [review]
Allow copying the network response string.
Hello Victor, can you please have a look at this? Thanks!
Attachment #8443939 -
Flags: review?(vporof)
Comment 3•10 years ago
|
||
Comment on attachment 8443939 [details] [diff] [review]
Allow copying the network response string.
Review of attachment 8443939 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good! Please add a test as well. They are in devtools/netmonitor/test, and browser_net_copy_url.js looks like a good one to clone.
Attachment #8443939 -
Flags: review?(vporof) → feedback+
Assignee | ||
Comment 5•10 years ago
|
||
Rebased and added a test case from the original patch, which implements a context menu item for copying the response.
The original problem described by mossop in comment 1 seems to be working for me since I can click copy the value from the context menu of a value's textbox in the json inspector in the network response.
Attachment #8443939 -
Attachment is obsolete: true
Attachment #8584200 -
Flags: review?(vporof)
Updated•10 years ago
|
Attachment #8584200 -
Flags: review?(vporof) → review+
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → gabriel.luong
Summary: Can't copy values from the JSON inspector → Allow copying the network response string
Assignee | ||
Comment 6•10 years ago
|
||
Rebased browser.ini
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fa5c129d9682
Attachment #8584200 -
Attachment is obsolete: true
Attachment #8586439 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 8•10 years ago
|
||
sorry had to back this out for test failures like https://treeherder.mozilla.org/logviewer.html#?job_id=2505119&repo=fx-team
Flags: needinfo?(gabriel.luong)
Whiteboard: [fixed-in-fx-team]
Comment 9•10 years ago
|
||
Why are you using an external accesskey (G), when the label is "Copy Response"?
Assignee | ||
Comment 10•10 years ago
|
||
(In reply to Francesco Lodolo [:flod] (UTC+1) from comment #9)
> Why are you using an external accesskey (G), when the label is "Copy
> Response"?
I mainly kept it from the original patch. What would you advise?
Flags: needinfo?(gabriel.luong)
Comment 11•10 years ago
|
||
It's an accesskey, you should use a character available in the string unless all of them are already taken.
Updated•10 years ago
|
Assignee | ||
Comment 12•10 years ago
|
||
Couldn't reproduce the error locally. I changed the access key for copyResponse ("R") and an existing accesskey for EditAndResend ("E", previously "R").
Attachment #8586439 -
Attachment is obsolete: true
Assignee | ||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
(In reply to Gabriel Luong (:gl) from comment #13)
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=5b323060e45f
Thanks - works really well!
Assignee | ||
Comment 15•10 years ago
|
||
Comment on attachment 8588947 [details] [diff] [review]
955933.patch
@vporof: Not quite sure if this sure needs another review, but only thing that changed was the access key. I couldn't reproduce the error seen when the patch was landed in fx-team and try build is green again. Would you advise trying to land the patch again?
@flod: is there any localization issue if an accesskey was simply swapped out for another?
Flags: needinfo?(francesco.lodolo)
Attachment #8588947 -
Flags: review?(vporof)
Comment 16•10 years ago
|
||
(In reply to Gabriel Luong (:gl) from comment #15)
> @flod: is there any localization issue if an accesskey was simply swapped
> out for another?
No, you're free to swap and reorganize accesskeys as you need, each locale should pick their own accesskeys and check for conflicts.
The only border case is when you move a string into a completely different context (e.g. you move a preference from one panel to another), and that might create unexpected conflicts, but it's not what happened here.
Flags: needinfo?(francesco.lodolo)
Comment 17•10 years ago
|
||
Assigning P1 priority for some devedition-40 bugs.
Filter on '148DD49E-D162-440B-AE28-E22632FC20AC'
Priority: -- → P1
Updated•10 years ago
|
Attachment #8588947 -
Flags: review?(vporof) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 18•10 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [devedition-40] → [devedition-40][fixed-in-fx-team]
Comment 19•10 years ago
|
||
Backed out for browser_net_copy_as_curl.js failures in e10s mode.
https://hg.mozilla.org/integration/fx-team/rev/a811b79720ac
4675 INFO TEST-UNEXPECTED-FAIL | browser/devtools/netmonitor/test/browser_net_copy_as_curl.js | Timed out while polling clipboard for pasted data. -
Stack trace:
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:wait:910
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForClipboard/wait/<:927
null:null:0
4676 INFO TEST-UNEXPECTED-FAIL | browser/devtools/netmonitor/test/browser_net_copy_as_curl.js | Creating a cURL command for the currently selected item was unsuccessful. -
Stack trace:
chrome://mochitests/content/browser/browser/devtools/netmonitor/test/browser_net_copy_as_curl.js:onFailure:61
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:wait:912
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForClipboard/wait/<:927
null:null:0
Whiteboard: [devedition-40][fixed-in-fx-team] → [devedition-40]
Assignee | ||
Comment 20•10 years ago
|
||
It appears that I added the new test between the curl-test and its skip-if declaration and thus enabled the already failing curl test for e10s.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b683bf273760
Attachment #8588947 -
Attachment is obsolete: true
Attachment #8593178 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [devedition-40] → [devedition-40][difficulty=easy]
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Whiteboard: [devedition-40][difficulty=easy] → [devedition-40][difficulty=easy][fixed-in-fx-team]
Assignee | ||
Comment 22•10 years ago
|
||
Comment 23•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [devedition-40][difficulty=easy][fixed-in-fx-team] → [devedition-40][difficulty=easy]
Target Milestone: --- → Firefox 40
Updated•9 years ago
|
Whiteboard: [devedition-40][difficulty=easy] → [polish-backlog][difficulty=easy]
Comment 24•7 years ago
|
||
This is somewhat arbitrary place from where to copy the response, I was looking for it on the Response tab. I found it in the context menu of the _Request_ line only after reading this bug :)
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•