[Bug 12267] <video> Make video state transitions happen in the same task as firing events

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12267

--- Comment #34 from Robert O'Callahan (Mozilla) <roc@ocallahan.org> 2011-07-15 00:07:55 UTC ---
(In reply to comment #32)
> What I need to know is what specific problems we're trying to fix. It's not at
> all clear to me.

The problem that when an event fires, there are no guarantees about what state
the element is actually in, so if Web authors assume that e.g. an event handler
for "loadedmetadata" means the readyState is HAVE_METADATA, they will usually
be right but sometimes be wrong. We should be able to make it so they're always
right or always wrong.

> Should we be pinning "new Date()" as well?

We can't for compatibility reasons (script timing etc), and anyway it's much
less of an issue since authors don't have expectations that Date() will have a
specific value when it's called in a specific context.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 15 July 2011 00:08:00 UTC