Closed Bug 1619163 Opened 5 years ago Closed 5 years ago

Missing icon for request header

Categories

(DevTools :: Netmonitor, enhancement, P3)

75 Branch
enhancement

Tracking

(firefox76 fixed)

RESOLVED FIXED
Firefox 76
Tracking Status
firefox76 --- fixed

People

(Reporter: u656278, Assigned: marianapicolo, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36

Steps to reproduce:

Send a regular HTTP request with the "Save-Data" header carrying value "on".

Actual results:

In the Dev Tools on the Network pane the question mark icon with the link pointing to related article on MDN does not appear before the line of the parameter.

Expected results:

An icon should appear for this parameter as well as it does for other parameters as well.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Netmonitor
Product: Firefox → DevTools

Thanks for the report!

I was able to reproduce the problem on my machine (using Edit and Resend feature we have)

  1. Open DevTools and select the Network panel
  2. Load http://janodvarko.cz/firebug/tests/601/Issue601.htm
  3. Press the POST button on the page to generate request
  4. Select the request and click the Edit And Resend button on the page
  5. Add Save-Data request header in the list
  6. Press Send to send the request
  7. Select the new request (should happen automatically)
  8. Check out the icon for Save-Data HTTP header - it's missing -> BUG
Mentor: odvarko
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Priority: -- → P3

Some information for anyone interested in fixing this bug:

  1. The icon is rendered here:
    https://searchfox.org/mozilla-central/rev/d69ec052bed8700af7a283e37b60b4af22734930/devtools/client/netmonitor/src/components/HeadersPanel.js#437-441

It's only rendered when we have URL to MDN set in headerDocURL

  1. The list of supported HTTP headers is here:
    https://searchfox.org/mozilla-central/rev/d69ec052bed8700af7a283e37b60b4af22734930/devtools/client/netmonitor/src/utils/mdn-utils.js#15

  2. MDN Page for Save-Data is here
    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data

So, all we need to do is to put the hader name Save-Data into the list

Honza

Keywords: good-first-bug

Hello Honza,
I'd like to work on this one!

Thanks!

Assigned to you, thanks for helping with this one.

Honza

Assignee: nobody → marianapicolo
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
QA Whiteboard: [qa-76b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: