Bug 38346
| Summary: | Better error message for canceled resource loading due to cross-domain policy | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Josh Schumacher <josh.schumacher> |
| Component: | Web Inspector (Deprecated) | Assignee: | Andrey Kosyakov <caseq> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ap, caseq, pfeldman |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac (Intel) | ||
| OS: | OS X 10.6 | ||
Josh Schumacher
If you perform a cross-domain AJAX request to a non-allowed domain, the Activity Window simply says 'canceled' and the debug console says, "Failed to load resource: cancelled".
A more user-friendly error message would be appreciated stating that the request was canceled because it was a non-allowed cross-domain request.
Sample code that should generate more a useful error message (utilizes jQuery for brevity):
$('#test').load('http://google.com');
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Andrey Kosyakov
"Cancel" message removed by r80832 (bug 55764)
Origin policy error message is now also fixed (added a test in r80832, see LayoutTests/http/tests/inspector/console-xhr-logging.html)