Closed
Bug 461066
Opened 17 years ago
Closed 15 years ago
Add support for XHR's loadend event
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
Details
(Keywords: dev-doc-complete)
Attachments
(2 files)
|
33.94 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
|
14.29 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Loadend event has been added to http://dev.w3.org/cvsweb/~checkout~/2006/webapi/progress/Progress.html?rev=1.25
| Assignee | ||
Comment 1•17 years ago
|
||
XHR2 should be updated before this, and also HTML 5.
I think XHR2/upload should have property onloadend, not sure about <video>/<audio>
| Assignee | ||
Comment 2•17 years ago
|
||
<audio> / <video> seem to have a bit different kind of use for progress events
and they have more events. So not even sure if loadend is useful there.
I talked to hixie about this. His feeling was that it seemed to make sense for audio/video too given that we have load/abort/error there too.
| Assignee | ||
Updated•15 years ago
|
Summary: Add support for loadend event → Add support for XHR's loadend event
| Assignee | ||
Comment 4•15 years ago
|
||
Attachment #519217 -
Flags: review?(jonas)
Comment on attachment 519217 [details] [diff] [review]
patch
Yay!
Attachment #519217 -
Flags: review?(jonas) → review+
Actually, could you add this event to the cross-site XHR tests too by adding loadend to the list here:
http://mxr.mozilla.org/mozilla-central/source/content/base/test/file_CrossSiteXHR_inner.html?force=1#28
and change the code here to use the loadend event instead:
http://mxr.mozilla.org/mozilla-central/source/content/base/test/file_CrossSiteXHR_inner.html?force=1#51
It's unfortunately a bit of a pain since you also need to update
file_CrossSiteXHR_inner.jar
file_CrossSiteXHR_inner_data.sjs
:(
| Assignee | ||
Comment 7•15 years ago
|
||
Could you explain that whole CORS testing setup?
Why the need for .jar?
| Assignee | ||
Comment 8•15 years ago
|
||
I'll push the patch, since it does tests all the parts already, but
we certainly should have tests for xsite+loadend too.
Filed a followup for that.
| Assignee | ||
Comment 9•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attachment #522046 -
Flags: review?(Olli.Pettay)
| Assignee | ||
Updated•15 years ago
|
Attachment #522046 -
Flags: review?(Olli.Pettay) → review+
Checked in CORS tests
http://hg.mozilla.org/mozilla-central/rev/2ecbb2d07d85
Updated•15 years ago
|
Keywords: dev-doc-needed
Comment 12•15 years ago
|
||
Documentation updated:
https://developer.mozilla.org/en/XPCOM_Interface_Reference/NsIXMLHttpRequestEventTarget
https://developer.mozilla.org/En/XMLHttpRequest/Using_XMLHttpRequest#Detecting_any_load_end_condition
And listed on Firefox 5 for developers.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•