Closed Bug 1498785 Opened 6 years ago Closed 6 years ago

Developer tool "Network": Cannot "Edit and resend" JSON

Categories

(DevTools :: Netmonitor, defect)

64 Branch
All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1467522

People

(Reporter: 326374, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 Steps to reproduce: 1. Open a new tab 2. Open the Web developer tools, go to the Network tab 3. Enter a JSON file in the location bar (e.g. https://danwolff.se/2018/contenttype.php?ct=application/json) 4. The request appears in the Network tab. Right-click the row, and select "Edit and resend" 5. A "New request" panel appears to the right. 6. Click "Send" Actual results: The button is focused, but nothing else. Expected results: The request should have been sent. ------------------- More information: - JSON requests work when part of a webpage. - Other content types seem to work (HTML, XML, CSS, JavaScript, plain text). I get the following errors in the Browser Console: STEP 3 [Exception... "Component returned failure code: 0x805e0006 [nsIChannel.asyncOpen2]" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: resource:///modules/FaviconLoader.jsm :: load :: line 102" data: no] Content Security Policy: The page’s settings blocked the loading of a resource at https://danwolff.se/favicon.ico (“default-src”). STEP 6 TypeError: response.eventActor is undefined; can't access its "actor" property: sendCustomRequest/</<@resource://devtools/shared/base-loader.js -> resource://devtools/client/netmonitor/src/actions/requests.js:73:9 [...] Use of nsIFile in content process is deprecated. NetUtil.jsm:266:12 error occurred while processing 'sendHTTPRequest: [Exception... "Failed to open input source 'https://danwolff.se/2018/contenttype.php?ct=application/json'" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: resource://devtools/shared/base-loader.js -> resource://devtools/server/actors/webconsole.js :: sendHTTPRequest :: line 1618" data: yes] [...] Content Security Policy: The page’s settings blocked the loading of a resource at https://danwolff.se/2018/contenttype.php?ct=application/json (“default-src”).
Component: Untriaged → Netmonitor
OS: Unspecified → Linux
Product: Firefox → DevTools
Hardware: Unspecified → All
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.