[IMP] web: allow js code to abort xhr
We have a need to be able to abort a pending xmlhttprequest. This is necessary for the longpoll system so it can restart properly. With this commit, we simply propagate the abort method from the jquery deferred to the deferred returned by the session rpc method. Note that this is not documented on purpose. The reason is that we do not want to commit on maintaining this feature. It is kind of awkward to have a deferred which can be aborted, but once it is chained, the abort feature is lost. So, for now, this will stay a lower level feature used exclusively for our needs.
Please register or sign in to comment