Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 419254

Summary: orion/xhr needs to support cancellation and abort
Product: [ECD] Orion Reporter: Simon Kaegi <simon_kaegi>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: 4.0 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Simon Kaegi CLA 2013-10-11 13:27:52 EDT
There are two cases we need to handle:
1) We need to support cancellation from the user by calling xhr.abort()
2) We need to recognize when the system has halted and close all existing xhr connections (e.g. status code 0 when the page is being unloaded)
Comment 1 Simon Kaegi CLA 2013-10-15 12:28:29 EDT
Fixed in Master. Mark reviewed
Comment 2 Simon Kaegi CLA 2013-10-16 11:44:40 EDT
We're not sending error for 404s -- our mock does not match the spec as apparently onError is fired only on a genuine request error and not on an error status.
Comment 3 Simon Kaegi CLA 2013-10-24 17:34:05 EDT
This was fixed earlier.