Closed Bug 521359 Opened 15 years ago Closed 15 years ago

Stop firing load and loadend events and don't use NETWORK_LOADING state

Categories

(Core :: Audio/Video, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta2-fixed

People

(Reporter: roc, Assigned: roc)

References

Details

(Keywords: dev-doc-complete)

Attachments

(2 files, 1 obsolete file)

We're currently firing 'load' incorrectly, since the spec says 'load' should only be fired on media elements if we guarantee that no network traffic will ever be needed for this element in the future, and we never guarantee that. I think we'll get a consensus on WHATWG that 'load' should actually be removed from the spec, but we should change our behaviour ASAP so authors stop relying on it before it's too late. There is no guarantee that 'load' will ever fire, anyway, and authors relying on it are probably doing so incorrectly.
I think we should get a simple patch here in for 1.9.2.
Flags: blocking1.9.2?
(We're also calculating the 'bytes downloaded' in progress events incorrectly, but I don't propose fixing that in 1.9.2.)
Attached patch fix (obsolete) — Splinter Review
This stops us firing "load' or entering NETWORK_LOADED. Simple enough.
Attachment #405448 - Flags: review?(chris.double)
Whiteboard: [needs review]
Comment on attachment 405448 [details] [diff] [review] fix This isn't good enough, we need to fire a "suspend" event when we finish the load and currently we don't.
Attachment #405448 - Flags: review?(chris.double)
Whiteboard: [needs review]
Attached patch fix v2Splinter Review
This is better. Fire "suspend" and also set the state to NETWORK_IDLE, since it is actually idle.
Attachment #405448 - Attachment is obsolete: true
Attachment #405594 - Flags: review?(chris.double)
Whiteboard: [needs review]
Flags: blocking1.9.2? → blocking1.9.2+
Attachment #405594 - Flags: review?(chris.double) → review+
Attachment #405399 - Flags: review?(chris.double) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs review] → [needs 192 landing]
Whiteboard: [needs 192 landing]
(In reply to comment #9) > Pushed to 1.9.2: Turns out we've already branched of 1.9.2 for beta 1, so this fix won't show up on 1.9.2 until a release after the beta. status-1.9.2 -> final-fixed.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: