Closed Bug 1253556 Opened 9 years ago Closed 9 years ago

response source for requests not shown as tooltip (set as 'code' attribute)

Categories

(DevTools :: Netmonitor, defect, P2)

defect

Tracking

(firefox48 fixed)

RESOLVED FIXED
Firefox 48
Tracking Status
firefox48 --- fixed

People

(Reporter: aryx, Assigned: ochameau)

References

Details

(Whiteboard: [btpp-fix-later])

Attachments

(1 file)

Firefox 46.0a2 20160303004038, Windows 8.1 Bug 1158264 added strings for showing the source of the response for network requests in the Network panel of the developer toolbox. These are never shown to the users but set as values of the 'code' attribute. Is that of any use? If not, please fix it or remove the code. Furthermore, this should also be fixed (also from bug 1158264): > code = L10N.getStr("netmonitor.status.cached"); > code = "cached"; Also in the request list, the icon is a hollow circle while in the details pane it's a full one for the same request which gets served from cache. In 47.0a1, the HTTP status shows 304 (instead of 200 in 46.0a2) and the Size and Transferred columns always values. The former one shows that the response is from cache in 46.0a2.
Let's ask :ochameau, since he added the original feature.
Flags: needinfo?(poirot.alex)
Priority: -- → P2
Whiteboard: [btpp-fix-later]
Assignee: nobody → poirot.alex
Flags: needinfo?(poirot.alex)
Thanks for the report! You're right. I thought these strings were somehow used in the interface, but no. It is only used in CSS to set the right color for the status circle and in tests. Regarding the actual color being used for service worker, I don't know. May be we should ping Helen to give some thoughts on what color we should use for service worker requests. Otherwise I think the changes you see with status code are correct, before we were just wrong when service worker were involved. Now we expose the two requests, the one being done within the service worker (which we used to display as "cached") and the one being done by the webpage itself (which wasn't shown before and relates to the one being served by the SW)
Attachment #8731635 - Flags: review?(vporof)
Comment on attachment 8731635 [details] [diff] [review] Remove unnecessary netmonitor.status.* strings. Review of attachment 8731635 [details] [diff] [review]: ----------------------------------------------------------------- test?
Attachment #8731635 - Flags: review?(vporof) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: