Closed Bug 1251836 Opened 8 years ago Closed 7 years ago

[Devtool] Request URL should not include URL fragment identifier

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(firefox58 fixed)

RESOLVED FIXED
Firefox 58
Tracking Status
firefox58 --- fixed

People

(Reporter: schien, Assigned: abhinav.koppula, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [good first bug][mentor-lang=zh][lang=js])

Attachments

(1 file)

[STR]
1. open a new tab and turn on Network Monitor
2. open http://www.example.org/#test in this tab
3. check the "Request URL" for the first HTTP request

[Expected]
The Request URL should be http://www.example.org/ without the URL fragment identifier (i.e. #test) because the real HTTP request doesn't include this part.

[Actual]
The Request URL shows http://www.example.org/#test
Has STR: --- → yes
Priority: -- → P3
We could call `new URL(link).origin` in HeadersPanel to return the correct Request URL

https://developer.mozilla.org/en-US/docs/Web/API/URL/origin
Mentor: gasolin
Keywords: good-first-bug
Whiteboard: [good first bug][mentor-lang=zh][lang=js]
Hi Fred,
I have created a mozreview-request for this issue and have also modified the tests a bit.
Can you please take a look once?
Assignee: nobody → abhinav.koppula
Status: NEW → ASSIGNED
Comment on attachment 8921573 [details]
Bug 1251836 - Request URL should not include URL fragment identifier.

https://reviewboard.mozilla.org/r/192590/#review197970

looks good, thanks!
Attachment #8921573 - Flags: review?(gasolin) → review+
Pushed by flin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fc0e0f8ae786
Request URL should not include URL fragment identifier. r=gasolin
https://hg.mozilla.org/mozilla-central/rev/fc0e0f8ae786
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: