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)
Core
Audio/Video
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)
23.53 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
3.63 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•15 years ago
|
||
I think we should get a simple patch here in for 1.9.2.
Flags: blocking1.9.2?
Assignee | ||
Comment 2•15 years ago
|
||
(We're also calculating the 'bytes downloaded' in progress events incorrectly, but I don't propose fixing that in 1.9.2.)
Assignee | ||
Comment 3•15 years ago
|
||
Attachment #405399 -
Flags: review?(chris.double)
Assignee | ||
Comment 4•15 years ago
|
||
This stops us firing "load' or entering NETWORK_LOADED. Simple enough.
Attachment #405448 -
Flags: review?(chris.double)
Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs review]
Assignee | ||
Comment 5•15 years ago
|
||
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)
Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs review]
Assignee | ||
Comment 6•15 years ago
|
||
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)
Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs review]
Assignee | ||
Updated•15 years ago
|
Flags: blocking1.9.2? → blocking1.9.2+
Assignee | ||
Updated•15 years ago
|
Priority: -- → P2
Updated•15 years ago
|
Attachment #405594 -
Flags: review?(chris.double) → review+
Updated•15 years ago
|
Attachment #405399 -
Flags: review?(chris.double) → review+
Assignee | ||
Comment 7•15 years ago
|
||
Checked in:
http://hg.mozilla.org/mozilla-central/rev/2835e2bdb8fc
http://hg.mozilla.org/mozilla-central/rev/0f477bf03978
Plus follow fixes to various tests I missed, including a few abortive attempts at fixing test_videocontrols:
http://hg.mozilla.org/mozilla-central/rev/d71b94c523e0
http://hg.mozilla.org/mozilla-central/rev/9183971cc84f
http://hg.mozilla.org/mozilla-central/rev/04b1081dbb5d
http://hg.mozilla.org/mozilla-central/rev/4046f3843bdb
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs review] → [needs 192 landing]
Assignee | ||
Updated•15 years ago
|
Keywords: dev-doc-needed
Comment 8•15 years ago
|
||
Updated the doc here:
https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox#Media_events
Keywords: dev-doc-needed → dev-doc-complete
Comment 9•15 years ago
|
||
Pushed to 1.9.2:
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/3a2ef681ffff
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/b5456784e4fa
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/d71f845415a1
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/1f9bee9b8340
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/ddf0e66e8ed4
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/8054426b6e59
status1.9.2:
--- → beta1-fixed
Updated•15 years ago
|
Whiteboard: [needs 192 landing]
Comment 10•15 years ago
|
||
(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.
Description
•