Closed Bug 1265691 Opened 8 years ago Closed 5 years ago

Network transfers view should highlight requests that ended in CORS failures so that they clearly stand out.

Categories

(DevTools :: Netmonitor, enhancement, P3)

enhancement

Tracking

(firefox48 affected)

RESOLVED DUPLICATE of bug 1157817
Tracking Status
firefox48 --- affected

People

(Reporter: jujjyl, Unassigned)

Details

It looks like if an XHR transfer is rejected due to a CORS failure, it is only printed to the page console, but it is not highlighted in any way in the Network transfers view. 

STR (this might be transient): 

1. Visit https://apps.facebook.com/topeleven/
2. Profile the page with the Network monitor devtool.

See the resulting screenshots of the page console and the associated Network view:

https://dl.dropboxusercontent.com/u/40949268/dump/cors_failure.png
https://dl.dropboxusercontent.com/u/40949268/dump/cors_failure2.png

It would be very useful to highlight each CORS failed transfer in the network view, both in the timeline and in more detail, along the information which domains were involved and what caused the failure, in the right side panel, perhaps under Security or similar.
@Jarda, is this related to bug 1270096?

Honza
Flags: needinfo?(jsnajdr)
Priority: -- → P3
No, it's not. Bug 1270096 is about the "Resend request" feature - sending the HTTP request (almost) exactly as the user specified it (headers etc) and disabling security checks that are intended for untrusted page scripts and are not useful in devtools context.

This bug is similar to bug 1157817 - if a request was rejected due to CORS, show it somehow in the request list or in details, so that it's immediately visible. I.e., interpret the response headers in the preflight OPTIONS request and show whether it was a success or not and why.
Flags: needinfo?(jsnajdr)
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.