Bug 172742

Summary: Web Inspector: Image data renders as binary string in Network preview when loaded via XHR
Product: WebKit Reporter: Nate Abele <nate.abele>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Nate Abele 2017-05-30 19:48:23 PDT
This is a re-post of https://bugs.webkit.org/show_bug.cgi?id=103528, which was opened against the old inspector. The issue persists in the new inspector. The reproduce instructions are nearly identical:

Steps to reproduce:
1) Load up google.com
2) Open the console and run the following:

xhr = new XMLHttpRequest();
xhr.open("GET", "/images/srpr/logo3w.png", true);
xhr.setRequestHeader("Accept", "image/png");
xhr.send();

3) Find the request in the Network tab
4) Click the arrow next to the file name to open the resource view
5) Observe raw binary output

Probably related to https://bugs.webkit.org/show_bug.cgi?id=141389