Closed Bug 1480119 Opened 7 years ago Closed 7 years ago

Network tab in Developer Tools dissappears when Edit and Resend URL is edited

Categories

(DevTools :: Netmonitor, defect)

61 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1477915

People

(Reporter: nearwood, Unassigned)

Details

Attachments

(1 file)

Attached video 2018-08-01 11-13-54.flv
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180704003137 Steps to reproduce: I used "https://bandcamp.com/api/account/1/my_bands", but any URL works. Version: 62.0b13, I could also repeat this in 61.0.1. 1. Open Developer Tools, navigate to the network tab 2. Select a request and hit the "Edit and Resend" button 3. In the URL textbox, try to delete all characters Actual results: After deleting characters near the protocol prefix, the network tab disappears. Positioning the cursor in the protocol prefix and deleting characters can also cause the same effect. See attached video. Expected results: The network tab should not disappear.
Build ID 20180704003137 User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0 I was able to reproduce this bug when I hit at "Backspace" or "Enter" after deleting all characters in URL textbox. Clicking at "Enter" keyboard is not changing anything.
Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Product: Firefox → DevTools
In the Web Console, this is the error message: TypeError: http:/ is not a valid URL.[Learn More] request-utils.js:176:11 That line is this function: function getUrlQuery(url) { return (new URL(url)).search.replace(/^\?/, ""); } However, in the latest nightly code, this has been refactored and wrapped in a try/catch block: function getUrl(url) { try { return new URL(url); } catch (err) { return null; } } And I can confirm it's fixed in nightly.
Thanks for investigating nearwood. This was likely fixed by bug 1477915 then. It landed in Firefox 62, which is now in release.
Status: NEW → RESOLVED
Closed: 7 years ago
Component: General → Netmonitor
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: