Closed
Bug 1361739
Opened 8 years ago
Closed 6 years ago
Params showing wrong in HTTP inspector in specific case
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(firefox64 fixed)
RESOLVED
FIXED
Firefox 64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: vedantseta007, Assigned: tossj)
References
()
Details
Attachments
(2 files, 1 obsolete file)
20.86 KB,
image/png
|
Details | |
7.35 KB,
patch
|
Honza
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Firefox for Android
Steps to reproduce:
User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gecko/20100101 Firefox/53.0
http://randomdomain.com?asd[]=&pr=&asd[]=1&asd[]=2
- Open Console
- In HTTP Inspector
- Check Params Tab
Actual results:
Params : asd[] : [2]
0 : "1"
1 : "2"
Expected results:
Case 1 : Params : asd[] : [3]
0 : ""
1 : "1"
2 : "2"
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Updated•8 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Product: Firefox → DevTools
This error only happens when the first occurrence of a repeated query parameter is blank. If the blank parameter appears after one with the same name with data, it will be included as a blank parameter in the parameter panel.
This seems to happen because of how multiple parameters of the same name are handled in ParamsPanel.js' getProperties(): https://searchfox.org/mozilla-central/rev/5786b9be9f887ed371c804e786081b476a403104/devtools/client/netmonitor/src/components/ParamsPanel.js#82. The current code does not check if the first occurrence of a parameter was a blank string, and if it was, will not make the parameter's value into a list of values upon receiving a second value for the same parameter name.
I can contribute a fix if Firefox is interested in resolving this issue.
Flags: needinfo?(odvarko)
Comment 2•6 years ago
|
||
Great, assigned to you :-)
Honza
Assignee: nobody → tossj
Status: NEW → ASSIGNED
Flags: needinfo?(odvarko)
Attachment #9015500 -
Flags: review?(odvarko)
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Looks good to me, thanks for the patch!
Let's see if the Try is green before R+
Honza
Comment 6•6 years ago
|
||
Eslint errors:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9917d61e330897c109cb47ea8f1a2a062e69c416&selectedJob=204770778
Flags: needinfo?(tossj)
Updated•6 years ago
|
Attachment #9015500 -
Flags: review?(odvarko)
Attachment #9015500 -
Attachment is obsolete: true
Flags: needinfo?(tossj)
Attachment #9016345 -
Flags: review?(odvarko)
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Thanks for the update!
New Try push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=7bc8a7f55bc2d296e6b043fa4a88b7ba437eb344
Let's see how it goes now.
Honza
Updated•6 years ago
|
Summary: Params showing wrong in HTTP insepector in specific case → Params showing wrong in HTTP inspector in specific case
Comment 10•6 years ago
|
||
Comment on attachment 9016345 [details] [diff] [review]
1362739.patch
Review of attachment 9016345 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me, thanks for working on this!
Honza
Attachment #9016345 -
Flags: review?(odvarko) → review+
Updated•6 years ago
|
Keywords: checkin-needed
Comment 11•6 years ago
|
||
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9c535988954c
Fix Params Panel to display empty values when multiple values exist for one parameter. r=Honza
Keywords: checkin-needed
Comment 12•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in
before you can comment on or make changes to this bug.
Description
•