Closed Bug 461066 Opened 16 years ago Closed 13 years ago

Add support for XHR's loadend event

Categories

(Core :: DOM: Events, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

XHR2 should be updated before this, and also HTML 5.
I think XHR2/upload should have property onloadend, not sure about <video>/<audio>
<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.
Summary: Add support for loadend event → Add support for XHR's loadend event
Attached patch patchSplinter Review
Attachment #519217 - Flags: review?(jonas)
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

:(
Could you explain that whole CORS testing setup?
Why the need for .jar?
Depends on: 644568
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.
http://hg.mozilla.org/mozilla-central/rev/3a362ae1d54c
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Attachment #522046 - Flags: review?(Olli.Pettay) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: