Closed Bug 1605172 Opened 6 years ago Closed 6 years ago

Collapsible sections JSON and Form data missing in Developer Tools Console

Categories

(DevTools :: Console, defect, P2)

71 Branch
defect

Tracking

(firefox-esr68 unaffected, firefox72 wontfix, firefox73 verified, firefox74 verified)

VERIFIED FIXED
Firefox 74
Tracking Status
firefox-esr68 --- unaffected
firefox72 --- wontfix
firefox73 --- verified
firefox74 --- verified

People

(Reporter: xxlukas84, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image 69vs71.png

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

Check parameters in Firefox Developer Tools-Console-Param section for POST which contains JSON or Form data

Actual results:

Collapsible sections JSON and Form data with formated data in Firefox Developer Tools-Console-Param section does not show for XHR POST request.

Expected results:

There were sections JSON and Form data for display of formatted data even in Console-Params in previous versions of Firefox. Now only Request payload displayed.

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

Component: Untriaged → Console
Product: Firefox → DevTools

I ran mozregression and it indicates that bug 1582870 caused this issue.

Sebastian

Status: UNCONFIRMED → NEW
Ever confirmed: true

The priority flag is not set for this bug.
:nchevobbe, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(nchevobbe)
Flags: needinfo?(nchevobbe)
Priority: -- → P2
Regressed by: 1582870
Has Regression Range: --- → yes

Would you have an example of request so I can check this please?

Flags: needinfo?(xxlukas84)

For example go to: https://api.jquery.com/jQuery.post/ scroll down to "Demo" form, type a string and click to "Search" when the console is active. You can see "Request payload" section only instead of "Form data" in Console-Params. Thank you.

Flags: needinfo?(xxlukas84)

Thanks!

So you we can reproduce the issue with:

fetch("https://httpstat.us/200", {
  "headers": {
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
  },
  "body": "s=sdfsdf",
  "method": "POST",
  "mode": "cors"
})

Netmonitor does show the "Form data" section, not the console.

The function was moved during Bug 1582870 and
we lost the return statement somehow.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/24d416c773d8 Add missing return in WebConsoleUi getLongString method. r=jlast.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74

Please nominate this for Beta approval when you get a chance.

Flags: needinfo?(nchevobbe)

Comment on attachment 9118847 [details]
Bug 1605172 - Add missing return in WebConsoleUi getLongString method. r=jlast.

Beta/Release Uplift Approval Request

  • User impact if declined: Missing section in webconsole network message panel
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. Open devtools and select the console
  1. Make sure to have the "XHR" filter enabled
  2. Evaluate the following:
fetch("/", {
  "headers": {
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
  },
  "body": "s=sdfsdf",
  "method": "POST",
  "mode": "cors"
})
  1. expand the message
  2. select the "Params" tab
  3. There should be a "Form data" section
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): 1-word fix (added a return in a function) in devtools
  • String changes made/needed:
Flags: needinfo?(nchevobbe)
Attachment #9118847 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9118847 [details]
Bug 1605172 - Add missing return in WebConsoleUi getLongString method. r=jlast.

Approved for 73.0b3.

Attachment #9118847 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I can confirm that it was broken in 74.0a1 2020-01-06 and is fixed in 74.0a1 2020-01-08.
Thanks a lot for the quick fix, Nicolas!

Sebastian

Status: RESOLVED → VERIFIED

I have managed to reproduce the issue in Fx73.0a1(2019-12-19).
The issue is verified fixed using Fx73.0b3 and Fx74.0a1 on Windows 10, Ubuntu 18.04 and macOS 10.13. The 'Form Data' is correctly displayed.

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: